public class ItemBlockFluidContainer
extends org.cyclops.cyclopscore.item.ItemBlockNBT
BlockItem 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.| Constructor and Description |
|---|
ItemBlockFluidContainer(net.minecraft.block.Block block,
net.minecraft.item.Item.Properties builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> list,
net.minecraft.client.util.ITooltipFlag flag) |
protected void |
autofill(int itemSlot,
net.minecraftforge.fluids.capability.IFluidHandlerItem source,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity) |
boolean |
hasEffect(net.minecraft.item.ItemStack itemStack) |
net.minecraftforge.common.capabilities.ICapabilityProvider |
initCapabilities(net.minecraft.item.ItemStack stack,
net.minecraft.nbt.CompoundNBT nbt) |
void |
inventoryTick(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
net.minecraft.entity.Entity entityIn,
int itemSlot,
boolean isSelected) |
protected boolean |
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.PlayerEntity player,
net.minecraft.util.Hand hand) |
boolean |
shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged) |
addToBlockToItemMap, canPlace, checkPosition, fillItemGroup, getBlock, getBlockItemUseContext, getPlaceSound, getPlaceSound, getStateForPlacement, getTranslationKey, onItemUse, placeBlock, removeFromBlockToItemMap, setTileEntityNBT, tryPlaceasItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getRarity, getTags, getToolTypes, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hitEntity, isComplex, isCrossbow, isDamageable, isDamageable, isEnchantable, isFood, isImmuneToFire, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUseFinish, onPlayerStoppedUsing, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, showDurabilityBarpublic ItemBlockFluidContainer(net.minecraft.block.Block block,
net.minecraft.item.Item.Properties builder)
public boolean hasEffect(net.minecraft.item.ItemStack itemStack)
hasEffect in class net.minecraft.item.Itemprotected boolean 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.PlayerEntity player,
net.minecraft.util.Hand 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 inventoryTick(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
net.minecraft.entity.Entity entityIn,
int itemSlot,
boolean isSelected)
inventoryTick in class net.minecraft.item.Itempublic void addInformation(net.minecraft.item.ItemStack itemStack,
@Nullable
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> list,
net.minecraft.client.util.ITooltipFlag flag)
addInformation in class net.minecraft.item.BlockItempublic boolean shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged)
public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(net.minecraft.item.ItemStack stack,
net.minecraft.nbt.CompoundNBT nbt)