Class GlowBeaconInventory

java.lang.Object
net.glowstone.inventory.GlowInventory
net.glowstone.inventory.GlowBeaconInventory
All Implemented Interfaces:
Iterable<org.bukkit.inventory.ItemStack>, org.bukkit.inventory.BeaconInventory, org.bukkit.inventory.Inventory

public class GlowBeaconInventory extends GlowInventory implements org.bukkit.inventory.BeaconInventory
  • Constructor Details

    • GlowBeaconInventory

      public GlowBeaconInventory(org.bukkit.block.Beacon owner)
  • Method Details

    • setActiveEffects

      public void setActiveEffects(int primaryId, int secondaryId)
    • setItem

      public void setItem(org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setItem in interface org.bukkit.inventory.BeaconInventory
    • getItem

      public org.bukkit.inventory.ItemStack getItem()
      Specified by:
      getItem in interface org.bukkit.inventory.BeaconInventory
    • itemPlaceAllowed

      public boolean itemPlaceAllowed(int slot, org.bukkit.inventory.ItemStack stack)
      Description copied from class: GlowInventory
      Check whether it is allowed for a player to insert the given ItemStack at the slot, regardless of the slot's current contents.

      Should return false for crafting output slots or armor slots which cannot accept the given item.

      Overrides:
      itemPlaceAllowed in class GlowInventory
      Parameters:
      slot - The slot number.
      stack - The stack to add.
      Returns:
      Whether the stack can be added there.