Class UniversalMenu

All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder

public class UniversalMenu extends DirtyChestMenu
This class represents a universal chest menu which a menu located by certain identify id instead of location.
  • Constructor Details

    • UniversalMenu

      public UniversalMenu(@Nonnull UniversalMenuPreset preset, @Nonnull UUID uuid)
    • UniversalMenu

      public UniversalMenu(@Nonnull UniversalMenuPreset preset, @Nonnull UUID uuid, @Nullable org.bukkit.Location lastPresent)
    • UniversalMenu

      public UniversalMenu(@Nonnull UniversalMenuPreset preset, @Nonnull UUID uuid, @Nullable org.bukkit.Location lastPresent, org.bukkit.inventory.ItemStack[] contents)
    • UniversalMenu

      public UniversalMenu(@Nonnull UniversalMenuPreset preset, @Nonnull UUID uuid, org.bukkit.inventory.ItemStack[] contents)
  • Method Details

    • update

      public void update(@Nullable org.bukkit.Location lastPresent)
    • dropItems

      public void dropItems(org.bukkit.Location l, int... slots)
      This method drops the contents of this BlockMenu on the ground at the given Location.
      Parameters:
      l - Where to drop these items
      slots - The slots of items that should be dropped