All Implemented Interfaces:
DistinctiveItem, ItemAttribute, NotPlaceable, Placeable

public class Cooler extends SlimefunBackpack
The Cooler is a special variant of the SlimefunBackpack. It can only hold Juices and auto-consumes those when a Player loses hunger while carrying a Cooler filled with Juice.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

  • Method Details

    • isItemAllowed

      public boolean isItemAllowed(org.bukkit.inventory.ItemStack item, SlimefunItem itemAsSlimefunItem)
      Description copied from class: SlimefunBackpack
      This method returns whether a given ItemStack is allowed to be stored in this SlimefunBackpack.
      Overrides:
      isItemAllowed in class SlimefunBackpack
      Parameters:
      item - The ItemStack to check for
      itemAsSlimefunItem - The same ItemStack as a SlimefunItem, might be null
      Returns:
      Whether the given ItemStack is allowed to be put into this SlimefunBackpack