Klasse AvertoxInventory

java.lang.Object
org.avertox.Inventory.AvertoxInventory
Alle implementierten Schnittstellen:
InventoryProvider, org.bukkit.command.CommandExecutor
Bekannte direkte Unterklassen:
ConfirmationInventory, DailyRewards, Investments, Particles, Pets, Ranks, Rewards, Stats, TransactionInventory

public class AvertoxInventory extends Object implements InventoryProvider, org.bukkit.command.CommandExecutor
  • Felddetails

  • Konstruktordetails

    • AvertoxInventory

      public AvertoxInventory(String id, int rows, String title, AvertoxEssentialsV2 avE, boolean paginationEnabled, boolean border, AvertoxInventory.InventoryOrder inventoryOrder, boolean openCommand, AvertoxInventory closeItem)
      Parameter:
      id - Costume id for the inventory
      rows - Amount of rows for the inventory
      title - Name of the inventory
      paginationEnabled - True if you want the ability to switch pages (only useable if no border is set)
      border - True if you want to have a border
      inventoryOrder - Gird order or no order
      openCommand - To register a Command with the name of the title
      closeItem - creates a barrrier witch brings the player back to the last inventorry
  • Methodendetails

    • onCommand

      public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender commandSender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String s, String @NotNull [] strings)
      Angegeben von:
      onCommand in Schnittstelle org.bukkit.command.CommandExecutor
    • init

      public void init(org.bukkit.entity.Player player, InventoryContents contents)
      Angegeben von:
      init in Schnittstelle InventoryProvider
    • open

      public void open(org.bukkit.entity.Player player)
    • close

      public void close(org.bukkit.entity.Player player)
    • addInvItem

      public void addInvItem(InvItem invItem)
      Parameter:
      invItem - The Item witch should be added to the Inventory
    • getInventory

      public AvertoxInventory getInventory()