Uses of Class
xyz.xenondevs.invui.inventory.event.ItemPreUpdateEvent
-
Uses of ItemPreUpdateEvent in xyz.xenondevs.invui.inventory
Modifier and TypeMethodDescriptionCompositeInventory.callPreUpdateEvent
(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) Inventory.callPreUpdateEvent
(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) Creates anItemPreUpdateEvent
and calls theInventory.preUpdateHandler
to handle it.ObscuredInventory.callPreUpdateEvent
(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) Modifier and TypeMethodDescription@Nullable Consumer
<@NotNull ItemPreUpdateEvent> Inventory.getPreUpdateHandler()
Gets the configured pre update handler.Modifier and TypeMethodDescriptionvoid
CompositeInventory.setPreUpdateHandler
(@Nullable Consumer<@NotNull ItemPreUpdateEvent> preUpdateHandler) void
Inventory.setPreUpdateHandler
(@Nullable Consumer<@NotNull ItemPreUpdateEvent> preUpdateHandler) Sets a handler which is called every time something gets updated in theInventory
.void
ObscuredInventory.setPreUpdateHandler
(@Nullable Consumer<@NotNull ItemPreUpdateEvent> preUpdateHandler)