Class GlobalLootModifiersTest
java.lang.Object
net.minecraftforge.test.BaseTestMod
net.minecraftforge.debug.gameplay.loot.GlobalLootModifiersTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classprivate static classWhen harvesting blocks with bamboo, this modifier is invoked, via the silk_touch_bamboo loot_modifier jsonprivate static classprivate 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) -
Field Summary
FieldsModifier 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 Stringprivate static final RegistryObject<Enchantment>private static final RegistryObject<Block>private static final RegistryObject<Item> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrunData(GatherDataEvent event) static voidtable_name_condition(GameTestHelper helper) static voidtest_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
-