T - The type of block.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 |
|---|---|
protected static boolean |
canTankBeFilled(TankInventoryTileEntity tile,
net.minecraftforge.fluids.FluidStack fluidStack) |
java.lang.String |
getInfoTank(net.minecraft.item.ItemStack itemStack)
Get info for a given itemStack.
|
boolean |
onBlockActivatedTank(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.player.EntityPlayer player,
int 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,
int x,
int y,
int z,
net.minecraft.entity.player.EntityPlayer player,
int side,
float motionX,
float motionY,
float motionZ)
world - The world.x - Xy - Yz - Zplayer - Playerside - Side integermotionX - X motionmotionY - Y motionmotionZ - Z motionprotected static boolean canTankBeFilled(TankInventoryTileEntity tile, net.minecraftforge.fluids.FluidStack fluidStack)
public 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.