@Environment(value=CLIENT) public class RealmsWorldOptions extends ValueObject
Modifier and Type | Field and Description |
---|---|
boolean |
adventureMap |
Boolean |
commandBlocks |
private static String |
DEFAULT_WORLD_TEMPLATE_IMAGE |
Integer |
difficulty |
boolean |
empty |
Boolean |
forceGameMode |
Integer |
gameMode |
Boolean |
pvp |
String |
slotName |
Boolean |
spawnAnimals |
Boolean |
spawnMonsters |
Boolean |
spawnNPCs |
Integer |
spawnProtection |
long |
templateId |
String |
templateImage |
Constructor and Description |
---|
RealmsWorldOptions(Boolean pvp,
Boolean spawnAnimals,
Boolean spawnMonsters,
Boolean spawnNPCs,
Integer spawnProtection,
Boolean commandBlocks,
Integer difficulty,
Integer gameMode,
Boolean forceGameMode,
String slotName) |
Modifier and Type | Method and Description |
---|---|
RealmsWorldOptions |
clone() |
static RealmsWorldOptions |
getDefaults() |
String |
getDefaultSlotName(int index) |
static RealmsWorldOptions |
getEmptyDefaults() |
String |
getSlotName(int index) |
static RealmsWorldOptions |
parse(JsonObject json) |
void |
setEmpty(boolean empty) |
String |
toJson() |
toString
private static final String DEFAULT_WORLD_TEMPLATE_IMAGE
public Boolean pvp
public Boolean spawnAnimals
public Boolean spawnMonsters
public Boolean spawnNPCs
public Integer spawnProtection
public Boolean commandBlocks
public Boolean forceGameMode
public Integer difficulty
public Integer gameMode
public String slotName
public long templateId
public String templateImage
public boolean adventureMap
public boolean empty
public static RealmsWorldOptions getDefaults()
public static RealmsWorldOptions getEmptyDefaults()
public void setEmpty(boolean empty)
public static RealmsWorldOptions parse(JsonObject json)
public String getSlotName(int index)
public String getDefaultSlotName(int index)
public String toJson()
public RealmsWorldOptions clone()