public enum GameRule extends Enum<GameRule>
| Modifier and Type | Method and Description |
|---|---|
Object |
convertValue(String value)
Convert a string to an object of the correct type for the current gamerule
|
static GameRule |
fromJavaID(String id)
Fetch a game rule by the given Java ID
|
static GameRule |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameRule ANNOUNCEADVANCEMENTS
public static final GameRule COMMANDBLOCKOUTPUT
public static final GameRule DISABLEELYTRAMOVEMENTCHECK
public static final GameRule DISABLERAIDS
public static final GameRule DODAYLIGHTCYCLE
public static final GameRule DOENTITYDROPS
public static final GameRule DOFIRETICK
public static final GameRule DOIMMEDIATERESPAWN
public static final GameRule DOINSOMNIA
public static final GameRule DOLIMITEDCRAFTING
public static final GameRule DOMOBLOOT
public static final GameRule DOMOBSPAWNING
public static final GameRule DOPATROLSPAWNING
public static final GameRule DOTILEDROPS
public static final GameRule DOTRADERSPAWNING
public static final GameRule DOWEATHERCYCLE
public static final GameRule DROWNINGDAMAGE
public static final GameRule FALLDAMAGE
public static final GameRule FIREDAMAGE
public static final GameRule FREEZEDAMAGE
public static final GameRule FORGIVEDEADPLAYERS
public static final GameRule KEEPINVENTORY
public static final GameRule LOGADMINCOMMANDS
public static final GameRule MAXCOMMANDCHAINLENGTH
public static final GameRule MAXENTITYCRAMMING
public static final GameRule MOBGRIEFING
public static final GameRule NATURALREGENERATION
public static final GameRule PLAYERSSLEEPINGPERCENTAGE
public static final GameRule RANDOMTICKSPEED
public static final GameRule REDUCEDDEBUGINFO
public static final GameRule SENDCOMMANDFEEDBACK
public static final GameRule SHOWDEATHMESSAGES
public static final GameRule SPAWNRADIUS
public static final GameRule SPECTATORSGENERATECHUNKS
public static final GameRule UNIVERSALANGER
public static final GameRule UNKNOWN
public static final GameRule[] VALUES
public static GameRule[] values()
for (GameRule c : GameRule.values()) System.out.println(c);
public static GameRule valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Object convertValue(String value)
value - The string value to convertCopyright © 2021 GeyserMC. All rights reserved.