public class ConverterDoublePlant 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.item.ItemStack |
getItemStack(net.minecraft.item.Item item,
net.minecraft.block.state.IBlockState state,
net.minecraft.nbt.NBTBase data)
Resolve an item to an actual item stack.
|
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, getSortIndex, getUUID, postSerialize, serializeprotected net.minecraft.item.ItemStack getItemStack(net.minecraft.item.Item item,
net.minecraft.block.state.IBlockState state,
net.minecraft.nbt.NBTBase data)
AbstractConvertergetItemStack in class AbstractConverteritem - the item to create an item stack for.state - the block state based on which to create the item.data - the serialized representation of the block.protected 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.