类 LevelTests
java.lang.Object
net.neoforged.neoforge.debug.level.LevelTests
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) static void
customGameRule
(DynamicTest test) Simple test to ensure custom game rules can be registered correctly and used in game.
-
字段详细资料
-
GROUP
- 另请参阅:
-
-
构造器详细资料
-
LevelTests
public LevelTests()
-
-
方法详细资料
-
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
). -
-