Class BucketItemDrinkable

Direct Known Subclasses:
BucketItemMilk, BucketItemMilkChocolate

public abstract class BucketItemDrinkable extends BucketItem
  • Constructor Details

    • BucketItemDrinkable

      public BucketItemDrinkable(int iItemID, int iHungerHealed, float fSaturationModifier)
  • Method Details

    • getHungerRestored

      public int getHungerRestored()
    • getSaturationModifier

      public float getSaturationModifier()
    • getMaxItemUseDuration

      public int getMaxItemUseDuration(ItemStack stack)
      Description copied from class: Item
      How long it takes to use or consume an item
      Overrides:
      getMaxItemUseDuration in class Item
    • getItemUseAction

      public EnumAction getItemUseAction(ItemStack stack)
      Description copied from class: Item
      returns the action that specifies what animation to play when the items is being used
      Overrides:
      getItemUseAction in class Item
    • onItemRightClick

      public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
      Description copied from class: Item
      // +++START EDIT+++ // ---END EDIT--- Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
      Overrides:
      onItemRightClick in class Item
    • onEaten

      public ItemStack onEaten(ItemStack itemStack, World world, EntityPlayer player)
      Overrides:
      onEaten in class Item