Uses of Interface
net.neoforged.neoforge.common.loot.IGlobalLootModifier
Package
Description
-
Uses of IGlobalLootModifier in net.neoforged.neoforge.common
Modifier 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
Modifier and TypeFieldDescriptionprivate final Map
<String, WithConditions<IGlobalLootModifier>> GlobalLootModifierProvider.toSerialize
Modifier 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
Modifier 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.Modifier 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
Modifier 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
Modifier 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)Modifier 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
Modifier 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
Modifier 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