Class BeaconInventory

All Implemented Interfaces:
EventHandler<InventoryEvent>, InventoryClickHandler, Taggable, TagReadable, TagWritable, Viewable

public class BeaconInventory extends Inventory
  • Constructor Details

    • BeaconInventory

      public BeaconInventory(Component title)
    • BeaconInventory

      public BeaconInventory(String title)
  • Method Details

    • getPowerLevel

      public short getPowerLevel()
      Gets the beacon power level.
      Returns:
      the power level
    • setPowerLevel

      public void setPowerLevel(short powerLevel)
      Changes the beacon power level.
      Parameters:
      powerLevel - the new beacon power level
    • getFirstPotionEffect

      @Nullable public @Nullable PotionEffect getFirstPotionEffect()
      Gets the first potion effect.
      Returns:
      the first potion effect, can be null
    • setFirstPotionEffect

      public void setFirstPotionEffect(@Nullable @Nullable PotionEffect firstPotionEffect)
      Changes the first potion effect.
      Parameters:
      firstPotionEffect - the new first potion effect, can be null
    • getSecondPotionEffect

      @Nullable public @Nullable PotionEffect getSecondPotionEffect()
      Gets the second potion effect.
      Returns:
      the second potion effect, can be null
    • setSecondPotionEffect

      public void setSecondPotionEffect(@Nullable @Nullable PotionEffect secondPotionEffect)
      Changes the second potion effect.
      Parameters:
      secondPotionEffect - the new second potion effect, can be null