Class LevelTests

java.lang.Object
net.neoforged.neoforge.debug.level.LevelTests

public class LevelTests extends Object
  • Field Details

  • Constructor Details

    • LevelTests

      public LevelTests()
  • Method Details

    • customGameRule

      static void customGameRule(DynamicTest test)
      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 the Edit 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 true or false (Defaulting to true).
      • /gamerule neotests_custom_game_rule:custom_integer_game_rule <some integer>
      • Should be able to be set to any integer value (Defaulting to 1337).