Interface InventoryProvider
public interface InventoryProvider
- Since:
- 2/17/2022
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidanvil(org.bukkit.entity.Player player, net.wesjd.anvilgui.AnvilGUI.Builder anvil) default voidclose(org.bukkit.entity.Player player, RyseInventory inventory) default voidinit(org.bukkit.entity.Player player, InventoryContents contents) default voidinit(org.bukkit.entity.Player player, InventoryContents contents, SlideAnimation animation) default voidupdate(org.bukkit.entity.Player player, InventoryContents contents)
-
Method Details
-
update
- Parameters:
player- The playercontents- The contents A method to update the contents of the inventory. By default, this method is executed 20 times a second.
-
close
- Parameters:
player- The playerinventory- The inventory A method to close the inventory.
-
init
- Parameters:
player- The playercontents- 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 playercontents- The contentsanimation- 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
-