public final class ConverterFallingBlock extends AbstractConverter
| Constructor and Description |
|---|
ConverterFallingBlock() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canSerialize(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
int |
getSortIndex(net.minecraft.nbt.NBTBase data)
A sort index used to control in which order blocks are deserialized.
|
cancelDeserialization, canSerialize, deserialize, getBlockState, getFluidCosts, getFluidStack, getItemCosts, getItemStack, getItemStack, getUUID, postDeserialize, postSerialize, preDeserialize, serializepublic int getSortIndex(net.minecraft.nbt.NBTBase data)
ConverterBlocks being deserialized using converters that provide lower numbers here will be processed first.
This allows deserialization of solid blocks (e.g. cobble) before non- solid blocks (e.g. levers, water).
getSortIndex in interface ConvertergetSortIndex in class AbstractConverterdata - the serialized representation of the block in question.SortIndexprotected boolean canSerialize(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
canSerialize in class AbstractConverter