T - The type of blockState.public class BlockTankComponent<T extends net.minecraft.block.BlockContainer & IBlockTank>
extends java.lang.Object
| Constructor and Description |
|---|
BlockTankComponent(T tank)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getInfoTank(net.minecraft.item.ItemStack itemStack)
Get info for a given itemStack.
|
boolean |
onBlockActivatedTank(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side,
float motionX,
float motionY,
float motionZ)
Called upon tank activation.
|
void |
writeAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.nbt.NBTTagCompound tag)
Write additional info about the tile into the item.
|
public BlockTankComponent(T tank)
tank - The tank.public boolean onBlockActivatedTank(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side,
float motionX,
float motionY,
float motionZ)
world - The world.blockPos - The position.player - Playerhand - The handitemStack - The held itemside - Side integermotionX - X motionmotionY - Y motionmotionZ - Z motionpublic java.lang.String getInfoTank(net.minecraft.item.ItemStack itemStack)
itemStack - The itemStack that must be given information.public void writeAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.nbt.NBTTagCompound tag)
tile - The tile that is being broken.tag - The tag that will be added to the dropped item.