public class ItemBucket extends Item
Item.PropertiesATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, randomdelegate| Constructor and Description |
|---|
ItemBucket(Fluid containedFluidIn,
Item.Properties builder) |
| Modifier and Type | Method and Description |
|---|---|
protected ItemStack |
emptyBucket(ItemStack p_203790_1_,
EntityPlayer p_203790_2_) |
ICapabilityProvider |
initCapabilities(ItemStack stack,
NBTTagCompound nbt)
Called from ItemStack.setItem, will hold extra data for the life of this
ItemStack.
|
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
void |
onLiquidPlaced(World p_203792_1_,
ItemStack p_203792_2_,
BlockPos p_203792_3_) |
protected void |
playEmptySound(EntityPlayer p_203791_1_,
IWorld p_203791_2_,
BlockPos p_203791_3_) |
boolean |
tryPlaceContainedLiquid(EntityPlayer player,
World worldIn,
BlockPos posIn,
RayTraceResult p_180616_4_) |
addInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getShareTag, getTileEntityItemStackRenderer, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, inventoryTick, isComplex, isDamageable, isEnchantable, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, rayTrace, register, registerItems, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canEquip, canHarvestBlock, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getHorseArmorType, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBeaconPayment, isBookEnchantable, isDamaged, isShield, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic ItemBucket(Fluid containedFluidIn, Item.Properties builder)
public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn)
onItemRightClick in class Itemprotected ItemStack emptyBucket(ItemStack p_203790_1_, EntityPlayer p_203790_2_)
public void onLiquidPlaced(World p_203792_1_, ItemStack p_203792_2_, BlockPos p_203792_3_)
public boolean tryPlaceContainedLiquid(@Nullable
EntityPlayer player,
World worldIn,
BlockPos posIn,
@Nullable
RayTraceResult p_180616_4_)
protected void playEmptySound(@Nullable
EntityPlayer p_203791_1_,
IWorld p_203791_2_,
BlockPos p_203791_3_)
public ICapabilityProvider initCapabilities(ItemStack stack, @Nullable NBTTagCompound nbt)
IForgeItemstack - The ItemStacknbt - NBT of this item serialized, or null.