public final class ConverterTileEntity extends AbstractConverter
| Constructor and Description |
|---|
ConverterTileEntity() |
| 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.
|
protected void |
postDeserialize(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.nbt.NBTTagCompound data)
Allows hooking into the deserialization process, applying further changes
to the deserialized block.
|
protected void |
postSerialize(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.nbt.NBTTagCompound data)
Allows hooking into the serialization process, adding additional NBT
data to the tag compound returned from the basic serialization.
|
cancelDeserialization, canSerialize, deserialize, getBlockState, getFluidCosts, getFluidStack, getItemCosts, getItemStack, getItemStack, getUUID, 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 AbstractConverterprotected void postSerialize(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.nbt.NBTTagCompound data)
AbstractConverter
Note that the tags name and meta will already
be set in the passed NBTTagCompound, and should usually not be
overwritten.
postSerialize in class AbstractConverterworld - the world the block to serialize lives in.pos - the position of the block to serialize.state - the block state of the block to serialize.data - the tag generated from the serialization process so far.protected void postDeserialize(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.nbt.NBTTagCompound data)
AbstractConverterpostDeserialize in class AbstractConverterworld - the world the block is being deserialized into.pos - the position the block is being deserialized at.state - the block state of the deserialized block.data - the serialized representation of the block to