public class BlockTankHelpers
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockTankHelpers.SimulatableTankWrapper |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getInfoTank(net.minecraft.item.ItemStack itemStack)
Get info for a given itemStack.
|
static void |
itemStackDataToTile(net.minecraft.item.ItemStack itemStack,
net.minecraft.tileentity.TileEntity tile)
Convert fluid capabilities of item to tile.
|
static 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.util.EnumFacing side,
float motionX,
float motionY,
float motionZ)
Called upon tank activation.
|
void |
onRightClick(net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickBlock event) |
static net.minecraft.item.ItemStack |
tileDataToItemStack(net.minecraft.tileentity.TileEntity tile,
net.minecraft.item.ItemStack itemStack)
Convert fluid capabilities of tile to item.
|
public static 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.util.EnumFacing side,
float motionX,
float motionY,
float motionZ)
world - The world.blockPos - The position.player - Playerhand - The handside - Side integermotionX - X motionmotionY - Y motionmotionZ - Z motionpublic static java.lang.String getInfoTank(net.minecraft.item.ItemStack itemStack)
itemStack - The itemStack that must be given information.public static net.minecraft.item.ItemStack tileDataToItemStack(net.minecraft.tileentity.TileEntity tile,
net.minecraft.item.ItemStack itemStack)
tile - The tile that has already been removed from the world.itemStack - The itemstack.public static void itemStackDataToTile(net.minecraft.item.ItemStack itemStack,
net.minecraft.tileentity.TileEntity tile)
itemStack - The itemstack.tile - The tile that has already been removed from the world.public void onRightClick(net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickBlock event)