Class GlobalLootModifiersTest
java.lang.Object
net.neoforged.neoforge.debug.loot.GlobalLootModifiersTest
-
Nested Class Summary
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) -
Field Summary
Modifier and TypeFieldDescriptionprivate static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.DungeonLootEnhancerModifier>> private static final DeferredRegister
<Enchantment> private static final DeferredRegister
<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>> static final RegistrationHelper
private static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SilkTouchTestModifier>> private static final DeferredHolder
<Enchantment, Enchantment> private static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SmeltingEnchantmentModifier>> private static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>, com.mojang.serialization.MapCodec<GlobalLootModifiersTest.WheatSeedsConverterModifier>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static void
dungeonLootTest
(DynamicTest test) (package private) static void
init
(TestFramework framework) (package private) static void
(package private) static void
-
Field Details
-
HELPER
-
GLM
private static final DeferredRegister<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>> GLM -
ENCHANTS
-
DUNGEON_LOOT
private static final DeferredHolder<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>,com.mojang.serialization.MapCodec<GlobalLootModifiersTest.DungeonLootEnhancerModifier>> DUNGEON_LOOT -
SMELTING
private static final DeferredHolder<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>,com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SmeltingEnchantmentModifier>> SMELTING -
WHEATSEEDS
private static final DeferredHolder<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>,com.mojang.serialization.MapCodec<GlobalLootModifiersTest.WheatSeedsConverterModifier>> WHEATSEEDS -
SILKTOUCH
private static final DeferredHolder<com.mojang.serialization.MapCodec<? extends IGlobalLootModifier>,com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SilkTouchTestModifier>> SILKTOUCH -
SMELT
-
-
Constructor Details
-
GlobalLootModifiersTest
public GlobalLootModifiersTest()
-
-
Method Details
-
init
-
smeltingModifierTest
-
wheatSeedReplacerTest
-
dungeonLootTest
-