Uses of Class
com.hypixel.hytale.server.core.inventory.ItemStack
Packages that use ItemStack
Package
Description
-
Uses of ItemStack in com.hypixel.hytale.builtin.adventure.objectives
Methods in com.hypixel.hytale.builtin.adventure.objectives that return ItemStackMethods in com.hypixel.hytale.builtin.adventure.objectives with parameters of type ItemStackModifier and TypeMethodDescriptionvoidObjective.setObjectiveItemStarter(ItemStack objectiveItemStarter) -
Uses of ItemStack in com.hypixel.hytale.builtin.crafting
Methods in com.hypixel.hytale.builtin.crafting with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanBenchRecipeRegistry.isValidCraftingMaterial(ItemStack itemStack) static booleanCraftingPlugin.isValidCraftingMaterialForBench(Bench bench, ItemStack itemStack) static booleanCraftingPlugin.isValidUpgradeMaterialForBench(Bench bench, int tierLevel, ItemStack itemStack) -
Uses of ItemStack in com.hypixel.hytale.builtin.crafting.component
Methods in com.hypixel.hytale.builtin.crafting.component that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackCraftingManager.getOutputItemStack(MaterialQuantity outputMaterial, int quantity) Fetches a list of item stacks as the output item stacks for the given output material, for the given quantity.static ItemStackCraftingManager.getOutputItemStack(MaterialQuantity outputMaterial, String id) Fetches a list of item stacks as the output item stacks for the given output material.BenchBlock.getUpgradeItems()Methods in com.hypixel.hytale.builtin.crafting.component that return types with arguments of type ItemStackModifier and TypeMethodDescriptionCraftingManager.getOutputItemStacks(CraftingRecipe recipe) Fetches a list of item stacks as the output item stacks for the given recipe.CraftingManager.getOutputItemStacks(CraftingRecipe recipe, int quantity) Fetches a list of item stacks as the output item stacks for the given recipe, for the given quantity.Methods in com.hypixel.hytale.builtin.crafting.component with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanCraftingManager.matches(MaterialQuantity craftingMaterial, ItemStack itemStack) Determines whether the given crafting material matches the given item stack.static booleanCraftingManager.matchesAnyRecipe(List<CraftingRecipe> recipes, int inputSlotIndex, ItemStack slotItemStack) Determines whether the given item stack matches any of the provided bench recipes.voidBenchBlock.setUpgradeItems(ItemStack[] upgradeItems) Method parameters in com.hypixel.hytale.builtin.crafting.component with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidBenchBlock.addUpgradeItems(List<ItemStack> consumed) voidProcessingBenchBlock.dropFuelItems(List<ItemStack> itemStacks) Constructors in com.hypixel.hytale.builtin.crafting.component with parameters of type ItemStack -
Uses of ItemStack in com.hypixel.hytale.builtin.portals.ui
Constructors in com.hypixel.hytale.builtin.portals.ui with parameters of type ItemStackModifierConstructorDescriptionPortalSummonPrompt(int id, BlockPosition block, ItemStack offeredItemStack, String worldName) -
Uses of ItemStack in com.hypixel.hytale.server.core.asset.type.buildertool.config
Methods in com.hypixel.hytale.server.core.asset.type.buildertool.config that return ItemStackModifier and TypeMethodDescriptionBuilderTool.createItemStack(String itemId, int quantity, BuilderTool.ArgData argData) BuilderTool.updateArgMetadata(ItemStack itemStack, String id, String value) Methods in com.hypixel.hytale.server.core.asset.type.buildertool.config with parameters of type ItemStackModifier and TypeMethodDescriptionBuilderTool.getItemArgData(ItemStack itemStack) BuilderTool.updateArgMetadata(ItemStack itemStack, String id, String value) -
Uses of ItemStack in com.hypixel.hytale.server.core.asset.type.item.config
Methods in com.hypixel.hytale.server.core.asset.type.item.config with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanCoreItemAbility.canUseWith(ItemStack heldItemStack) Whether this ability may be cast while holding the given item. -
Uses of ItemStack in com.hypixel.hytale.server.core.entity
Methods in com.hypixel.hytale.server.core.entity that return ItemStackMethods in com.hypixel.hytale.server.core.entity with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ItemStackSlotTransactionItemUtils.decreaseItemStackDurability(Ref<EntityStore> ref, ItemStack itemStack, int inventoryId, int slotId, ComponentAccessor<EntityStore> componentAccessor) Decreases the durability of an item stack if possible, applying penalties if the item breaks.static Ref<EntityStore> ItemUtils.dropItem(Ref<EntityStore> ref, ItemStack itemStack, ComponentAccessor<EntityStore> componentAccessor) Called to attempt to drop the given item stack to the ground, with a subtle amount of force appliedstatic voidItemUtils.interactivelyPickupItem(Ref<EntityStore> ref, ItemStack itemStack, org.joml.Vector3d origin, ComponentAccessor<EntityStore> componentAccessor) Called to attempt to pick up the given item stackvoidInteractionContext.setHeldItem(ItemStack heldItem) static Ref<EntityStore> ItemUtils.throwItem(Ref<EntityStore> ref, ComponentAccessor<EntityStore> store, ItemStack itemStack, org.joml.Vector3d throwDirection, float throwSpeed) Called to create a new item drop instance, based on the providedItemStack, which spawns into the world, with the applied velocity towards the given directionstatic Ref<EntityStore> ItemUtils.throwItem(Ref<EntityStore> ref, ItemStack itemStack, float throwSpeed, ComponentAccessor<EntityStore> componentAccessor) Called to create a new item drop instance, based on the providedItemStack, which spawns into the world, with the applied velocity towards the given directionstatic ItemStackSlotTransactionItemUtils.updateItemStackDurability(Ref<EntityStore> ref, ItemStack itemStack, ItemContainer container, int slotId, double durabilityChange, ComponentAccessor<EntityStore> componentAccessor) Updates the durability of an item stack in a container slot.LivingEntity.updateItemStackDurability(Ref<EntityStore> ref, ItemStack itemStack, ItemContainer container, int slotId, double durabilityChange, ComponentAccessor<EntityStore> componentAccessor) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ItemStack in com.hypixel.hytale.server.core.entity.entities
Methods in com.hypixel.hytale.server.core.entity.entities with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ItemStackTransactionPlayer.giveItem(ItemStack stack, Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) static voidPlayer.notifyPickupItem(Ref<EntityStore> ref, ItemStack itemStack, org.joml.Vector3d position, ComponentAccessor<EntityStore> componentAccessor) Called to notify the player of an item pick-up, playing expected audio and effects -
Uses of ItemStack in com.hypixel.hytale.server.core.entity.entities.player.pages.itemrepair
Constructors in com.hypixel.hytale.server.core.entity.entities.player.pages.itemrepair with parameters of type ItemStackModifierConstructorDescriptionItemRepairElement(ItemStack itemStack, RepairItemInteraction interaction) -
Uses of ItemStack in com.hypixel.hytale.server.core.event.events.ecs
Methods in com.hypixel.hytale.server.core.event.events.ecs that return ItemStackModifier and TypeMethodDescriptionBreakBlockEvent.getItemInHand()DamageBlockEvent.getItemInHand()PlaceBlockEvent.getItemInHand()DropItemEvent.Drop.getItemStack()InteractivelyPickupItemEvent.getItemStack()Methods in com.hypixel.hytale.server.core.event.events.ecs with parameters of type ItemStackModifier and TypeMethodDescriptionvoidDropItemEvent.Drop.setItemStack(ItemStack itemStack) Called to set the item stack being dropped.voidInteractivelyPickupItemEvent.setItemStack(ItemStack itemStack) Called to set theItemStackbeing picked up.Constructors in com.hypixel.hytale.server.core.event.events.ecs with parameters of type ItemStackModifierConstructorDescriptionBreakBlockEvent(ItemStack itemInHand, org.joml.Vector3i targetBlock, BlockType blockType) Default Constructor for aBreakBlockEventinstance.DamageBlockEvent(ItemStack itemInHand, org.joml.Vector3i targetBlock, BlockType blockType, float currentDamage, float damage) Default Constructor for aDamageBlockEventinstance.Default Constructor for aDropItemEventinstance.InteractivelyPickupItemEvent(ItemStack itemStack) Default Constructor for aInteractivelyPickupItemEventinstance.PlaceBlockEvent(ItemStack itemInHand, org.joml.Vector3i targetBlock, RotationTuple rotation) Default Constructor for aPlaceBlockEventinstance. -
Uses of ItemStack in com.hypixel.hytale.server.core.event.events.player
Methods in com.hypixel.hytale.server.core.event.events.player that return ItemStackConstructors in com.hypixel.hytale.server.core.event.events.player with parameters of type ItemStackModifierConstructorDescriptionPlayerInteractEvent(Ref<EntityStore> ref, Player player, long clientUseTime, InteractionType actionType, ItemStack itemInHand, org.joml.Vector3i targetBlock, Ref<EntityStore> targetRef, Entity targetEntity) Deprecated. -
Uses of ItemStack in com.hypixel.hytale.server.core.inventory
Fields in com.hypixel.hytale.server.core.inventory declared as ItemStackModifier and TypeFieldDescriptionstatic final ItemStackItemStack.EMPTYRepresents an empty item stack that can be used where needed.static final ItemStack[]ItemStack.EMPTY_ARRAYAn emptyItemStackarray to reduce allocation overhead.Fields in com.hypixel.hytale.server.core.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final BuilderCodec<ItemStack> ItemStack.CODECThe codec used to parseItemStackinstances.Methods in com.hypixel.hytale.server.core.inventory that return ItemStackModifier and TypeMethodDescriptionItemStack.cleanCopy()Called to fetch a copy of this item stack without transient runtime flags.Inventory.getActiveHotbarItem()Deprecated, for removal: This API element is subject to removal in a future version.Fetch theInventoryComponent.Hotbarcomponent and callActiveSlotInventoryComponent.getActiveItem()instead.ActiveSlotInventoryComponent.getActiveItem()Inventory.getActiveToolItem()Deprecated, for removal: This API element is subject to removal in a future version.Fetch theInventoryComponent.Toolcomponent and callActiveSlotInventoryComponent.getActiveItem()instead.Inventory.getItemInHand()Deprecated, for removal: This API element is subject to removal in a future version.static ItemStackInventoryComponent.getItemInHand(ComponentAccessor<EntityStore> accessor, Ref<EntityStore> ref) Returns the item the entity is currently holding.static ItemStackInventoryComponent.getItemInHand(Holder<EntityStore> holder) Returns the item the entity is currently holding, using holder-based component access.ItemContext.getItemStack()Inventory.getToolsItem()Deprecated, for removal: This API element is subject to removal in a future version.Fetch theInventoryComponent.Toolcomponent and callActiveSlotInventoryComponent.getActiveItem()instead.Inventory.getUtilityItem()Deprecated, for removal: This API element is subject to removal in a future version.Fetch theInventoryComponent.Utilitycomponent and callActiveSlotInventoryComponent.getActiveItem()instead.MaterialQuantity.toItemStack()ItemStack.withDurability(double durability) Called to fetch a copy of this item stack, reconfigured with the provided durability.ItemStack.withIncreasedDurability(double inc) Called to fetch a copy of this item stack, increasing its durability with the provided amount.ItemStack.withMaxDurability(double maxDurability) Called to fetch a copy of this item stack, reconfigured with the provided max durability.<T> ItemStackItemStack.withMetadata(KeyedCodec<T> keyedCodec, T data) <T> ItemStackItemStack.withMetadata(String key, Codec<T> codec, T data) ItemStack.withMetadata(String key, org.bson.BsonValue bsonValue) ItemStack.withMetadata(org.bson.BsonDocument metadata) Called to fetch a copy of this item stack, reconfigured with the given metadata.ItemStack.withQuality(int quality) Called to fetch a copy of this item stack, reconfigured with the provided quality index.ItemStack.withQuantity(int quantity) Called to fetch a copy of this item stack, reconfigured with the new quantity.ItemStack.withRestoredDurability(double maxDurability) Called to fetch a copy of this item stack, increasing its max durability with the provided amount.Called to fetch a copy of this item stack, reconfigured with the new item from the provided state.Methods in com.hypixel.hytale.server.core.inventory that return types with arguments of type ItemStackModifier and TypeMethodDescriptionInventory.dropAllItemStacks()Deprecated, for removal: This API element is subject to removal in a future version.InventoryUtils.dropAllItemStacks(Ref<EntityStore> ref, ComponentAccessor<EntityStore> accessor) Drops all item stacks from every inventory section on the entity (storage, armor, hotbar, utility, and backpack).MaterialQuantity.toItemStacks(MaterialQuantity[] materials) Fetches the item stacks for the given materials, skipping any that reference no item.Methods in com.hypixel.hytale.server.core.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanbooleanItemStack.isEquivalentType(ItemStack itemStack) Compares if the two ItemStack's are of the same 'type'static booleanItemStack.isEquivalentType(ItemStack a, ItemStack b) static booleanItemStack.isSameItemType(ItemStack a, ItemStack b) booleanItemStack.isStackableWith(ItemStack itemStack) Compares if the two ItemStack's are allowed to be stacked together.static booleanItemStack.isStackableWith(ItemStack a, ItemStack b) static MoveTransaction<ItemStackTransaction> InventoryUtils.moveItemFromCheckToInventory(Ref<EntityStore> ref, ItemStack itemStack, ItemContainer targetContainer, short fromSlotId, int quantity, PlayerSettings settings, ComponentAccessor<EntityStore> componentAccessor) Movesquantityof the item atfromSlotIdintargetContainerinto the container determined byInventoryUtils.getContainerForItemPickup(Ref, Item, PlayerSettings, ComponentAccessor)for the item's type.Method parameters in com.hypixel.hytale.server.core.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidActiveSlotInventoryComponent.ensureCapacity(short capacity, List<ItemStack> remainder) Resizes the inventory and clampsActiveSlotInventoryComponent.activeSlottoInventoryComponent.INACTIVE_SLOT_INDEXif it falls out of range.voidInventoryComponent.AbilitySlots.ensureCapacity(short capacity, List<ItemStack> remainder) voidInventoryComponent.Armor.ensureCapacity(short capacity, List<ItemStack> remainder) voidInventoryComponent.ensureCapacity(short capacity, List<ItemStack> remainder) voidInventoryComponent.RuneBag.ensureCapacity(short capacity, List<ItemStack> remainder) voidInventoryComponent.Utility.ensureCapacity(short capacity, List<ItemStack> remainder) voidConstructors in com.hypixel.hytale.server.core.inventory with parameters of type ItemStackModifierConstructorDescriptionItemContext(ItemContainer container, short slot, ItemStack itemStack) -
Uses of ItemStack in com.hypixel.hytale.server.core.inventory.container
Methods in com.hypixel.hytale.server.core.inventory.container that return ItemStackModifier and TypeMethodDescriptionFetchedItemContainer.getItemStack(short slot) ItemContainer.getItemStack(short slot) ItemStackItemContainer.getItemStack(short slot) Note: Optimized implementation since we have direct access to the lock.SimpleItemContainer.getItemStack(short slot) Note: Optimized implementation since we have direct access to the lock.ItemStackItemContainer.getOriginalItemStack()ItemContainer.TempItemData.itemStack()Returns the value of theitemStackrecord component.Methods in com.hypixel.hytale.server.core.inventory.container that return types with arguments of type ItemStackModifier and TypeMethodDescriptionFetchedItemContainer.dropAllItemStacks()FetchedItemContainer.dropAllItemStacks(boolean filter) ItemContainer.dropAllItemStacks()ItemContainer.dropAllItemStacks(boolean filter) SortType.getComparator()EmptyItemContainer.removeAllItemStacks()FetchedItemContainer.removeAllItemStacks()ItemContainer.removeAllItemStacks()Methods in com.hypixel.hytale.server.core.inventory.container with parameters of type ItemStackModifier and TypeMethodDescriptionFetchedItemContainer.addItemStack(ItemStack itemStack) FetchedItemContainer.addItemStack(ItemStack itemStack, boolean allOrNothing, boolean fullStacks, boolean filter) ItemContainer.addItemStack(ItemStack itemStack) Add anItemStackto this containerItemContainer.addItemStack(ItemStack itemStack, boolean allOrNothing, boolean fullStacks, boolean filter) Add anItemStackto this containerFetchedItemContainer.addItemStackToSlot(short slot, ItemStack itemStack) FetchedItemContainer.addItemStackToSlot(short slot, ItemStack itemStack, boolean allOrNothing, boolean filter) ItemContainer.addItemStackToSlot(short slot, ItemStack itemStack) ItemContainer.addItemStackToSlot(short slot, ItemStack itemStack, boolean allOrNothing, boolean filter) static booleanSimpleItemContainer.addOrDropItemStack(ComponentAccessor<EntityStore> store, Ref<EntityStore> ref, ItemContainer itemContainer, short slot, ItemStack itemStack) static booleanSimpleItemContainer.addOrDropItemStack(ComponentAccessor<EntityStore> store, Ref<EntityStore> ref, ItemContainer itemContainer, ItemStack itemStack) booleanFetchedItemContainer.canAddItemStack(ItemStack itemStack) booleanFetchedItemContainer.canAddItemStack(ItemStack itemStack, boolean fullStacks, boolean filter) booleanItemContainer.canAddItemStack(ItemStack itemStack) booleanItemContainer.canAddItemStack(ItemStack itemStack, boolean fullStacks, boolean filter) booleanFetchedItemContainer.canAddItemStackToSlot(short slot, ItemStack itemStack, boolean allOrNothing, boolean filter) booleanItemContainer.canAddItemStackToSlot(short slot, ItemStack itemStack, boolean allOrNothing, boolean filter) booleanFetchedItemContainer.canRemoveItemStack(ItemStack itemStack) booleanFetchedItemContainer.canRemoveItemStack(ItemStack itemStack, boolean exactAmount, boolean filter) booleanItemContainer.canRemoveItemStack(ItemStack itemStack) booleanItemContainer.canRemoveItemStack(ItemStack itemStack, boolean exactAmount, boolean filter) booleanFetchedItemContainer.containsItemStacksStackableWith(ItemStack itemStack) booleanItemContainer.containsItemStacksStackableWith(ItemStack itemStack) FetchedItemContainer.removeItemStack(ItemStack itemStack) FetchedItemContainer.removeItemStack(ItemStack itemStack, boolean allOrNothing, boolean filter) ItemContainer.removeItemStack(ItemStack itemStack) ItemContainer.removeItemStack(ItemStack itemStack, boolean allOrNothing, boolean filter) FetchedItemContainer.removeItemStackFromSlot(short slot, ItemStack itemStackToRemove, int quantityToRemove) FetchedItemContainer.removeItemStackFromSlot(short slot, ItemStack itemStackToRemove, int quantityToRemove, boolean allOrNothing, boolean filter) ItemContainer.removeItemStackFromSlot(short slot, ItemStack itemStackToRemove, int quantityToRemove) ItemContainer.removeItemStackFromSlot(short slot, ItemStack itemStackToRemove, int quantityToRemove, boolean allOrNothing, boolean filter) FetchedItemContainer.replaceItemStackInSlot(short slot, ItemStack itemStackToRemove, ItemStack itemStack) ItemContainer.replaceItemStackInSlot(short slot, ItemStack itemStackToRemove, ItemStack itemStack) FetchedItemContainer.setItemStackForSlot(short slot, ItemStack itemStack) FetchedItemContainer.setItemStackForSlot(short slot, ItemStack itemStack, boolean filter) ItemContainer.setItemStackForSlot(short slot, ItemStack itemStack) ItemContainer.setItemStackForSlot(short slot, ItemStack itemStack, boolean filter) static voidItemStackItemContainer.writeToItemStack(ItemContainer itemContainer, short slot, ItemStack originalItemStack, ItemStack[] items) Writes the provided items array to an item stack in a container only if that item still matches the original item stack.Method parameters in com.hypixel.hytale.server.core.inventory.container with type arguments of type ItemStackModifier and TypeMethodDescriptionFetchedItemContainer.addItemStacks(List<ItemStack> itemStacks) FetchedItemContainer.addItemStacks(List<ItemStack> itemStacks, boolean allOrNothing, boolean fullStacks, boolean filter) ItemContainer.addItemStacks(List<ItemStack> itemStacks) ItemContainer.addItemStacks(List<ItemStack> itemStacks, boolean allOrNothing, boolean fullStacks, boolean filter) FetchedItemContainer.addItemStacksOrdered(short offset, List<ItemStack> itemStacks) FetchedItemContainer.addItemStacksOrdered(short offset, List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) FetchedItemContainer.addItemStacksOrdered(List<ItemStack> itemStacks) FetchedItemContainer.addItemStacksOrdered(List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) ItemContainer.addItemStacksOrdered(short offset, List<ItemStack> itemStacks) ItemContainer.addItemStacksOrdered(short offset, List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) Adds ItemStacks to the item container using one ItemStack per slot.ItemContainer.addItemStacksOrdered(List<ItemStack> itemStacks) ItemContainer.addItemStacksOrdered(List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) static booleanSimpleItemContainer.addOrDropItemStacks(ComponentAccessor<EntityStore> store, Ref<EntityStore> ref, ItemContainer itemContainer, List<ItemStack> itemStacks) booleanFetchedItemContainer.canAddItemStacks(List<ItemStack> itemStacks) booleanFetchedItemContainer.canAddItemStacks(List<ItemStack> itemStacks, boolean fullStacks, boolean filter) booleanItemContainer.canAddItemStacks(List<ItemStack> itemStacks) booleanItemContainer.canAddItemStacks(List<ItemStack> itemStacks, boolean fullStacks, boolean filter) booleanFetchedItemContainer.canRemoveItemStacks(List<ItemStack> itemStacks) booleanFetchedItemContainer.canRemoveItemStacks(List<ItemStack> itemStacks, boolean exactAmount, boolean filter) booleanItemContainer.canRemoveItemStacks(List<ItemStack> itemStacks) booleanItemContainer.canRemoveItemStacks(List<ItemStack> itemStacks, boolean exactAmount, boolean filter) static <T extends ItemContainer>
TItemContainer.copy(ItemContainer from, T to, List<ItemStack> remainder) intFetchedItemContainer.countItemStacks(Predicate<ItemStack> itemPredicate) intItemContainer.countItemStacks(Predicate<ItemStack> itemPredicate) static <T extends ItemContainer>
TItemContainer.ensureContainerCapacity(T inputContainer, short capacity, com.hypixel.fastutil.shorts.Short2ObjectConcurrentHashMap.ShortFunction<T> newContainerSupplier, List<ItemStack> remainder) voidEmptyItemContainer.forEach(ShortObjectConsumer<ItemStack> action) voidFetchedItemContainer.forEach(ShortObjectConsumer<ItemStack> action) voidItemContainer.forEach(ShortObjectConsumer<ItemStack> action) <T> voidFetchedItemContainer.forEachWithMeta(com.hypixel.fastutil.shorts.Short2ObjectConcurrentHashMap.ShortBiObjConsumer<ItemStack, T> consumer, T meta) <T> voidItemContainer.forEachWithMeta(com.hypixel.fastutil.shorts.Short2ObjectConcurrentHashMap.ShortBiObjConsumer<ItemStack, T> consumer, T meta) FetchedItemContainer.moveAllItemStacksTo(Predicate<ItemStack> itemPredicate, ItemContainer... containerTo) ItemContainer.moveAllItemStacksTo(Predicate<ItemStack> itemPredicate, ItemContainer... containerTo) FetchedItemContainer.removeItemStacks(List<ItemStack> itemStacks) FetchedItemContainer.removeItemStacks(List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) ItemContainer.removeItemStacks(List<ItemStack> itemStacks) ItemContainer.removeItemStacks(List<ItemStack> itemStacks, boolean allOrNothing, boolean filter) static booleanSimpleItemContainer.tryAddOrderedOrDropItemStacks(ComponentAccessor<EntityStore> store, Ref<EntityStore> ref, ItemContainer itemContainer, List<ItemStack> itemStacks) Constructors in com.hypixel.hytale.server.core.inventory.container with parameters of type ItemStackModifierConstructorDescriptionTempItemData(ItemStack itemStack, Item item) Creates an instance of aTempItemDatarecord class. -
Uses of ItemStack in com.hypixel.hytale.server.core.inventory.container.filter
Methods in com.hypixel.hytale.server.core.inventory.container.filter with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanAbilityCoreSlotFilter.isEquippedOnAnotherLine(ItemContainer abilitySlots, int coreSlot, ItemStack rune, short lineWidth) Whether a core slot other thancoreSlotalready holds a copy of the given rune.booleanAbilityCoreSlotFilter.test(FilterActionType actionType, ItemContainer container, short slot, ItemStack itemStack) booleanAbilitySupportSlotFilter.test(FilterActionType actionType, ItemContainer container, short slot, ItemStack itemStack) default booleanItemSlotFilter.test(FilterActionType actionType, ItemContainer container, short slot, ItemStack itemStack) booleanSlotFilter.test(FilterActionType actionType, ItemContainer container, short slot, ItemStack itemStack) -
Uses of ItemStack in com.hypixel.hytale.server.core.inventory.transaction
Methods in com.hypixel.hytale.server.core.inventory.transaction that return ItemStackModifier and TypeMethodDescriptionClearTransaction.getItems()SlotTransaction.getOutput()ItemStackSlotTransaction.getQuery()ItemStackTransaction.getQuery()ItemStackSlotTransaction.getRemainder()ItemStackTransaction.getRemainder()SlotTransaction.getSlotAfter()SlotTransaction.getSlotBefore()Constructors in com.hypixel.hytale.server.core.inventory.transaction with parameters of type ItemStackModifierConstructorDescriptionClearTransaction(boolean succeeded, short start, ItemStack[] items) ItemStackSlotTransaction(boolean succeeded, ActionType action, short slot, ItemStack slotBefore, ItemStack slotAfter, ItemStack output, boolean allOrNothing, boolean exactAmount, boolean filter, boolean addToExistingSlot, ItemStack query, ItemStack remainder) ItemStackTransaction(boolean succeeded, ActionType action, ItemStack query, ItemStack remainder, boolean allOrNothing, boolean filter, List<ItemStackSlotTransaction> slotTransactions) ResourceSlotTransaction(boolean succeeded, ActionType action, short slot, ItemStack slotBefore, ItemStack slotAfter, ItemStack output, boolean allOrNothing, boolean exactAmount, boolean filter, ResourceQuantity query, int remainder, int consumed) SlotTransaction(boolean succeeded, ActionType action, short slot, ItemStack slotBefore, ItemStack slotAfter, ItemStack output, boolean allOrNothing, boolean exactAmount, boolean filter) TagSlotTransaction(boolean succeeded, ActionType action, short slot, ItemStack slotBefore, ItemStack slotAfter, ItemStack output, boolean allOrNothing, boolean exactAmount, boolean filter, int query, int remainder) -
Uses of ItemStack in com.hypixel.hytale.server.core.modules.entity.damage
Methods in com.hypixel.hytale.server.core.modules.entity.damage that return ItemStackModifier and TypeMethodDescriptionDeathItemLoss.getItemsLost()DeathComponent.getItemsLostOnDeath()Methods in com.hypixel.hytale.server.core.modules.entity.damage with parameters of type ItemStackModifier and TypeMethodDescriptionstatic Damage[]DamageCalculatorSystems.queueDamageCalculator(World world, it.unimi.dsi.fastutil.objects.Object2FloatMap<DamageCause> relativeDamage, Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer, Damage.Source source, ItemStack itemInHand) Called to queue up damage calculations based on relative damage values.Method parameters in com.hypixel.hytale.server.core.modules.entity.damage with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidDeathComponent.setItemsLostOnDeath(List<ItemStack> itemsLostOnDeath) Constructors in com.hypixel.hytale.server.core.modules.entity.damage with parameters of type ItemStackModifierConstructorDescriptionDeathItemLoss(DeathConfig.ItemsLossMode lossMode, ItemStack[] itemsLost, double amountLossPercentage, double durabilityLossPercentage) -
Uses of ItemStack in com.hypixel.hytale.server.core.modules.entity.item
Methods in com.hypixel.hytale.server.core.modules.entity.item that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackItemComponent.addToItemContainer(Store<EntityStore> store, Ref<EntityStore> itemRef, ItemContainer itemContainer) Called to add the contents of theItemStackof this component to the given containers.ItemComponent.getItemStack()Methods in com.hypixel.hytale.server.core.modules.entity.item that return types with arguments of type ItemStackMethods in com.hypixel.hytale.server.core.modules.entity.item with parameters of type ItemStackModifier and TypeMethodDescriptionstatic Holder<EntityStore> ItemComponent.generateItemDrop(ComponentAccessor<EntityStore> accessor, ItemStack itemStack, org.joml.Vector3d position, Rotation3fc rotation, float velocityX, float velocityY, float velocityZ) Generates a single entity holder for an entity item based on the given item stack to be dropped.static Holder<EntityStore> ItemComponent.generatePickedUpItem(ItemStack itemStack, org.joml.Vector3d position, ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> targetRef) Creates a new pick-up item entity based on the holder of the given item stack.voidItemComponent.setItemStack(ItemStack itemStack) Called to manually set theItemStackassociated with this item component.Method parameters in com.hypixel.hytale.server.core.modules.entity.item with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic Holder<EntityStore>[]ItemComponent.generateItemDrops(ComponentAccessor<EntityStore> accessor, List<ItemStack> itemStacks, org.joml.Vector3d position, Rotation3fc rotation) Called to generate an array of entity item entity holders based on the provided item stacks.static voidDropItemsComponent.queue(Holder<EntityStore> holder, List<ItemStack> itemStacks) Queues item stacks to be dropped by the entity, creating the component if absent.static voidDropItemsComponent.queue(Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer, List<ItemStack> itemStacks) Queues item stacks to be dropped by the entity, creating the component if absent.Constructors in com.hypixel.hytale.server.core.modules.entity.item with parameters of type ItemStackModifierConstructorDescriptionItemComponent(ItemStack itemStack) Constructor for aItemComponentinstance with a default item stack value.ItemComponent(ItemStack itemStack, float mergeDelay, float pickupDelay, float pickupThrottle, boolean removedByPlayerPickup) Constructor for aItemComponentinstance with default parameters.Constructor parameters in com.hypixel.hytale.server.core.modules.entity.item with type arguments of type ItemStackModifierConstructorDescriptionDropItemsComponent(List<ItemStack> items) Constructor for aDropItemsComponentinstance holding the given item stacks. -
Uses of ItemStack in com.hypixel.hytale.server.core.modules.interaction
Methods in com.hypixel.hytale.server.core.modules.interaction that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBuilds the list of item stacks to drop for a broken block.Methods in com.hypixel.hytale.server.core.modules.interaction with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidBlockHarvestUtils.performBlockBreak(Ref<EntityStore> ref, Ref<EntityStore> impactRef, ItemStack heldItemStack, org.joml.Vector3i targetBlock, int setBlockSettings, Ref<ChunkStore> sectionReference, ComponentAccessor<EntityStore> entityStore, ComponentAccessor<ChunkStore> chunkStore) Breaks the block at the given position and attributes the break separately from the entity that physically reached it.static intBlockHarvestUtils.performBlockBreak(Ref<EntityStore> ref, ItemStack heldItemStack, List<org.joml.Vector3i> targetBlocks, int setBlockSettings, ComponentAccessor<EntityStore> entityStore, ComponentAccessor<ChunkStore> chunkStore) Breaks a collection of blocks (which may span multiple chunks) using a single item, for example a creative-mode shaped break.static voidBlockHarvestUtils.performBlockBreak(Ref<EntityStore> ref, ItemStack heldItemStack, org.joml.Vector3i targetBlock, int setBlockSettings, Ref<ChunkStore> sectionReference, ComponentAccessor<EntityStore> entityStore, ComponentAccessor<ChunkStore> chunkStore) Breaks the block at the given position, resolving filler blocks so that breaking any cell of a multi-block structure breaks the whole structure.static voidBlockHarvestUtils.performBlockBreak(Ref<EntityStore> ref, ItemStack heldItemStack, org.joml.Vector3i targetBlock, Ref<ChunkStore> sectionReference, ComponentAccessor<EntityStore> entityStore, ComponentAccessor<ChunkStore> chunkStore) Convenience overload ofBlockHarvestUtils.performBlockBreak(Ref, ItemStack, Vector3i, int, Ref, ComponentAccessor, ComponentAccessor)that breaks the block withSetBlockSettings.NONE.static voidBlockHarvestUtils.performBlockBreak(org.joml.Vector3i blockPosition, BlockType targetBlockTypeKey, ItemStack heldItemStack, int dropQuantity, String dropItemId, String dropListId, int setBlockSettings, Ref<EntityStore> ref, Ref<ChunkStore> sectionReference, ComponentAccessor<EntityStore> entityStore, ComponentAccessor<ChunkStore> chunkStore) Convenience overload ofBlockHarvestUtils.performBlockBreak(Vector3i, BlockType, ItemStack, int, String, String, int, Ref, Ref, Ref, ComponentAccessor, ComponentAccessor)for a break where the instigating entity reached the block itself.static voidBlockHarvestUtils.performBlockBreak(org.joml.Vector3i blockPosition, BlockType targetBlockTypeKey, ItemStack heldItemStack, int dropQuantity, String dropItemId, String dropListId, int setBlockSettings, Ref<EntityStore> ref, Ref<EntityStore> impactRef, Ref<ChunkStore> sectionReference, ComponentAccessor<EntityStore> entityStore, ComponentAccessor<ChunkStore> chunkStore) The core block-break implementation: removes the block and spawns its drops, firing a cancellableBreakBlockEventwhen an instigating entity is present.static intBlockHarvestUtils.performBlockDamage(Ref<EntityStore> ref, Ref<EntityStore> impactRef, List<org.joml.Vector3i> targetBlocks, org.joml.Vector3i anchorBlock, ItemStack itemStack, ItemTool tool, String toolId, boolean matchTool, float damageScale, int setBlockSettings, boolean isExplosion, boolean durabilityPerBlock, ComponentAccessor<EntityStore> entityStore, ComponentAccessor<ChunkStore> chunkStore) Applies block damage to a collection of blocks (which may span multiple chunks) using a single item, for example a shaped break.static booleanBlockHarvestUtils.performBlockDamage(Ref<EntityStore> ref, Ref<EntityStore> impactRef, org.joml.Vector3i targetBlockPos, ItemStack itemStack, ItemTool tool, String toolId, boolean matchTool, float damageScale, int setBlockSettings, boolean isExplosion, Ref<ChunkStore> sectionReference, ComponentAccessor<EntityStore> entityStore, ComponentAccessor<ChunkStore> chunkStore) Damages the single block at the given position, breaking it once its health reaches zero.static booleanBlockHarvestUtils.performBlockDamage(org.joml.Vector3i targetBlock, ItemStack itemStack, ItemTool tool, float damageScale, int setBlockSettings, boolean isExplosion, Ref<ChunkStore> sectionReference, ComponentAccessor<EntityStore> componentAccessor, ComponentAccessor<ChunkStore> chunkStore) Convenience overload ofBlockHarvestUtils.performBlockDamage(Ref, Ref, Vector3i, ItemStack, ItemTool, String, boolean, float, int, boolean, Ref, ComponentAccessor, ComponentAccessor)for damage with no instigating entity (for example explosion damage): noref, no tool id and no tool match.static booleanBlockPlaceUtils.placeBlock(Ref<EntityStore> ref, ItemStack itemStack, String blockTypeKey, ItemContainer itemContainer, org.joml.Vector3i placementNormal, org.joml.Vector3i blockPosition, BlockRotation blockRotation, byte activeSlot, boolean removeItemInHand, Ref<ChunkStore> sectionReference, ComponentAccessor<ChunkStore> chunkStore, ComponentAccessor<EntityStore> entityStore, boolean quickReplace, boolean quickRetype, boolean noPhysics) Called to handle a place block request from a specific player instance. -
Uses of ItemStack in com.hypixel.hytale.server.core.modules.interaction.components
Methods in com.hypixel.hytale.server.core.modules.interaction.components that return ItemStackModifier and TypeMethodDescriptionCarriedBlock.toItemStack()Builds the item stack representing this carried block, re-attaching the block entity data underItemStack.Metadata.BLOCK_HOLDER. -
Uses of ItemStack in com.hypixel.hytale.server.core.modules.interaction.interaction.util
Methods in com.hypixel.hytale.server.core.modules.interaction.interaction.util with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanInteractionValidation.canEntityInteractWithBlock(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor, ItemStack heldItem, BlockPosition blockPosition, BlockPosition contactPosition) Validates whether the entity acting on a block is close enough to it.static booleanInteractionValidation.canPlayerInteractWithBlock(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor, ItemStack heldItem, int blockX, int blockY, int blockZ) Validates whether a player entity is within the allowable interaction distance of a target block.static booleanInteractionValidation.canPlayerInteractWithBlock(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor, ItemStack heldItem, BlockPosition blockPosition) static booleanInteractionValidation.canPlayerInteractWithBlock(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor, ItemStack heldItem, org.joml.Vector3i blockPosition) static booleanInteractionValidation.canPlayerInteractWithEntity(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor, ItemStack heldItem, Ref<EntityStore> targetRef) Validates whether a player entity is within the allowable interaction distance of a target entity. -
Uses of ItemStack in com.hypixel.hytale.server.core.modules.item
Methods in com.hypixel.hytale.server.core.modules.item that return types with arguments of type ItemStack -
Uses of ItemStack in com.hypixel.hytale.server.core.ui
Methods in com.hypixel.hytale.server.core.ui with parameters of type ItemStackConstructors in com.hypixel.hytale.server.core.ui with parameters of type ItemStack -
Uses of ItemStack in com.hypixel.hytale.server.npc.blackboard.view.attitude
Methods in com.hypixel.hytale.server.npc.blackboard.view.attitude with parameters of type ItemStack -
Uses of ItemStack in com.hypixel.hytale.server.npc.role.support
Methods in com.hypixel.hytale.server.npc.role.support with parameters of type ItemStack -
Uses of ItemStack in com.hypixel.hytale.server.npc.util
Methods in com.hypixel.hytale.server.npc.util that return ItemStackMethods in com.hypixel.hytale.server.npc.util with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanInventoryHelper.matchesItem(String pattern, ItemStack itemStack) static booleanInventoryHelper.matchesItem(List<String> patterns, ItemStack itemStack) static booleanInventoryHelper.useArmor(ItemContainer armorInventory, ItemStack itemStack)
ItemUtils.updateItemStackDurability(Ref, ItemStack, ItemContainer, int, double, ComponentAccessor)equivalent instead.