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 ItemStackItemUtil.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 TypeMethodDescriptionvoidEntityEquipment.setArmorContents(ItemStack[] items) Sets the entities armor to the provided array of ItemStacksvoidStandardEntityEquipment.setArmorContents(ItemStack[] items) voidSets the boots worn by the entityvoidvoidEntityEquipment.setChestplate(ItemStack chestplate) Sets the chest plate worn by the entityvoidStandardEntityEquipment.setChestplate(ItemStack chestplate) voidSets the helmet worn by the entityvoidvoidEntityEquipment.setItem(EquipmentSlot slot, ItemStack item) Stores the ItemStack at the given equipment slot in the inventory.voidStandardEntityEquipment.setItem(EquipmentSlot slot, ItemStack item) voidEntityEquipment.setItemInMainHand(ItemStack item) Sets the item the entity is holding in their main hand.voidStandardEntityEquipment.setItemInMainHand(ItemStack item) voidEntityEquipment.setItemInOffHand(ItemStack item) Sets the item the entity is holding in their off hand.voidStandardEntityEquipment.setItemInOffHand(ItemStack item) voidEntityEquipment.setLeggings(ItemStack leggings) Sets the leggings worn by the entityvoidStandardEntityEquipment.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 TypeMethodDescriptionvoidInventoryClickEvent.setCarriedItem(ItemStack stack) Deprecated.voidInventoryDragEvent.setCarriedItem(ItemStack newCursor) voidInventoryClickEvent.setCurrentItem(ItemStack stack) voidInventoryCreativeEvent.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 TypeMethodDescriptionvoidPlayerSwapHandItemsEvent.setMainHandItem(ItemStack mainHandItem) voidPlayerSwapHandItemsEvent.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.inventoryMethods in com.loohp.limbo.inventory that return ItemStackModifier and TypeMethodDescriptionItemStack.amount(int amount) ItemStack.clone()<T> ItemStackItemStack.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 TypeMethodDescriptionvoidDeprecated.voidDeprecated.voidStores the given ItemStacks in the inventory.Finds all slots in the inventory containing any ItemStacks with the given ItemStack.voidDeprecated.voidDeprecated.booleanbooleanbooleanChecks if the inventory contains any ItemStacks matching the given ItemStack.booleanChecks if the inventory contains at least the minimum amount specified of exactly matching ItemStacks.booleanAbstractInventory.containsAtLeast(ItemStack item, int amount) booleanInventory.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.intintReturns the first slot in the inventory containing an ItemStack with the given stack.booleanvoidvoidRemoves all stacks in the inventory matching the given stack.AbstractInventory.removeItem(ItemStack... items) Inventory.removeItem(ItemStack... items) Removes the given ItemStacks from the inventory.voidvoidInventoryView.setCarriedItem(ItemStack carriedItem) voidAbstractInventory.setContents(ItemStack[] items) voidInventory.setContents(ItemStack[] items) Completely replaces the inventory's contents.voidvoidStores the ItemStack at the given index of the inventory.voidvoidAbstractInventory.setStorageContents(ItemStack[] items) voidInventory.setStorageContents(ItemStack[] items) Put the given ItemStacks into the storage slotsvoidInventoryUpdateListener.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 TypeMethodDescriptionvoidPlayerInventory.setArmorContents(ItemStack[] items) voidvoidPlayerInventory.setChestplate(ItemStack chestplate) voidvoidPlayerInventory.setItem(EquipmentSlot slot, ItemStack item) voidPlayerInventory.setItemInMainHand(ItemStack item) voidPlayerInventory.setItemInOffHand(ItemStack item) voidPlayerInventory.setLeggings(ItemStack leggings) -
Uses of ItemStack in com.loohp.limbo.utils
Methods in com.loohp.limbo.utils that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackInventoryClickUtils.getQuickCraftSlotCount(Set<Integer> set, int i, ItemStack itemstack, int j) Methods in com.loohp.limbo.utils with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanInventoryClickUtils.canItemQuickReplace(InventoryView view, int slot, ItemStack itemstack, boolean flag) static ItemStackInventoryClickUtils.getQuickCraftSlotCount(Set<Integer> set, int i, ItemStack itemstack, int j)