Uses of Class
com.loohp.limbo.inventory.ItemStack
Packages that use ItemStack
Package
Description
-
Uses of ItemStack in cn.ycraft.limbo.util
Methods in cn.ycraft.limbo.util that return ItemStackModifier and TypeMethodDescriptionstatic ItemStack
ItemUtil.to
(@Nullable org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack itemStack) Methods in cn.ycraft.limbo.util with parameters of type ItemStack -
Uses of ItemStack in com.loohp.limbo.entity
Methods in com.loohp.limbo.entity that return ItemStackModifier and TypeMethodDescriptionEntityEquipment.getArmorContents()
Gets a copy of all worn armorStandardEntityEquipment.getArmorContents()
EntityEquipment.getBoots()
Gets a copy of the boots currently being worn by the entityStandardEntityEquipment.getBoots()
EntityEquipment.getChestplate()
Gets a copy of the chest plate currently being worn by the entityStandardEntityEquipment.getChestplate()
EntityEquipment.getHelmet()
Gets a copy of the helmet currently being worn by the entityStandardEntityEquipment.getHelmet()
EntityEquipment.getItem
(EquipmentSlot slot) Gets the ItemStack at the given equipment slot in the inventory.StandardEntityEquipment.getItem
(EquipmentSlot slot) EntityEquipment.getItemInMainHand()
Gets a copy of the item the entity is currently holding in their main hand.StandardEntityEquipment.getItemInMainHand()
EntityEquipment.getItemInOffHand()
Gets a copy of the item the entity is currently holding in their off hand.StandardEntityEquipment.getItemInOffHand()
EntityEquipment.getLeggings()
Gets a copy of the leggings currently being worn by the entityStandardEntityEquipment.getLeggings()
Methods in com.loohp.limbo.entity with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
EntityEquipment.setArmorContents
(ItemStack[] items) Sets the entities armor to the provided array of ItemStacksvoid
StandardEntityEquipment.setArmorContents
(ItemStack[] items) void
Sets the boots worn by the entityvoid
void
EntityEquipment.setChestplate
(ItemStack chestplate) Sets the chest plate worn by the entityvoid
StandardEntityEquipment.setChestplate
(ItemStack chestplate) void
Sets the helmet worn by the entityvoid
void
EntityEquipment.setItem
(EquipmentSlot slot, ItemStack item) Stores the ItemStack at the given equipment slot in the inventory.void
StandardEntityEquipment.setItem
(EquipmentSlot slot, ItemStack item) void
EntityEquipment.setItemInMainHand
(ItemStack item) Sets the item the entity is holding in their main hand.void
StandardEntityEquipment.setItemInMainHand
(ItemStack item) void
EntityEquipment.setItemInOffHand
(ItemStack item) Sets the item the entity is holding in their off hand.void
StandardEntityEquipment.setItemInOffHand
(ItemStack item) void
EntityEquipment.setLeggings
(ItemStack leggings) Sets the leggings worn by the entityvoid
StandardEntityEquipment.setLeggings
(ItemStack leggings) -
Uses of ItemStack in com.loohp.limbo.events.inventory
Methods in com.loohp.limbo.events.inventory that return ItemStackModifier and TypeMethodDescriptionInventoryDragEvent.get()
InventoryClickEvent.getCarriedItem()
InventoryDragEvent.getCarriedItem()
InventoryClickEvent.getCurrentItem()
InventoryCreativeEvent.getNewItem()
InventoryDragEvent.getOldCarriedItem()
Methods in com.loohp.limbo.events.inventory that return types with arguments of type ItemStackMethods in com.loohp.limbo.events.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
InventoryClickEvent.setCarriedItem
(ItemStack stack) Deprecated.void
InventoryDragEvent.setCarriedItem
(ItemStack newCursor) void
InventoryClickEvent.setCurrentItem
(ItemStack stack) void
InventoryCreativeEvent.setNewItem
(ItemStack newItem) Constructors in com.loohp.limbo.events.inventory with parameters of type ItemStackModifierConstructorDescriptionInventoryCreativeEvent
(InventoryView inventoryView, int slot, ItemStack newItem) InventoryDragEvent
(InventoryView view, ItemStack newCarried, ItemStack oldCarried, boolean right, Map<Integer, ItemStack> slots) Constructor parameters in com.loohp.limbo.events.inventory with type arguments of type ItemStackModifierConstructorDescriptionInventoryDragEvent
(InventoryView view, ItemStack newCarried, ItemStack oldCarried, boolean right, Map<Integer, ItemStack> slots) -
Uses of ItemStack in com.loohp.limbo.events.player
Methods in com.loohp.limbo.events.player that return ItemStackModifier and TypeMethodDescriptionPlayerInteractEvent.getItem()
PlayerSwapHandItemsEvent.getMainHandItem()
PlayerSwapHandItemsEvent.getOffHandItem()
Methods in com.loohp.limbo.events.player with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
PlayerSwapHandItemsEvent.setMainHandItem
(ItemStack mainHandItem) void
PlayerSwapHandItemsEvent.setOffHandItem
(ItemStack offHandItem) Constructors in com.loohp.limbo.events.player with parameters of type ItemStackModifierConstructorDescriptionPlayerInteractEvent
(Player player, PlayerInteractEvent.Action action, ItemStack item, BlockState clickedBlock, BlockFace clickedFace, EquipmentSlot hand) PlayerSwapHandItemsEvent
(Player player, ItemStack mainHandItem, ItemStack offHandItem) -
Uses of ItemStack in com.loohp.limbo.inventory
Fields in com.loohp.limbo.inventory declared as ItemStackFields in com.loohp.limbo.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionprotected final AtomicReferenceArray<ItemStack>
AbstractInventory.inventory
Methods in com.loohp.limbo.inventory that return ItemStackModifier and TypeMethodDescriptionItemStack.amount
(int amount) ItemStack.clone()
<T> ItemStack
ItemStack.component
(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type, T value) ItemStack.components
(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components) ItemStack.displayName
(net.kyori.adventure.text.Component component) InventoryView.getCarriedItem()
AbstractInventory.getContents()
Inventory.getContents()
Returns all ItemStacks from the inventoryAbstractInventory.getItem
(int index) Inventory.getItem
(int index) Returns the ItemStack found in the slot at the given indexInventoryView.getItem
(int index) AbstractInventory.getStorageContents()
Inventory.getStorageContents()
Return the contents from the section of the inventory where items can reasonably be expected to be stored.InventoryIterator.next()
InventoryIterator.previous()
ItemStack.type
(net.kyori.adventure.key.Key material) Methods in com.loohp.limbo.inventory that return types with arguments of type ItemStackModifier and TypeMethodDescriptionStores the given ItemStacks in the inventory.AbstractInventory.all
(net.kyori.adventure.key.Key material) Finds all slots in the inventory containing any ItemStacks with the given ItemStack.Inventory.all
(net.kyori.adventure.key.Key material) Returns a HashMap with all slots and ItemStacks in the inventory with the given Material.AbstractInventory.iterator()
AbstractInventory.iterator
(int index) Inventory.iterator()
Inventory.iterator
(int index) Returns an iterator starting at the given index.AbstractInventory.removeItem
(ItemStack... items) Inventory.removeItem
(ItemStack... items) Removes the given ItemStacks from the inventory.Methods in com.loohp.limbo.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
Deprecated.void
Deprecated.void
Stores the given ItemStacks in the inventory.Finds all slots in the inventory containing any ItemStacks with the given ItemStack.void
Deprecated.void
Deprecated.boolean
boolean
boolean
Checks if the inventory contains any ItemStacks matching the given ItemStack.boolean
Checks if the inventory contains at least the minimum amount specified of exactly matching ItemStacks.boolean
AbstractInventory.containsAtLeast
(ItemStack item, int amount) boolean
Inventory.containsAtLeast
(ItemStack item, int amount) Checks if the inventory contains ItemStacks matching the given ItemStack whose amounts sum to at least the minimum amount specified.int
int
Returns the first slot in the inventory containing an ItemStack with the given stack.boolean
void
void
Removes all stacks in the inventory matching the given stack.AbstractInventory.removeItem
(ItemStack... items) Inventory.removeItem
(ItemStack... items) Removes the given ItemStacks from the inventory.void
void
InventoryView.setCarriedItem
(ItemStack carriedItem) void
AbstractInventory.setContents
(ItemStack[] items) void
Inventory.setContents
(ItemStack[] items) Completely replaces the inventory's contents.void
void
Stores the ItemStack at the given index of the inventory.void
void
AbstractInventory.setStorageContents
(ItemStack[] items) void
Inventory.setStorageContents
(ItemStack[] items) Put the given ItemStacks into the storage slotsvoid
InventoryUpdateListener.slotChanged
(Inventory inventory, int slot, ItemStack oldItem, ItemStack newItem) -
Uses of ItemStack in com.loohp.limbo.player
Methods in com.loohp.limbo.player that return ItemStackModifier and TypeMethodDescriptionPlayerInventory.getArmorContents()
PlayerInventory.getBoots()
PlayerInventory.getChestplate()
PlayerInventory.getHelmet()
PlayerInventory.getItem
(EquipmentSlot slot) PlayerInventory.getItemInMainHand()
PlayerInventory.getItemInOffHand()
PlayerInventory.getLeggings()
Methods in com.loohp.limbo.player with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
PlayerInventory.setArmorContents
(ItemStack[] items) void
void
PlayerInventory.setChestplate
(ItemStack chestplate) void
void
PlayerInventory.setItem
(EquipmentSlot slot, ItemStack item) void
PlayerInventory.setItemInMainHand
(ItemStack item) void
PlayerInventory.setItemInOffHand
(ItemStack item) void
PlayerInventory.setLeggings
(ItemStack leggings) -
Uses of ItemStack in com.loohp.limbo.utils
Methods in com.loohp.limbo.utils that return ItemStackModifier and TypeMethodDescriptionstatic ItemStack
InventoryClickUtils.getQuickCraftSlotCount
(Set<Integer> set, int i, ItemStack itemstack, int j) Methods in com.loohp.limbo.utils with parameters of type ItemStackModifier and TypeMethodDescriptionstatic boolean
InventoryClickUtils.canItemQuickReplace
(InventoryView view, int slot, ItemStack itemstack, boolean flag) static ItemStack
InventoryClickUtils.getQuickCraftSlotCount
(Set<Integer> set, int i, ItemStack itemstack, int j)