public class ConverterDoor extends AbstractMultiBlockConverter
| 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) |
protected net.minecraft.util.math.BlockPos |
getSecondaryPos(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
Get the world position of the secondary part.
|
protected net.minecraft.block.state.IBlockState |
getSecondaryState(net.minecraft.block.state.IBlockState state)
Get the block state representing the secondary part from the primary one.
|
protected boolean |
isSecondaryState(net.minecraft.block.state.IBlockState state)
Check whether the specified block state is the secondary part.
|
deserialize, getItemCosts, postDeserialize, preDeserializecancelDeserialization, canSerialize, getBlockState, getFluidCosts, getFluidStack, getItemStack, getItemStack, getSortIndex, getUUID, postSerialize, serializeprotected boolean canSerialize(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
canSerialize in class AbstractConverterprotected boolean isSecondaryState(net.minecraft.block.state.IBlockState state)
AbstractMultiBlockConverterisSecondaryState in class AbstractMultiBlockConverterstate - the state to check.true if the state represents the secondary part;
false otherwise.protected net.minecraft.block.state.IBlockState getSecondaryState(net.minecraft.block.state.IBlockState state)
AbstractMultiBlockConvertergetSecondaryState in class AbstractMultiBlockConverterstate - the primary block state.protected net.minecraft.util.math.BlockPos getSecondaryPos(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
AbstractMultiBlockConvertergetSecondaryPos in class AbstractMultiBlockConverterpos - the position of the primary part.state - the state of the primary part.