Class BeaconInventory

All Implemented Interfaces:
InventoryClickHandler, Taggable, TagReadable, TagWritable, Viewable

public class BeaconInventory extends Inventory
  • Constructor Details

    • BeaconInventory

      public BeaconInventory(@NotNull @NotNull Component title)
    • BeaconInventory

      public BeaconInventory(@NotNull @NotNull 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

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

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

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

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