Package org.cloudburstmc.server.block
Class BlockPalette
java.lang.Object
org.cloudburstmc.server.block.BlockPalette
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlock(org.cloudburstmc.api.block.BlockType type, BlockSerializer serializer)voidList<org.cloudburstmc.api.util.Identifier>org.cloudburstmc.api.block.BlockStategetBlockState(int runtimeId)org.cloudburstmc.api.block.BlockStategetBlockState(com.nukkitx.nbt.NbtMap tag)org.cloudburstmc.api.block.BlockStategetDefaultState(org.cloudburstmc.api.block.BlockType blockType)org.cloudburstmc.api.util.IdentifiergetIdentifier(org.cloudburstmc.api.block.BlockState state)intgetRuntimeId(org.cloudburstmc.api.block.BlockState blockState)com.nukkitx.nbt.NbtMapgetSerialized(org.cloudburstmc.api.block.BlockState state)Map<com.nukkitx.nbt.NbtMap,org.cloudburstmc.api.block.BlockState>org.cloudburstmc.api.block.BlockStategetState(org.cloudburstmc.api.util.Identifier id)org.cloudburstmc.api.block.BlockStategetTraits(org.cloudburstmc.api.util.Identifier blockId)org.cloudburstmc.api.block.BlockTypegetType(org.cloudburstmc.api.util.Identifier id)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
BlockPalette
public BlockPalette()
-
-
Method Details
-
addBlock
-
generateRuntimeIds
public void generateRuntimeIds() -
getVanillaTraitMap
-
getType
public org.cloudburstmc.api.block.BlockType getType(org.cloudburstmc.api.util.Identifier id) -
getState
public org.cloudburstmc.api.block.BlockState getState(org.cloudburstmc.api.util.Identifier id) -
getIdentifier
public org.cloudburstmc.api.util.Identifier getIdentifier(org.cloudburstmc.api.block.BlockState state) -
getState
-
getTraits
-
getDefaultState
public org.cloudburstmc.api.block.BlockState getDefaultState(org.cloudburstmc.api.block.BlockType blockType) -
getBlockState
public org.cloudburstmc.api.block.BlockState getBlockState(int runtimeId) -
getBlockState
@Nullable public org.cloudburstmc.api.block.BlockState getBlockState(com.nukkitx.nbt.NbtMap tag) -
getRuntimeId
public int getRuntimeId(org.cloudburstmc.api.block.BlockState blockState) -
getSerialized
public com.nukkitx.nbt.NbtMap getSerialized(org.cloudburstmc.api.block.BlockState state) -
getSerializedPalette
-
getBlockIdentifiers
-
getRuntimeMap
-