Interface InventoryProvider


public interface InventoryProvider
Since:
2/17/2022
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    anvil(org.bukkit.entity.Player player, net.wesjd.anvilgui.AnvilGUI.Builder anvil)
     
    default void
    close(org.bukkit.entity.Player player, RyseInventory inventory)
     
    default void
    init(org.bukkit.entity.Player player, InventoryContents contents)
     
    default void
    init(org.bukkit.entity.Player player, InventoryContents contents, SlideAnimation animation)
     
    default void
    update(org.bukkit.entity.Player player, InventoryContents contents)
     
  • Method Details

    • update

      default void update(org.bukkit.entity.Player player, InventoryContents contents)
      Parameters:
      player - The player
      contents - The contents A method to update the contents of the inventory. By default, this method is executed 20 times a second.
    • close

      default void close(org.bukkit.entity.Player player, RyseInventory inventory)
      Parameters:
      player - The player
      inventory - The inventory A method to close the inventory.
    • init

      default void init(org.bukkit.entity.Player player, InventoryContents contents)
      Parameters:
      player - The player
      contents - The contents This method is called 1x. Namely, when the inventory is opened for the player.
    • init

      default void init(org.bukkit.entity.Player player, InventoryContents contents, SlideAnimation animation)
      Parameters:
      player - The player
      contents - The contents
      animation - The animation This method is called 1x. Namely, when the inventory is opened for the player. Another parameter is the animation that can be started.
    • anvil

      default void anvil(org.bukkit.entity.Player player, net.wesjd.anvilgui.AnvilGUI.Builder anvil)
      Parameters:
      anvil - The anvil