Uses of Interface
de.studiocode.invui.virtualinventory.event.UpdateReason
Packages that use UpdateReason
Package
Description
-
Uses of UpdateReason in de.studiocode.invui.gui
Methods in de.studiocode.invui.gui with parameters of type UpdateReasonModifier and TypeMethodDescriptionbooleanGUI.handleItemDrag(UpdateReason updateReason, int slot, org.bukkit.inventory.ItemStack oldStack, org.bukkit.inventory.ItemStack newStack) A method called when anItemStackhas been dragged over theGUI. -
Uses of UpdateReason in de.studiocode.invui.gui.impl
Methods in de.studiocode.invui.gui.impl with parameters of type UpdateReasonModifier and TypeMethodDescriptionbooleanBaseGUI.handleItemDrag(UpdateReason updateReason, int slot, org.bukkit.inventory.ItemStack oldStack, org.bukkit.inventory.ItemStack newStack) protected intBaseGUI.putIntoFirstVirtualInventory(UpdateReason updateReason, org.bukkit.inventory.ItemStack itemStack, VirtualInventory... ignored) -
Uses of UpdateReason in de.studiocode.invui.virtualinventory
Methods in de.studiocode.invui.virtualinventory with parameters of type UpdateReasonModifier and TypeMethodDescriptionintVirtualInventory.addItem(@Nullable UpdateReason updateReason, org.bukkit.inventory.ItemStack itemStack) Adds anItemStackto theVirtualInventory.intVirtualInventory.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.VirtualInventory.callAfterUpdateEvent(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) Creates anInventoryUpdatedEventand calls theVirtualInventory.inventoryUpdatedHandlerto handle it.VirtualInventory.callPreUpdateEvent(@Nullable UpdateReason updateReason, int slot, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) Creates anItemUpdateEventand calls theVirtualInventory.itemUpdateHandlerto handle it.intVirtualInventory.collectToCursor(@Nullable UpdateReason updateReason, org.bukkit.inventory.ItemStack itemStack) Finds allItemStacks similar to the providedItemStackand removes them from their slot until the maximum stack size of theMaterialis reached.booleanVirtualInventory.forceSetItemStack(@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.intVirtualInventory.putItemStack(@Nullable UpdateReason updateReason, int slot, @NotNull org.bukkit.inventory.ItemStack itemStack) Adds anItemStackon a specific slot.intVirtualInventory.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.booleanVirtualInventory.setItemStack(@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. -
Uses of UpdateReason in de.studiocode.invui.virtualinventory.event
Classes in de.studiocode.invui.virtualinventory.event that implement UpdateReasonConstructors in de.studiocode.invui.virtualinventory.event with parameters of type UpdateReasonModifierConstructorDescriptionInventoryUpdatedEvent(@NotNull VirtualInventory virtualInventory, int slot, @Nullable UpdateReason updateReason, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) Creates a newItemUpdateEvent.ItemUpdateEvent(@NotNull VirtualInventory virtualInventory, int slot, @Nullable UpdateReason updateReason, @Nullable org.bukkit.inventory.ItemStack previousItemStack, @Nullable org.bukkit.inventory.ItemStack newItemStack) Creates a newItemUpdateEvent.