| Package | Description |
|---|---|
| org.geysermc.connector.network.translators.world | |
| org.geysermc.connector.utils |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
GeyserWorldManager.getGameRuleBool(GeyserSession session,
GameRule gameRule) |
abstract Boolean |
WorldManager.getGameRuleBool(GeyserSession session,
GameRule gameRule)
Gets a gamerule value as a boolean
|
int |
GeyserWorldManager.getGameRuleInt(GeyserSession session,
GameRule gameRule) |
abstract int |
WorldManager.getGameRuleInt(GeyserSession session,
GameRule gameRule)
Get a gamerule value as an integer
|
| Modifier and Type | Field and Description |
|---|---|
static GameRule[] |
GameRule.VALUES |
| Modifier and Type | Method and Description |
|---|---|
static GameRule |
GameRule.fromJavaID(String id)
Fetch a game rule by the given Java ID
|
static GameRule |
GameRule.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameRule[] |
GameRule.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2021 GeyserMC. All rights reserved.