Uses of Interface
net.minecraft.world.item.ItemInstance
Packages that use ItemInstance
Package
Description
-
Uses of ItemInstance in net.minecraft.advancements.predicates
Classes in net.minecraft.advancements.predicates that implement interfaces with type arguments of type ItemInstanceMethods in net.minecraft.advancements.predicates with parameters of type ItemInstance -
Uses of ItemInstance in net.minecraft.advancements.triggers
Methods in net.minecraft.advancements.triggers with parameters of type ItemInstanceModifier and TypeMethodDescriptionvoidAnyBlockInteractionTrigger.trigger(ServerPlayer player, BlockPos pos, ItemInstance tool) voidItemUsedOnLocationTrigger.trigger(ServerPlayer player, BlockPos pos, ItemInstance tool) -
Uses of ItemInstance in net.minecraft.client.gui.screens.inventory.tooltip
Method parameters in net.minecraft.client.gui.screens.inventory.tooltip with type arguments of type ItemInstanceModifier and TypeMethodDescriptionprivate static booleanClientBundleTooltip.shouldRenderItemSlot(List<? extends ItemInstance> shownItems, int slotNumber) -
Uses of ItemInstance in net.minecraft.client.renderer.blockentity
Method parameters in net.minecraft.client.renderer.blockentity with type arguments of type ItemInstanceModifier and TypeMethodDescriptionprivate DecoratedPotRenderer.SideSpriteDecoratedPotRenderer.getSideSprite(Optional<? extends ItemInstance> item) -
Uses of ItemInstance in net.minecraft.core.component.predicates
Fields in net.minecraft.core.component.predicates with type parameters of type ItemInstanceModifier and TypeFieldDescriptionprivate final Optional<CollectionPredicate<ItemInstance, ItemPredicate>> BundlePredicate.itemsThe field for theitemsrecord component.private final Optional<CollectionPredicate<ItemInstance, ItemPredicate>> ContainerPredicate.itemsThe field for theitemsrecord component.Methods in net.minecraft.core.component.predicates that return types with arguments of type ItemInstanceModifier and TypeMethodDescriptionBundlePredicate.items()Returns the value of theitemsrecord component.ContainerPredicate.items()Returns the value of theitemsrecord component.Constructor parameters in net.minecraft.core.component.predicates with type arguments of type ItemInstanceModifierConstructorDescriptionCreates an instance of aBundlePredicaterecord class.Creates an instance of aContainerPredicaterecord class. -
Uses of ItemInstance in net.minecraft.data.recipes
Methods in net.minecraft.data.recipes with parameters of type ItemInstanceModifier and TypeMethodDescriptionstatic ResourceKey<Recipe<?>> RecipeBuilder.getDefaultRecipeId(ItemInstance result) -
Uses of ItemInstance in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type ItemInstanceModifier and TypeMethodDescriptionprivate static intLootCommand.dropBlockLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, BlockPos pos, ItemInstance tool, LootCommand.DropConsumer output) private static intLootCommand.dropFishingLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, BlockPos pos, ItemInstance tool, LootCommand.DropConsumer output) -
Uses of ItemInstance in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type ItemInstanceModifier and TypeMethodDescriptionbooleanLivingEntity.dropFromEntityInteractLootTable(ServerLevel level, ResourceKey<LootTable> key, @Nullable Entity interactingEntity, ItemInstance tool, BiConsumer<ServerLevel, ItemStack> consumer) protected voidLivingEntity.dropFromShearingLootTable(ServerLevel level, ResourceKey<LootTable> key, ItemInstance tool, BiConsumer<ServerLevel, ItemStack> consumer) -
Uses of ItemInstance in net.minecraft.world.item
Classes in net.minecraft.world.item that implement ItemInstanceMethods in net.minecraft.world.item with parameters of type ItemInstanceModifier and TypeMethodDescriptionbooleanBrushItem.canPerformAction(ItemInstance stack, ItemAbility itemAbility) booleanFireChargeItem.canPerformAction(ItemInstance stack, ItemAbility itemAbility) booleanFishingRodItem.canPerformAction(ItemInstance stack, ItemAbility itemAbility) booleanFlintAndSteelItem.canPerformAction(ItemInstance stack, ItemAbility itemAbility) booleanShearsItem.canPerformAction(ItemInstance stack, ItemAbility itemAbility) booleanSpyglassItem.canPerformAction(ItemInstance stack, ItemAbility itemAbility) booleanTridentItem.canPerformAction(ItemInstance stack, ItemAbility itemAbility) Method parameters in net.minecraft.world.item with type arguments of type ItemInstanceModifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<?> ItemStack.validateContainedItemSizes(Iterable<? extends ItemInstance> items) -
Uses of ItemInstance in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type ItemInstanceModifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<org.apache.commons.lang3.math.Fraction> BundleContents.getWeight(ItemInstance item) Method parameters in net.minecraft.world.item.component with type arguments of type ItemInstanceModifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<org.apache.commons.lang3.math.Fraction> BundleContents.computeContentWeight(List<? extends ItemInstance> items) -
Uses of ItemInstance in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment with parameters of type ItemInstanceModifier and TypeMethodDescriptionstatic intEnchantmentHelper.getItemEnchantmentLevel(Holder<Enchantment> enchantment, ItemInstance piece) Deprecated.static intEnchantmentHelper.getTagEnchantmentLevel(Holder<Enchantment> enchantment, ItemInstance piece) Gets the level of an enchantment from NBT.static LootContextEnchantment.itemContext(ServerLevel serverLevel, int enchantmentLevel, ItemInstance itemStack) voidEnchantment.modifyItemFilteredCount(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> effectType, ServerLevel serverLevel, int enchantmentLevel, ItemInstance itemStack, org.apache.commons.lang3.mutable.MutableFloat value) -
Uses of ItemInstance in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type ItemInstanceModifier and TypeMethodDescriptionstatic booleanBlock.dropFromBlockInteractLootTable(ServerLevel level, ResourceKey<LootTable> key, BlockPos interactedBlockPos, BlockState interactedBlockState, @Nullable BlockEntity interactedBlockEntity, @Nullable ItemInstance tool, @Nullable Entity interactingEntity, BiConsumer<ServerLevel, ItemStack> consumer) Block.getDrops(BlockState state, ServerLevel level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemInstance tool) -
Uses of ItemInstance in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity with parameters of type ItemInstanceModifier and TypeMethodDescriptionprivate voidBrushableBlockEntity.unpackLootTable(ServerLevel level, LivingEntity user, ItemInstance brush) -
Uses of ItemInstance in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault with parameters of type ItemInstanceModifier and TypeMethodDescriptionVaultBlockEntity.Server.resolveItemsToEject(ServerLevel serverLevel, VaultConfig config, BlockPos pos, Player player, ItemInstance insertedStack) -
Uses of ItemInstance in net.minecraft.world.level.storage.loot
Classes in net.minecraft.world.level.storage.loot that implement interfaces with type arguments of type ItemInstanceFields in net.minecraft.world.level.storage.loot with type parameters of type ItemInstanceModifier and TypeFieldDescriptionprivate final ContextKey<? extends ItemInstance> LootContext.ItemStackTarget.paramMethods in net.minecraft.world.level.storage.loot that return types with arguments of type ItemInstanceModifier and TypeMethodDescriptionContextKey<? extends ItemInstance> LootContext.ItemStackTarget.contextParam()Method parameters in net.minecraft.world.level.storage.loot with type arguments of type ItemInstanceModifier and TypeMethodDescriptionLootContextArg.ArgCodecBuilder.anyItemStack(Function<? super ContextKey<? extends ItemInstance>, ? extends LootContextArg<R>> function) Constructor parameters in net.minecraft.world.level.storage.loot with type arguments of type ItemInstanceModifierConstructorDescriptionprivateItemStackTarget(String name, ContextKey<? extends ItemInstance> param) -
Uses of ItemInstance in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type ItemInstance -
Uses of ItemInstance in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return ItemInstanceMethods in net.neoforged.neoforge.common.extensions with parameters of type ItemInstanceModifier and TypeMethodDescriptiondefault booleanIItemExtension.canPerformAction(ItemInstance stack, ItemAbility itemAbility) Queries if an item can perform the given action.default @Nullable ItemStackTemplateIItemExtension.getCraftingRemainder(ItemInstance instance) ItemStack sensitive version ofItem.getCraftingRemainder()()}.default intIItemExtension.getEnchantmentLevel(ItemInstance stack, Holder<Enchantment> enchantment) Gets the level of the enchantment currently present on the stack. -
Uses of ItemInstance in net.neoforged.neoforge.common.loot
Fields in net.neoforged.neoforge.common.loot with type parameters of type ItemInstanceModifier and TypeFieldDescriptionstatic final ContextKey<ItemInstance> NeoForgeLootContextParams.QUERIED_STACKHolds the itemstack whose data is being queried with the loot context (i.e. the fuel item in a furnace). -
Uses of ItemInstance in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type ItemInstanceModifier and TypeMethodDescriptionstatic intEventHooks.getBlockLootEnchantmentLevel(ItemInstance tool, Holder<Enchantment> ench, int enchLevel, LootContext ctx) Called fromApplyBonusCountandBonusLevelTableConditionwhen blocks rely on enchantments for evaluating loot bonuses.static intEventHooks.getEnchantmentLevelSpecific(int level, ItemInstance stack, Holder<Enchantment> ench) FiresGetEnchantmentLevelEventand for a single enchantment, returning the (possibly event-modified) level. -
Uses of ItemInstance in net.neoforged.neoforge.event.enchanting
Fields in net.neoforged.neoforge.event.enchanting declared as ItemInstanceModifier and TypeFieldDescriptionprotected final ItemInstanceGetEnchantmentLevelEvent.stackprivate final ItemInstanceEnchantedBlockLootEvent.toolMethods in net.neoforged.neoforge.event.enchanting that return ItemInstanceModifier and TypeMethodDescriptionGetEnchantmentLevelEvent.getStack()Returns the item stack that is being queried against.EnchantedBlockLootEvent.getTool()Returns the tool used to break the block, fromLootContextParams.TOOL.Constructors in net.neoforged.neoforge.event.enchanting with parameters of type ItemInstanceModifierConstructorDescriptionEnchantedBlockLootEvent(ServerLevel level, BlockPos pos, BlockState state, ItemInstance tool, Holder<Enchantment> enchantment, int enchantmentLevel) GetEnchantmentLevelEvent(ItemInstance stack, ItemEnchantments.Mutable enchantments, @Nullable Holder<Enchantment> targetEnchant, HolderLookup.RegistryLookup<Enchantment> lookup)
EnchantmentHelper.getTagEnchantmentLevel(Holder, ItemInstance)for NBT enchantments, orItemInstanceExtension.getEnchantmentLevel(Holder)for gameplay.