Package net.minecraftforge.debug
Class CustomGameRuleTest
java.lang.Object
net.minecraftforge.debug.CustomGameRuleTest
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 custom_game_rule_test:custom_boolean_game_rule <true|false>
Should be able to be set to either /gamerule custom_game_rule_test:custom_integer_game_rule <some integer>
Should be able to be set to any integer value (Defaulting to
true
or false
(Defaulting to true
).
1337
).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GameRules.Key<GameRules.BooleanValue>
static final GameRules.Key<GameRules.IntegerValue>
static final String
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TEST_ID
- See Also:
-
CUSTOM_BOOLEAN_GAME_RULE
-
CUSTOM_INTEGER_GAME_RULE
-
-
Constructor Details
-
CustomGameRuleTest
public CustomGameRuleTest()
-