Class InventoryClickProcessor
java.lang.Object
net.minestom.server.inventory.click.InventoryClickProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull InventoryClickResult
changeHeld
(@NotNull Player player, @NotNull AbstractInventory inventory, int slot, int key, @NotNull ItemStack clicked, @NotNull ItemStack cursor) void
clearCache
(@NotNull Player player) @NotNull InventoryClickResult
doubleClick
(@NotNull AbstractInventory clickedInventory, @NotNull AbstractInventory inventory, @NotNull Player player, int slot, @NotNull ItemStack clicked, @NotNull ItemStack cursor) @Nullable InventoryClickResult
dragging
(@NotNull Player player, @Nullable AbstractInventory inventory, int slot, int button, @NotNull ItemStack clicked, @NotNull ItemStack cursor) @NotNull InventoryClickResult
drop
(@NotNull Player player, @NotNull AbstractInventory inventory, boolean all, int slot, int button, @NotNull ItemStack clicked, @NotNull ItemStack cursor) @NotNull InventoryClickResult
leftClick
(@NotNull Player player, @NotNull AbstractInventory inventory, int slot, @NotNull ItemStack clicked, @NotNull ItemStack cursor) @NotNull InventoryClickResult
rightClick
(@NotNull Player player, @NotNull AbstractInventory inventory, int slot, @NotNull ItemStack clicked, @NotNull ItemStack cursor) @NotNull InventoryClickResult
shiftClick
(@NotNull AbstractInventory inventory, @NotNull AbstractInventory targetInventory, int start, int end, int step, @NotNull Player player, int slot, @NotNull ItemStack clicked, @NotNull ItemStack cursor)
-
Constructor Details
-
InventoryClickProcessor
public InventoryClickProcessor()
-
-
Method Details
-
leftClick
@NotNull public @NotNull InventoryClickResult leftClick(@NotNull @NotNull Player player, @NotNull @NotNull AbstractInventory inventory, int slot, @NotNull @NotNull ItemStack clicked, @NotNull @NotNull ItemStack cursor) -
rightClick
@NotNull public @NotNull InventoryClickResult rightClick(@NotNull @NotNull Player player, @NotNull @NotNull AbstractInventory inventory, int slot, @NotNull @NotNull ItemStack clicked, @NotNull @NotNull ItemStack cursor) -
changeHeld
@NotNull public @NotNull InventoryClickResult changeHeld(@NotNull @NotNull Player player, @NotNull @NotNull AbstractInventory inventory, int slot, int key, @NotNull @NotNull ItemStack clicked, @NotNull @NotNull ItemStack cursor) -
shiftClick
@NotNull public @NotNull InventoryClickResult shiftClick(@NotNull @NotNull AbstractInventory inventory, @NotNull @NotNull AbstractInventory targetInventory, int start, int end, int step, @NotNull @NotNull Player player, int slot, @NotNull @NotNull ItemStack clicked, @NotNull @NotNull ItemStack cursor) -
dragging
@Nullable public @Nullable InventoryClickResult dragging(@NotNull @NotNull Player player, @Nullable @Nullable AbstractInventory inventory, int slot, int button, @NotNull @NotNull ItemStack clicked, @NotNull @NotNull ItemStack cursor) -
doubleClick
@NotNull public @NotNull InventoryClickResult doubleClick(@NotNull @NotNull AbstractInventory clickedInventory, @NotNull @NotNull AbstractInventory inventory, @NotNull @NotNull Player player, int slot, @NotNull @NotNull ItemStack clicked, @NotNull @NotNull ItemStack cursor) -
drop
@NotNull public @NotNull InventoryClickResult drop(@NotNull @NotNull Player player, @NotNull @NotNull AbstractInventory inventory, boolean all, int slot, int button, @NotNull @NotNull ItemStack clicked, @NotNull @NotNull ItemStack cursor) -
clearCache
-