Uses of Interface
net.neoforged.neoforge.common.loot.IGlobalLootModifier
Packages that use IGlobalLootModifier
Package
Description
-
Uses of IGlobalLootModifier in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common with type parameters of type IGlobalLootModifierModifier and TypeFieldDescriptionstatic final DeferredHolder<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<AddTableLootModifier>> NeoForgeMod.ADD_TABLE_LOOT_MODIFIER_TYPEStock loot modifier type that adds loot from a subtable to the final loot.private static final DeferredRegister<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>> NeoForgeMod.GLOBAL_LOOT_MODIFIER_SERIALIZERS -
Uses of IGlobalLootModifier in net.neoforged.neoforge.common.data
Fields in net.neoforged.neoforge.common.data with type parameters of type IGlobalLootModifierModifier and TypeFieldDescriptionprivate final Map<String, WithConditions<IGlobalLootModifier>> GlobalLootModifierProvider.toSerializeMethods in net.neoforged.neoforge.common.data with type parameters of type IGlobalLootModifierModifier and TypeMethodDescription<T extends IGlobalLootModifier>
voidGlobalLootModifierProvider.add(String modifier, T instance, List<ICondition> conditions) Passes in the data needed to create the file without any extra objects.<T extends IGlobalLootModifier>
voidGlobalLootModifierProvider.add(String modifier, T instance, ICondition... conditions) Passes in the data needed to create the file without any extra objects. -
Uses of IGlobalLootModifier in net.neoforged.neoforge.common.loot
Classes in net.neoforged.neoforge.common.loot that implement IGlobalLootModifierModifier and TypeClassDescriptionclassLoot modifier that rolls one loot table (the "subtable" and adds the results to the loot being modified (the "target table").classA base implementation of a Global Loot Modifier for modders to extend.Fields in net.neoforged.neoforge.common.loot with type parameters of type IGlobalLootModifierModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Optional<WithConditions<IGlobalLootModifier>>> IGlobalLootModifier.CONDITIONAL_CODECstatic final com.mojang.serialization.Codec<IGlobalLootModifier> IGlobalLootModifier.DIRECT_CODECprivate Map<ResourceLocation, IGlobalLootModifier> LootModifierManager.registeredLootModifiersMethods in net.neoforged.neoforge.common.loot that return types with arguments of type IGlobalLootModifierModifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends IGlobalLootModifier> AddTableLootModifier.codec()com.mojang.serialization.MapCodec<? extends IGlobalLootModifier> IGlobalLootModifier.codec()Returns the registered codec for this modifierLootModifierManager.getAllLootMods()An immutable collection of the registered loot modifiers in layered order. -
Uses of IGlobalLootModifier in net.neoforged.neoforge.debug.loot
Classes in net.neoforged.neoforge.debug.loot that implement IGlobalLootModifierModifier and TypeClassDescriptionprivate static classprivate static classWhen harvesting blocks with bamboo, this modifier is invoked, via the silk_touch_bamboo loot_modifier jsonprivate static classThe smelting enchantment causes this modifier to be invoked, via the smelting loot_modifier jsonprivate static classWhen harvesting wheat with shears, this modifier is invoked via the wheat_harvest loot_modifier json
This modifier checks how many seeds were harvested and turns X seeds into Y wheat (3:1)Fields in net.neoforged.neoforge.debug.loot with type parameters of type IGlobalLootModifierModifier and TypeFieldDescriptionprivate static final DeferredHolder<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.DungeonLootEnhancerModifier>> GlobalLootModifiersTest.DUNGEON_LOOTprivate static final DeferredRegister<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>> GlobalLootModifiersTest.GLMprivate static final DeferredHolder<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SilkTouchTestModifier>> GlobalLootModifiersTest.SILKTOUCHprivate static final DeferredHolder<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SmeltingEnchantmentModifier>> GlobalLootModifiersTest.SMELTINGprivate static final DeferredHolder<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.WheatSeedsConverterModifier>> GlobalLootModifiersTest.WHEATSEEDSMethods in net.neoforged.neoforge.debug.loot that return types with arguments of type IGlobalLootModifierModifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends IGlobalLootModifier> GlobalLootModifiersTest.DungeonLootEnhancerModifier.codec()com.mojang.serialization.MapCodec<? extends IGlobalLootModifier> GlobalLootModifiersTest.SilkTouchTestModifier.codec()com.mojang.serialization.MapCodec<? extends IGlobalLootModifier> GlobalLootModifiersTest.SmeltingEnchantmentModifier.codec()com.mojang.serialization.MapCodec<? extends IGlobalLootModifier> GlobalLootModifiersTest.WheatSeedsConverterModifier.codec() -
Uses of IGlobalLootModifier in net.neoforged.neoforge.registries
Fields in net.neoforged.neoforge.registries with type parameters of type IGlobalLootModifierModifier and TypeFieldDescriptionstatic final Registry<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>> NeoForgeRegistries.GLOBAL_LOOT_MODIFIER_SERIALIZERSstatic final ResourceKey<Registry<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>>> NeoForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS