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_TYPE
Stock 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.toSerialize
Methods 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 TypeClassDescriptionclass
Loot modifier that rolls one loot table (the "subtable" and adds the results to the loot being modified (the "target table").class
A 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_CODEC
static final com.mojang.serialization.Codec
<IGlobalLootModifier> IGlobalLootModifier.DIRECT_CODEC
private Map
<ResourceLocation, IGlobalLootModifier> LootModifierManager.registeredLootModifiers
Methods 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 class
private static class
When harvesting blocks with bamboo, this modifier is invoked, via the silk_touch_bamboo loot_modifier jsonprivate static class
The smelting enchantment causes this modifier to be invoked, via the smelting loot_modifier jsonprivate static class
When 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_LOOT
private static final DeferredRegister
<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>> GlobalLootModifiersTest.GLM
private static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SilkTouchTestModifier>> GlobalLootModifiersTest.SILKTOUCH
private static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SmeltingEnchantmentModifier>> GlobalLootModifiersTest.SMELTING
private static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.WheatSeedsConverterModifier>> GlobalLootModifiersTest.WHEATSEEDS
Methods 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_SERIALIZERS
static final ResourceKey
<Registry<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>>> NeoForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS