Uses of Interface
xyz.xenondevs.invui.inventory.event.UpdateReason
Packages that use UpdateReason
Package
Description
-
Uses of UpdateReason in xyz.xenondevs.invui.gui
Methods in xyz.xenondevs.invui.gui with parameters of type UpdateReasonModifier and TypeMethodDescriptionbooleanAbstractGui.handleItemDrag(UpdateReason updateReason, int slot, org.bukkit.inventory.ItemStack oldStack, org.bukkit.inventory.ItemStack newStack) Handles an item drag on a single slot of thisAbstractGui.protected intAbstractGui.putIntoFirstInventory(UpdateReason updateReason, org.bukkit.inventory.ItemStack itemStack, Inventory... ignored) Puts anItemStackinto the firstInventorythat accepts it. -
Uses of UpdateReason in xyz.xenondevs.invui.inventory
Methods in xyz.xenondevs.invui.inventory with parameters of type UpdateReasonModifier and TypeMethodDescriptionintInventory.addItem(@Nullable UpdateReason updateReason, @NotNull org.bukkit.inventory.ItemStack itemStack) Adds anItemStackto theInventory.intInventory.addItemAmount(@Nullable UpdateReason updateReason, int slot, int amount) Adds a specific amount to anItemStackon a slot while respecting the maximum allowed stack size on that slot.voidCompositeInventory.callPostUpdateEvent(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) voidInventory.callPostUpdateEvent(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) Creates anItemPostUpdateEventand calls theInventory.postUpdateHandlerto handle it.voidObscuredInventory.callPostUpdateEvent(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) CompositeInventory.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 anItemPreUpdateEventand calls theInventory.preUpdateHandlerto handle it.ObscuredInventory.callPreUpdateEvent(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) intInventory.collectSimilar(@Nullable UpdateReason updateReason, @NotNull org.bukkit.inventory.ItemStack itemStack) Finds allItemStacks similar to the providedItemStackand removes them from their slot until the amount of the givenItemStackreaches its maximum stack size.intInventory.collectSimilar(@Nullable UpdateReason updateReason, @NotNull org.bukkit.inventory.ItemStack template, int baseAmount) Finds allItemStacks similar to the providedItemStackand removes them from their slot until the maximum stack size of theMaterialis reached.booleanInventory.forceSetItem(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack itemStack) Changes theItemStackon a specific slot to that one, regardless of what was previously on that slot.booleanInventory.modifyItem(@Nullable UpdateReason updateReason, int slot, @NotNull Consumer<@Nullable org.bukkit.inventory.ItemStack> modifier) Changes theItemStackon a specific slot based on the currentItemStackon that slot, using a modifier consumer.intInventory.putItem(@Nullable UpdateReason updateReason, int slot, @NotNull org.bukkit.inventory.ItemStack itemStack) Adds anItemStackon a specific slot and returns the amount of items that did not fit on that slot.intInventory.removeFirst(@Nullable UpdateReason updateReason, int amount, @NotNull Predicate<@NotNull org.bukkit.inventory.ItemStack> predicate) Removes the first nItemStacksmatching the givenPredicate.intInventory.removeFirstSimilar(@Nullable UpdateReason updateReason, int amount, @NotNull org.bukkit.inventory.ItemStack itemStack) Removes the first nItemStacksthat are similar to the specifiedItemStack.intInventory.removeIf(@Nullable UpdateReason updateReason, @NotNull Predicate<@NotNull org.bukkit.inventory.ItemStack> predicate) Removes allItemStacksmatching the givenPredicate.intInventory.removeSimilar(@Nullable UpdateReason updateReason, @NotNull org.bukkit.inventory.ItemStack itemStack) Removes allItemStacksthat are similar to the specifiedItemStack.booleanInventory.replaceItem(@Nullable UpdateReason updateReason, int slot, @NotNull Function<@Nullable org.bukkit.inventory.ItemStack, @Nullable org.bukkit.inventory.ItemStack> function) Replaces theItemStackon a specific slot based on the currentItemStackon that slot, using a replace function.booleanInventory.setItem(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack itemStack) Changes theItemStackon a specific slot to the given one, regardless of what previously was on that slot.intInventory.setItemAmount(@Nullable UpdateReason updateReason, int slot, int amount) Sets the amount of anItemStackon a slot to the given value while respecting the max allowed stack size on that slot. -
Uses of UpdateReason in xyz.xenondevs.invui.inventory.event
Classes in xyz.xenondevs.invui.inventory.event that implement UpdateReasonFields in xyz.xenondevs.invui.inventory.event declared as UpdateReasonModifier and TypeFieldDescriptionstatic final UpdateReasonUpdateReason.SUPPRESSEDAnUpdateReasonthat suppresses all event calls.Constructors in xyz.xenondevs.invui.inventory.event with parameters of type UpdateReasonModifierConstructorDescriptionItemPostUpdateEvent(@NotNull Inventory inventory, int slot, @Nullable UpdateReason updateReason, @Nullable org.bukkit.inventory.ItemStack previousItem, @Nullable org.bukkit.inventory.ItemStack newItem) Creates a newItemPreUpdateEvent.ItemPreUpdateEvent(@NotNull Inventory inventory, int slot, @Nullable UpdateReason updateReason, @Nullable org.bukkit.inventory.ItemStack previousItem, @Nullable org.bukkit.inventory.ItemStack newItem) Creates a newItemPreUpdateEvent.