public class ItemBlockFluidContainer
extends org.cyclops.cyclopscore.item.ItemBlockNBT
ItemBlock that can be used for blocks that have a tile entity with a fluid container.
The blockState must implement IBlockTank.
Instances of this will also keep it's tank capacity next to the contents.informationProvider, rarityProvider| Constructor and Description |
|---|
ItemBlockFluidContainer(net.minecraft.block.Block block)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4) |
protected void |
autofill(int itemSlot,
net.minecraftforge.fluids.capability.IFluidHandlerItem source,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity) |
net.minecraftforge.common.capabilities.ICapabilityProvider |
initCapabilities(net.minecraft.item.ItemStack stack,
net.minecraft.nbt.NBTTagCompound nbt) |
protected void |
itemStackDataToTile(net.minecraft.item.ItemStack itemStack,
net.minecraft.tileentity.TileEntity tile) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand) |
void |
onUpdate(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity,
int itemSlot,
boolean par5) |
boolean |
shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged) |
canPlaceBlockOnSide, getBlock, getCreativeTab, getSubItems, getUnlocalizedName, getUnlocalizedName, onItemUse, setTileEntityNBTaddPropertyOverride, canApplyAtEnchantingTable, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTabs, getDamage, getDefaultInstance, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getHighlightTip, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getNBTShareTag, getPropertyGetter, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getStrVsBlock, getToolClasses, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isEnchantable, isFull3D, isMap, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFinish, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUsingTick, rayTrace, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setUnlocalizedName, shouldCauseBlockBreakReset, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBTpublic ItemBlockFluidContainer(net.minecraft.block.Block block)
block - The blockState instance.protected void itemStackDataToTile(net.minecraft.item.ItemStack itemStack,
net.minecraft.tileentity.TileEntity tile)
itemStackDataToTile in class org.cyclops.cyclopscore.item.ItemBlockNBTpublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand)
onItemRightClick in class net.minecraft.item.Itemprotected void autofill(int itemSlot,
net.minecraftforge.fluids.capability.IFluidHandlerItem source,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity)
public void onUpdate(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity,
int itemSlot,
boolean par5)
onUpdate in class net.minecraft.item.Itempublic void addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
addInformation in class org.cyclops.cyclopscore.item.ItemBlockMetadatapublic boolean shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged)
shouldCauseReequipAnimation in class net.minecraft.item.Itempublic net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(net.minecraft.item.ItemStack stack,
net.minecraft.nbt.NBTTagCompound nbt)
initCapabilities in class net.minecraft.item.Item