public interface IBlockTank
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxCapacity()
Get the maximum capacity possible for this item/block type.
|
int |
getTankCapacity(net.minecraft.item.ItemStack itemStack)
Get the maximal tank capacity.
|
java.lang.String |
getTankNBTName()
Get the NBT name for the inner tank.
|
boolean |
isActivatable() |
boolean |
isActivated(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity)
If the given item is activated.
|
void |
setTankCapacity(net.minecraft.item.ItemStack itemStack,
int capacity)
Set the maximal tank capacity.
|
void |
setTankCapacity(net.minecraft.nbt.NBTTagCompound tag,
int capacity)
Set the maximal tank capacity.
|
net.minecraft.item.ItemStack |
toggleActivation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
Toggle the activation of the item.
|
java.lang.String getTankNBTName()
int getTankCapacity(net.minecraft.item.ItemStack itemStack)
itemStack - The item stack.void setTankCapacity(net.minecraft.item.ItemStack itemStack,
int capacity)
itemStack - The item stack.capacity - The maximal tank capacity in mB.void setTankCapacity(net.minecraft.nbt.NBTTagCompound tag,
int capacity)
tag - The tag of an item stack.capacity - The maximal tank capacity in mB.int getMaxCapacity()
getTankCapacity(ItemStack)
if this capacity is variable.boolean isActivatable()
net.minecraft.item.ItemStack toggleActivation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
itemStack - The item.world - The world.player - The player holding the item.boolean isActivated(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity)
itemStack - The item.world - The world.entity - The entity holding the item.