enuminternalSource
public enum BlockStateFormat

How a chunk's palettes store block states. Mojang changed it in DataVersion 5006, because why not

Implemented interfaces
Constable, Comparable<BlockStateFormat>, Serializable

Enum constants

NAME_PROPERTIES{Name: "minecraft:oak_log", Properties: {axis: "x"}}, before 5006
ID_PROPERTIES"minecraft:oak_log" for default states, {id: "minecraft:oak_log", properties: {axis: "x"}} for the rest.

Fields

public static final int ID_PROPERTIES_SINCE = 5006
The first DataVersion that uses ID_PROPERTIES

Methods

public static BlockStateFormat forDataVersion(int dataVersion)
Parameters
dataVersionint
Returns
BlockStateFormat
public NbtTag toNbt(BlockState state)
Parameters
stateBlockState
Returns
NbtTagAn NbtString or an NbtCompound

Used by

Methods of other types that accept or return BlockStateFormat.