Uses of Interface
xyz.xenondevs.invui.inventory.event.UpdateReason

Packages that use UpdateReason
  • Uses of UpdateReason in xyz.xenondevs.invui.gui

    Methods in xyz.xenondevs.invui.gui with parameters of type UpdateReason
    Modifier and Type
    Method
    Description
    boolean
    AbstractGui.handleItemDrag(UpdateReason updateReason, int slot, org.bukkit.inventory.ItemStack oldStack, org.bukkit.inventory.ItemStack newStack)
    Handles an item drag on a single slot of this AbstractGui.
    protected int
    AbstractGui.putIntoFirstInventory(UpdateReason updateReason, org.bukkit.inventory.ItemStack itemStack, Inventory... ignored)
    Puts an ItemStack into the first Inventory that accepts it.
  • Uses of UpdateReason in xyz.xenondevs.invui.inventory

    Methods in xyz.xenondevs.invui.inventory with parameters of type UpdateReason
    Modifier and Type
    Method
    Description
    int
    Inventory.addItem(@Nullable UpdateReason updateReason, @NotNull org.bukkit.inventory.ItemStack itemStack)
    Adds an ItemStack to the Inventory.
    int
    Inventory.addItemAmount(@Nullable UpdateReason updateReason, int slot, int amount)
    Adds a specific amount to an ItemStack on a slot while respecting the maximum allowed stack size on that slot.
    void
    CompositeInventory.callPostUpdateEvent(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack)
     
    void
    Inventory.callPostUpdateEvent(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack)
    Creates an ItemPostUpdateEvent and calls the Inventory.postUpdateHandler to handle it.
    void
    ObscuredInventory.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 an ItemPreUpdateEvent and calls the Inventory.preUpdateHandler to handle it.
    ObscuredInventory.callPreUpdateEvent(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack)
     
    int
    Inventory.collectSimilar(@Nullable UpdateReason updateReason, @NotNull org.bukkit.inventory.ItemStack itemStack)
    Finds all ItemStacks similar to the provided ItemStack and removes them from their slot until the amount of the given ItemStack reaches its maximum stack size.
    int
    Inventory.collectSimilar(@Nullable UpdateReason updateReason, @NotNull org.bukkit.inventory.ItemStack template, int baseAmount)
    Finds all ItemStacks similar to the provided ItemStack and removes them from their slot until the maximum stack size of the Material is reached.
    boolean
    Inventory.forceSetItem(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack itemStack)
    Changes the ItemStack on a specific slot to that one, regardless of what was previously on that slot.
    boolean
    Inventory.modifyItem(@Nullable UpdateReason updateReason, int slot, @NotNull Consumer<@Nullable org.bukkit.inventory.ItemStack> modifier)
    Changes the ItemStack on a specific slot based on the current ItemStack on that slot, using a modifier consumer.
    int
    Inventory.putItem(@Nullable UpdateReason updateReason, int slot, @NotNull org.bukkit.inventory.ItemStack itemStack)
    Adds an ItemStack on a specific slot and returns the amount of items that did not fit on that slot.
    int
    Inventory.removeFirst(@Nullable UpdateReason updateReason, int amount, @NotNull Predicate<@NotNull org.bukkit.inventory.ItemStack> predicate)
    Removes the first n ItemStacks matching the given Predicate.
    int
    Inventory.removeFirstSimilar(@Nullable UpdateReason updateReason, int amount, @NotNull org.bukkit.inventory.ItemStack itemStack)
    Removes the first n ItemStacks that are similar to the specified ItemStack.
    int
    Inventory.removeIf(@Nullable UpdateReason updateReason, @NotNull Predicate<@NotNull org.bukkit.inventory.ItemStack> predicate)
    Removes all ItemStacks matching the given Predicate.
    int
    Inventory.removeSimilar(@Nullable UpdateReason updateReason, @NotNull org.bukkit.inventory.ItemStack itemStack)
    Removes all ItemStacks that are similar to the specified ItemStack.
    boolean
    Inventory.replaceItem(@Nullable UpdateReason updateReason, int slot, @NotNull Function<@Nullable org.bukkit.inventory.ItemStack,@Nullable org.bukkit.inventory.ItemStack> function)
    Replaces the ItemStack on a specific slot based on the current ItemStack on that slot, using a replace function.
    boolean
    Inventory.setItem(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack itemStack)
    Changes the ItemStack on a specific slot to the given one, regardless of what previously was on that slot.
    int
    Inventory.setItemAmount(@Nullable UpdateReason updateReason, int slot, int amount)
    Sets the amount of an ItemStack on 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

    Modifier and Type
    Class
    Description
    class 
     
    Modifier and Type
    Field
    Description
    static final UpdateReason
    UpdateReason.SUPPRESSED
    An UpdateReason that suppresses all event calls.
    Constructors in xyz.xenondevs.invui.inventory.event with parameters of type UpdateReason
    Modifier
    Constructor
    Description
     
    ItemPostUpdateEvent(@NotNull Inventory inventory, int slot, @Nullable UpdateReason updateReason, @Nullable org.bukkit.inventory.ItemStack previousItem, @Nullable org.bukkit.inventory.ItemStack newItem)
    Creates a new ItemPreUpdateEvent.
     
    ItemPreUpdateEvent(@NotNull Inventory inventory, int slot, @Nullable UpdateReason updateReason, @Nullable org.bukkit.inventory.ItemStack previousItem, @Nullable org.bukkit.inventory.ItemStack newItem)
    Creates a new ItemPreUpdateEvent.