Package | Description |
---|---|
net.tridentsdk.world.settings |
Contains enum types describing the properties of a world
|
Modifier and Type | Method and Description |
---|---|
GameRule.Value |
GameRule.defaultValue()
Obtains the default value of the game rule
|
static GameRule.Value |
GameRule.Value.of(boolean bool)
Creates a new game rule value that takes a boolean parameter
|
static GameRule.Value |
GameRule.Value.of(int integer)
Creates a new game rule value that takes an integer parameter
|
Modifier and Type | Method and Description |
---|---|
Map<GameRule,GameRule.Value> |
WorldCreateOptions.gameRules() |
Modifier and Type | Method and Description |
---|---|
boolean |
WorldCreateOptions.isRule(GameRule rule,
GameRule.Value value)
Checks whether the rule is enabled
|
WorldCreateOptions |
WorldCreateOptions.rule(GameRule rule,
GameRule.Value value)
Sets the game rules of the world to be generated
|
Copyright © 2016. All rights reserved.