Class LevelTests
java.lang.Object
net.neoforged.neoforge.debug.level.LevelTests
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static void
customGameRule
(DynamicTest test) Simple test to ensure custom game rules can be registered correctly and used in game.
-
Field Details
-
GROUP
- See Also:
-
-
Constructor Details
-
LevelTests
public LevelTests()
-
-
Method Details
-
customGameRule
Simple test to ensure custom game rules can be registered correctly and used in game.To test these game rules use the following commands.
If the game rules are registered correctly, they should show up as auto-completion values and be able to be changed to valid values based on their types.
These game rules should also show up and be editable under theEdit Game Rules
screen, when creating a new world.Create new world > More (tab) > Game Rules > Misc
-
/gamerule neotests_custom_game_rule:custom_boolean_game_rule <true|false>
Should be able to be set to either -
/gamerule neotests_custom_game_rule:custom_integer_game_rule <some integer>
Should be able to be set to any integer value (Defaulting to
true
orfalse
(Defaulting totrue
).1337
). -
-