Uses of Interface
net.minecraft.world.level.ItemLike
Packages that use ItemLike
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Classes for NeoForge's own data generation.
-
Uses of ItemLike in net.minecraft.advancements.predicates
Methods in net.minecraft.advancements.predicates with parameters of type ItemLikeModifier and TypeMethodDescriptionItemPredicate.Builder.of(HolderGetter<Item> lookup, ItemLike... items) -
Uses of ItemLike in net.minecraft.advancements.triggers
Methods in net.minecraft.advancements.triggers with parameters of type ItemLikeModifier and TypeMethodDescriptionShotCrossbowTrigger.TriggerInstance.shotCrossbow(HolderGetter<Item> items, ItemLike itemlike) ConsumeItemTrigger.TriggerInstance.usedItem(HolderGetter<Item> items, ItemLike item) UsedTotemTrigger.TriggerInstance.usedTotem(HolderGetter<Item> items, ItemLike itemlike) -
Uses of ItemLike in net.minecraft.data.loot
Methods in net.minecraft.data.loot with parameters of type ItemLikeModifier and TypeMethodDescriptionprotected <T extends ConditionUserBuilder<T>>
TBlockLootSubProvider.applyExplosionCondition(ItemLike type, ConditionUserBuilder<T> builder) protected <T extends FunctionUserBuilder<T>>
TBlockLootSubProvider.applyExplosionDecay(ItemLike type, FunctionUserBuilder<T> builder) protected LootTable.BuilderBlockLootSubProvider.createMushroomBlockDrop(Block original, ItemLike drop) protected LootTable.BuilderBlockLootSubProvider.createPotFlowerItemTable(ItemLike flower) protected LootTable.BuilderBlockLootSubProvider.createShearsOnlyDrop(ItemLike drop) protected LootTable.BuilderBlockLootSubProvider.createShearsOrSilkTouchOnlyDrop(ItemLike drop) protected LootTable.BuilderBlockLootSubProvider.createSilkTouchOnlyTable(ItemLike drop) BlockLootSubProvider.createSingleItemTable(ItemLike drop) protected LootTable.BuilderBlockLootSubProvider.createSingleItemTable(ItemLike drop, Holder<ContextIntProvider> count) protected LootTable.BuilderBlockLootSubProvider.createSingleItemTableWithSilkTouch(Block original, ItemLike drop) protected LootTable.BuilderBlockLootSubProvider.createSingleItemTableWithSilkTouch(Block original, ItemLike drop, Holder<ContextIntProvider> count) protected void -
Uses of ItemLike in net.minecraft.data.recipes
Methods in net.minecraft.data.recipes with parameters of type ItemLikeModifier and TypeMethodDescriptionprotected voidprotected voidRecipeProvider.bedFromPlanksAndWool(ItemLike result, ItemLike wool) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.blasting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime) private RecipeBuilderRecipeProvider.bricksBuilder(RecipeCategory category, ItemLike result, Ingredient base) protected RecipeBuilderRecipeProvider.buttonBuilder(ItemLike result, Ingredient base) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.campfireCooking(Ingredient ingredient, RecipeCategory craftingCategory, ItemLike result, float experience, int cookingTime) protected voidprotected voidprotected ShapedRecipeBuilderRecipeProvider.carpetBuilder(RecipeCategory category, ItemLike result, Ingredient base) protected voidprotected voidRecipeProvider.chiseled(RecipeCategory category, ItemLike result, ItemLike base) protected ShapedRecipeBuilderRecipeProvider.chiseledBuilder(RecipeCategory category, ItemLike result, Ingredient base) protected voidRecipeProvider.coloredTerracottaFromTerracottaAndDye(ItemLike result, ItemLike dye) protected voidRecipeProvider.concretePowder(ItemLike result, ItemLike dye) protected voidRecipeProvider.copySmithingTemplate(ItemLike smithingTemplate, Ingredient baseMaterials) protected voidRecipeProvider.copySmithingTemplate(ItemLike smithingTemplate, ItemLike baseMaterial) RecipeProvider.FamilyCraftingRecipeProvider.create(RecipeProvider context, ItemLike result, ItemLike base) voidRecipeProvider.FamilyStonecutterRecipeProvider.create(RecipeProvider context, ItemLike result, ItemLike base) protected voidRecipeProvider.cut(RecipeCategory category, ItemLike result, ItemLike base) protected ShapedRecipeBuilderRecipeProvider.cutBuilder(RecipeCategory category, ItemLike result, Ingredient base) protected RecipeBuilderRecipeProvider.doorBuilder(ItemLike result, Ingredient base) protected voidprotected RecipeBuilderRecipeProvider.fenceBuilder(ItemLike result, Ingredient base) protected RecipeBuilderRecipeProvider.fenceGateBuilder(ItemLike result, Ingredient planks) private voidRecipeProvider.generateCraftingRecipe(BlockFamily family, BlockFamily.Variant variant, Block result, ItemLike base) private voidRecipeProvider.generateSmeltingRecipe(BlockFamily.Variant variant, Block result, ItemLike base) static <T extends AbstractCookingRecipe>
SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.generic(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime, AbstractCookingRecipe.Factory<T> factory) protected static StringRecipeProvider.getBlastingRecipeName(ItemLike product) protected static StringRecipeProvider.getConversionRecipeName(ItemLike product, ItemLike material) private StringRecipeProvider.getCraftingCriterionName(BlockFamily family, BlockFamily.Variant variant, ItemLike base) protected static StringRecipeProvider.getHasName(ItemLike baseBlock) protected static StringRecipeProvider.getItemName(ItemLike itemLike) protected static StringRecipeProvider.getSimpleRecipeName(ItemLike itemLike) protected static StringRecipeProvider.getSmeltingRecipeName(ItemLike product) protected RecipeBuilderRecipeProvider.hangingSignBuilder(ItemLike result, Ingredient ingredient) protected voidprotected Criterion<InventoryChangeTrigger.TriggerInstance> RecipeProvider.has(MinMaxBounds.Ints count, ItemLike item) protected Criterion<InventoryChangeTrigger.TriggerInstance> protected voidRecipeProvider.mosaicBuilder(RecipeCategory category, ItemLike result, ItemLike base) protected voidRecipeProvider.nineBlockStorageRecipes(RecipeCategory unpackedFormCategory, ItemLike unpackedForm, RecipeCategory packedFormCategory, ItemLike packedForm) protected voidRecipeProvider.nineBlockStorageRecipes(RecipeCategory unpackedFormCategory, ItemLike unpackedForm, RecipeCategory packedFormCategory, ItemLike packedForm, String packingRecipeId, @Nullable String packingRecipeGroup, String unpackingRecipeId, @Nullable String unpackingRecipeGroup) protected voidRecipeProvider.nineBlockStorageRecipesRecipesWithCustomUnpacking(RecipeCategory unpackedFormCategory, ItemLike unpackedForm, RecipeCategory packedFormCategory, ItemLike packedForm, String unpackingRecipeId, String unpackingRecipeGroup) protected voidRecipeProvider.nineBlockStorageRecipesWithCustomPacking(RecipeCategory unpackedFormCategory, ItemLike unpackedForm, RecipeCategory packedFormCategory, ItemLike packedForm, String packingRecipeId, String packingRecipeGroup) protected voidRecipeProvider.oneToOneConversionRecipe(ItemLike product, ItemLike resource, @Nullable String group) protected voidRecipeProvider.oneToOneConversionRecipe(ItemLike product, ItemLike resource, @Nullable String group, int productCount) protected voidRecipeProvider.oreBlasting(List<ItemLike> smeltables, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime, String group) protected <T extends AbstractCookingRecipe>
voidRecipeProvider.oreCooking(AbstractCookingRecipe.Factory<T> factory, List<ItemLike> smeltables, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime, String group, String fromDesc) protected voidRecipeProvider.oreSmelting(List<ItemLike> smeltables, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime, String group) private RecipeBuilderRecipeProvider.pillarBuilder(RecipeCategory category, ItemLike result, Ingredient base) protected voidRecipeProvider.planksFromLog(ItemLike result, TagKey<Item> logs, int count) protected voidRecipeProvider.planksFromLogs(ItemLike result, TagKey<Item> logs, int count) protected voidRecipeProvider.polished(RecipeCategory category, ItemLike result, ItemLike base) protected RecipeBuilderRecipeProvider.polishedBuilder(RecipeCategory category, ItemLike result, Ingredient base) protected voidRecipeProvider.pressurePlate(ItemLike result, ItemLike base) protected RecipeBuilderRecipeProvider.pressurePlateBuilder(RecipeCategory category, ItemLike result, Ingredient base) protected ShapedRecipeBuilderRecipeProvider.shaped(RecipeCategory category, ItemLike item) protected ShapedRecipeBuilderRecipeProvider.shaped(RecipeCategory category, ItemLike item, int count) static ShapedRecipeBuilderShapedRecipeBuilder.shaped(HolderGetter<Item> items, RecipeCategory category, ItemLike item) static ShapedRecipeBuilderShapedRecipeBuilder.shaped(HolderGetter<Item> items, RecipeCategory category, ItemLike item, int count) protected ShapelessRecipeBuilderRecipeProvider.shapeless(RecipeCategory category, ItemLike item) protected ShapelessRecipeBuilderRecipeProvider.shapeless(RecipeCategory category, ItemLike item, int count) static ShapelessRecipeBuilderShapelessRecipeBuilder.shapeless(HolderGetter<Item> items, RecipeCategory category, ItemLike item) static ShapelessRecipeBuilderShapelessRecipeBuilder.shapeless(HolderGetter<Item> items, RecipeCategory category, ItemLike item, int count) protected voidprotected RecipeBuilderRecipeProvider.signBuilder(ItemLike result, Ingredient planks) protected <T extends AbstractCookingRecipe>
voidRecipeProvider.simpleCookingRecipe(String source, AbstractCookingRecipe.Factory<T> factory, int cookingTime, ItemLike base, ItemLike result, float experience) protected voidRecipeProvider.slab(RecipeCategory category, ItemLike result, ItemLike base) protected RecipeBuilderRecipeProvider.slabBuilder(RecipeCategory category, ItemLike result, Ingredient base) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.smelting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime) protected voidRecipeProvider.smeltingResultFromBase(ItemLike result, ItemLike base) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.smoking(Ingredient ingredient, RecipeCategory craftingCategory, ItemLike result, float experience, int cookingTime) protected voidRecipeProvider.stainedGlassFromGlassAndDye(ItemLike result, ItemLike dye) protected voidRecipeProvider.stainedGlassPaneFromGlassPaneAndDye(ItemLike result, ItemLike dye) protected voidRecipeProvider.stainedGlassPaneFromStainedGlass(ItemLike result, ItemLike stainedGlass) protected RecipeBuilderRecipeProvider.stairBuilder(ItemLike result, Ingredient base) protected voidRecipeProvider.stonecutterResultFromBase(RecipeCategory category, ItemLike result, ItemLike base) protected voidRecipeProvider.stonecutterResultFromBase(RecipeCategory category, ItemLike result, ItemLike base, int count) static SingleItemRecipeBuilderSingleItemRecipeBuilder.stonecutting(Ingredient ingredient, RecipeCategory category, ItemLike result, int count) protected voidRecipeProvider.threeByThreePacker(RecipeCategory category, ItemLike result, ItemLike ingredient) protected voidRecipeProvider.threeByThreePacker(RecipeCategory category, ItemLike result, ItemLike ingredient, String unlockedBy) private RecipeBuilderRecipeProvider.tilesBuilder(RecipeCategory category, ItemLike result, Ingredient base) protected RecipeBuilderRecipeProvider.trapdoorBuilder(ItemLike result, Ingredient base) protected voidRecipeProvider.twoByTwoPacker(RecipeCategory category, ItemLike result, ItemLike ingredient) protected voidRecipeProvider.wall(RecipeCategory category, ItemLike result, ItemLike base) protected RecipeBuilderRecipeProvider.wallBuilder(RecipeCategory category, ItemLike result, Ingredient base) protected voidRecipeProvider.woodenBoat(ItemLike result, ItemLike planks) protected voidRecipeProvider.woodFromLogs(ItemLike result, ItemLike log) Method parameters in net.minecraft.data.recipes with type arguments of type ItemLikeModifier and TypeMethodDescriptionprotected voidRecipeProvider.oreBlasting(List<ItemLike> smeltables, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime, String group) protected <T extends AbstractCookingRecipe>
voidRecipeProvider.oreCooking(AbstractCookingRecipe.Factory<T> factory, List<ItemLike> smeltables, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime, String group, String fromDesc) protected voidRecipeProvider.oreSmelting(List<ItemLike> smeltables, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime, String group) Constructors in net.minecraft.data.recipes with parameters of type ItemLikeModifierConstructorDescriptionprivateShapedRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemLike result, int count) privateSimpleCookingRecipeBuilder(RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, Ingredient ingredient, float experience, int cookingTime, AbstractCookingRecipe.Factory<?> factory) SingleItemRecipeBuilder(RecipeCategory category, SingleItemRecipe.Factory<?> factory, Ingredient ingredient, ItemLike result, int count) -
Uses of ItemLike in net.minecraft.data.recipes.packs
Fields in net.minecraft.data.recipes.packs with type parameters of type ItemLikeModifier and TypeFieldDescriptionstatic final ImmutableList<ItemLike> VanillaRecipeProvider.COAL_SMELTABLESstatic final ImmutableList<ItemLike> VanillaRecipeProvider.COPPER_SMELTABLESstatic final ImmutableList<ItemLike> VanillaRecipeProvider.DIAMOND_SMELTABLESstatic final ImmutableList<ItemLike> VanillaRecipeProvider.EMERALD_SMELTABLESstatic final ImmutableList<ItemLike> VanillaRecipeProvider.GOLD_SMELTABLESstatic final ImmutableList<ItemLike> VanillaRecipeProvider.IRON_SMELTABLESstatic final ImmutableList<ItemLike> VanillaRecipeProvider.LAPIS_SMELTABLESstatic final ImmutableList<ItemLike> VanillaRecipeProvider.REDSTONE_SMELTABLES -
Uses of ItemLike in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type ItemLike -
Uses of ItemLike in net.minecraft.world.item
Classes in net.minecraft.world.item that implement ItemLikeModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFoodOnAStickItem<T extends Entity & ItemSteerable>classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassMethods in net.minecraft.world.item with parameters of type ItemLikeModifier and TypeMethodDescriptiondefault voiddefault voidCreativeModeTab.Output.accept(ItemLike item, CreativeModeTab.TabVisibility tabVisibility) ItemStack.hurtAndConvertOnBreak(int amount, ItemLike newItem, LivingEntity owner, EquipmentSlot slot) ItemStack.transmuteCopy(ItemLike newItem) ItemStack.transmuteCopy(ItemLike newItem, int newCount) private ItemStackItemStack.transmuteCopyIgnoreEmpty(ItemLike newItem, int newCount) Method parameters in net.minecraft.world.item with type arguments of type ItemLikeModifier and TypeMethodDescriptionCreativeModeTab.Builder.displayItems(Collection<? extends Holder<? extends ItemLike>> collection) Helper to set this tabs contents to everything in the supplied Collection of Holders.Constructors in net.minecraft.world.item with parameters of type ItemLike -
Uses of ItemLike in net.minecraft.world.item.crafting
Methods in net.minecraft.world.item.crafting with parameters of type ItemLikeMethod parameters in net.minecraft.world.item.crafting with type arguments of type ItemLike -
Uses of ItemLike in net.minecraft.world.item.trading
Constructors in net.minecraft.world.item.trading with parameters of type ItemLike -
Uses of ItemLike in net.minecraft.world.level.block
Classes in net.minecraft.world.level.block that implement ItemLikeModifier and TypeClassDescriptionclassclassclassclassclassAbstractChestBlock<E extends BlockEntity>classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassMethods in net.minecraft.world.level.block that return ItemLikeModifier and TypeMethodDescriptionprotected ItemLikeBeetrootBlock.getBaseSeedId()protected ItemLikeCarrotBlock.getBaseSeedId()protected ItemLikeCropBlock.getBaseSeedId()protected ItemLikePotatoBlock.getBaseSeedId()protected ItemLikeTorchflowerCropBlock.getBaseSeedId()Methods in net.minecraft.world.level.block with parameters of type ItemLikeModifier and TypeMethodDescriptionstatic voidDispenserBlock.registerBehavior(ItemLike item, DispenseItemBehavior behavior) static voidDispenserBlock.registerProjectileBehavior(ItemLike item) static @Nullable SuspiciousEffectHolder -
Uses of ItemLike in net.minecraft.world.level.block.piston
Classes in net.minecraft.world.level.block.piston that implement ItemLikeModifier and TypeClassDescriptionclassclassclass -
Uses of ItemLike in net.minecraft.world.level.levelgen.flat
Methods in net.minecraft.world.level.levelgen.flat with parameters of type ItemLikeModifier and TypeMethodDescriptionprivate voidFlatLevelGeneratorPresets.Bootstrap.register(ResourceKey<FlatLevelGeneratorPreset> key, ItemLike icon, ResourceKey<Biome> biome, Set<ResourceKey<StructureSet>> structures, boolean decoration, boolean addLakes, FlatLayerInfo... layers) -
Uses of ItemLike in net.minecraft.world.level.storage.loot.entries
Methods in net.minecraft.world.level.storage.loot.entries with parameters of type ItemLikeModifier and TypeMethodDescriptionstatic UniformContainerBase.Builder<?> LootItem.lootTableItem(ItemLike item) -
Uses of ItemLike in net.neoforged.neoforge.capabilities
Methods in net.neoforged.neoforge.capabilities with parameters of type ItemLikeModifier and TypeMethodDescriptionRegisterCapabilitiesEvent.registerItem(ItemCapability<T, C> capability, ICapabilityProvider<ItemStack, C, T> provider, ItemLike... items) Register a capability provider for some items. -
Uses of ItemLike in net.neoforged.neoforge.client.event
Methods in net.neoforged.neoforge.client.event with parameters of type ItemLikeModifier and TypeMethodDescriptionvoidRegisterItemDecorationsEvent.register(ItemLike itemLike, IItemDecorator decorator) Register an ItemDecorator to an Item -
Uses of ItemLike in net.neoforged.neoforge.common.crafting
Methods in net.neoforged.neoforge.common.crafting with parameters of type ItemLikeModifier and TypeMethodDescriptionstatic <T> IngredientDataComponentIngredient.of(boolean exhaustive, Supplier<? extends DataComponentType<? super T>> type, T value, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic IngredientDataComponentIngredient.of(boolean exhaustive, DataComponentMap map, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic IngredientDataComponentIngredient.of(boolean exhaustive, DataComponentPatch predicate, ItemLike... items) Creates a new ingredient matching any item from the list, that contains the components set on the given patch and that does not contain the components removed by the given patch.static <T> IngredientDataComponentIngredient.of(boolean exhaustive, DataComponentType<? super T> type, T value, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic IngredientDataComponentIngredient.of(DataComponentPatch predicate, ItemLike... items) Creates a new ingredient matching any item from the list, that contains the components set on the given patch and that does not contain the components removed by the given patch.static <T> IngredientDataComponentIngredient.of(DataComponentType<? super T> type, T value, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given componentsstatic SizedIngredientHelper method to create a simple sized ingredient that matches a single item. -
Uses of ItemLike in net.neoforged.neoforge.common.data.internal
Methods in net.neoforged.neoforge.common.data.internal with parameters of type ItemLikeModifier and TypeMethodDescriptionprivate voidprivate static booleanNeoForgeAdvancementProvider.predicateMatches(ItemPredicate predicate, ItemLike... targets) private voidprivate static BiFunction<Criterion<?>, BootstrapContextAccess, @Nullable Criterion<?>> NeoForgeAdvancementProvider.replaceInteractCriteria(ItemPredicate replacement, ItemLike... targetItem) private static BiFunction<Criterion<?>, BootstrapContextAccess, @Nullable Criterion<?>> NeoForgeAdvancementProvider.replaceMatchToolCriteria(ItemAbility itemAbility, ItemLike... targetItem) -
Uses of ItemLike in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type ItemLikeModifier and TypeMethodDescriptionvoidModifyDefaultComponentsEvent.modify(ItemLike item, Consumer<DataComponentMap.Builder> patch) Deprecated, for removal: This API element is subject to removal in a future version.voidModifyDefaultComponentsEvent.modify(ItemLike item, ModifyDefaultComponentsEvent.Initializer patch) Patches the default components of the given item. -
Uses of ItemLike in net.neoforged.neoforge.registries
Classes in net.neoforged.neoforge.registries that implement ItemLikeModifier and TypeClassDescriptionclassDeferredBlock<T extends Block>classDeferredItem<T extends Item> -
Uses of ItemLike in net.neoforged.neoforge.transfer.item
Methods in net.neoforged.neoforge.transfer.item with parameters of type ItemLikeModifier and TypeMethodDescriptionbooleanReturns true if the item instance matches the backing instance value.static ItemResourceNote: This cannot be called before your item is registeredstatic ItemResourceItemResource.of(ItemLike item, DataComponentPatch patch) Note: This cannot be called before your item is registered
ModifyDefaultComponentsEvent.modify(ItemLike, Initializer)instead, which provides more contextual information.