Class MilkBucketItem

All Implemented Interfaces:
IItemProvider, IForgeItem, IForgeRegistryEntry<Item>

public class MilkBucketItem extends Item
  • Constructor Details

  • Method Details

    • finishUsingItem

      public ItemStack finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
      finishUsingItem in class Item
    • getUseDuration

      public int getUseDuration(ItemStack p_77626_1_)
      getUseDuration in class Item
    • getUseAnimation

      public UseAction getUseAnimation(ItemStack p_77661_1_)
      getUseAnimation in class Item
    • use

      public ActionResult<ItemStack> use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
      use in class Item
    • initCapabilities

      public ICapabilityProvider initCapabilities(ItemStack stack, @Nullable CompoundNBT nbt)
      Description copied from interface: IForgeItem
      Called from ItemStack.setItem, will hold extra data for the life of this ItemStack. Can be retrieved from stack.getCapabilities() The NBT can be null if this is not called from readNBT or if the item the stack is changing FROM is different then this item, or the previous item had no capabilities. This is called BEFORE the stacks item is set so you can use stack.getItem() to see the OLD item. Remember that getItem CAN return null.
      stack - The ItemStack
      nbt - NBT of this item serialized, or null.
      A holder instance associated with this ItemStack where you can hold capabilities for the life of this item.