Class GlobalLootModifiersTest
java.lang.Object
net.minecraftforge.test.BaseTestMod
net.minecraftforge.debug.gameplay.loot.GlobalLootModifiersTest
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
private static class
private static class
When harvesting blocks with bamboo, this modifier is invoked, via the silk_touch_bamboo loot_modifier jsonprivate static class
private 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 DeferredRegister<Block>
private static final DeferredRegister<Enchantment>
private static final DeferredRegister<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>
private static final DeferredRegister<Item>
static final String
private static final RegistryObject<Enchantment>
private static final RegistryObject<Block>
private static final RegistryObject<Item>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
runData
(GatherDataEvent event) static void
table_name_condition
(GameTestHelper helper) static void
test_smelting_modifier
(GameTestHelper helper) Methods inherited from class net.minecraftforge.test.BaseTestMod
getField, onCreativeModeTabBuildContents, testItem
-
Field Details
-
MODID
- See Also:
-
GLM
private static final DeferredRegister<com.mojang.serialization.Codec<? extends IGlobalLootModifier>> GLM -
ENCHANTS
-
SMELT
-
BLOCKS
-
TEST_BLOCK
-
ITEMS
-
TEST_ITEM
-
-
Constructor Details
-
GlobalLootModifiersTest
public GlobalLootModifiersTest()
-
-
Method Details
-
runData
-
test_smelting_modifier
-
table_name_condition
-