com.mojang.realmsclient.dto

public class RealmsWorldOptions

extends ValueObject

fip
com.mojang.realmsclient.dto.RealmsWorldOptions
net.minecraft.class_4883
net.minecraft.client.realms.dto.RealmsWorldOptions
net.minecraft.src.C_3253_

Field summary

Modifier and TypeField
public final boolean
a
pvp
field_22632
pvp
f_87598_
public final boolean
b
spawnMonsters
field_22634
spawnMonsters
f_87600_
public final int
c
spawnProtection
field_22636
spawnProtection
f_87602_
public final boolean
d
commandBlocks
field_22637
commandBlocks
f_87603_
public final boolean
e
forceGameMode
field_22638
forceGameMode
f_87604_
public final int
f
difficulty
field_22639
difficulty
f_87605_
public final int
g
gameMode
field_22640
gameMode
f_87606_
public final boolean
h
hardcore
field_54384
hardcore
f_347204_
private final String
n
slotName
field_22641
slotName
f_87607_
public final String
i
version
field_46843
version
f_303798_
public final RealmsServer$Compatibility
j
compatibility
field_46844
compatibility
f_302886_
public long
k
templateId
field_22642
templateId
f_87608_
public String
l
templateImage
field_22643
templateImage
f_87609_
public boolean
m
empty
field_22645
empty
f_87611_
private static final boolean
o
DEFAULT_FORCE_GAME_MODE
field_32100
field_32100
f_167290_
private static final boolean
p
DEFAULT_PVP
field_32101
field_32101
f_167291_
private static final boolean
q
DEFAULT_SPAWN_MONSTERS
field_32103
field_32103
f_167293_
private static final int
r
DEFAULT_SPAWN_PROTECTION
field_32105
field_32105
f_167295_
private static final boolean
s
DEFAULT_COMMAND_BLOCKS
field_32106
field_32106
f_167296_
private static final int
t
DEFAULT_DIFFICULTY
field_32107
DEFAULT_DIFFICULTY
f_167297_
private static final int
u
DEFAULT_GAME_MODE
field_32108
field_32108
f_167298_
private static final boolean
v
DEFAULT_HARDCORE_MODE
field_54385
field_54385
f_346221_
private static final String
w
DEFAULT_SLOT_NAME
field_32109
DEFAULT_SLOT_NAME
f_167299_
private static final String
x
DEFAULT_VERSION
field_46845
field_46845
f_302703_
private static final RealmsServer$Compatibility
y
DEFAULT_COMPATIBILITY
field_46842
DEFAULT_COMPATIBILITY
f_302303_
private static final long
z
DEFAULT_TEMPLATE_ID
field_32110
DEFAULT_WORLD_TEMPLATE_ID
f_167300_
private static final String
A
DEFAULT_TEMPLATE_IMAGE
field_22646
DEFAULT_WORLD_TEMPLATE_IMAGE
f_87612_

Constructor summary

ModifierConstructor
public (boolean pvp, boolean spawnAnimals, int spawnProtection, boolean commandBlocks, int difficulty, int gameMode, boolean hardcore, boolean forceGameMode, String slotName, String version, RealmsServer$Compatibility compatibility)

Method summary

Modifier and TypeMethod
public static RealmsWorldOptions
a()
createDefaults()
method_25076()
getDefaults()
m_87625_()
public static RealmsWorldOptions
a(dhf arg0, btg arg1, boolean arg2, String arg3, String arg4)
createDefaultsWith(GameType arg0, Difficulty arg1, boolean arg2, String arg3, String arg4)
method_64352(class_1934 arg0, class_1267 arg1, boolean arg2, String arg3, String arg4)
create(GameMode gameMode, Difficulty difficulty, boolean hardcore, String version, String slotName)
m_356594_(C_1593_ p_364043_, C_468_ p_366299_, boolean p_368672_, String p_361621_, String p_365919_)
public static RealmsWorldOptions
a(dhm arg0, String arg1)
createFromSettings(LevelSettings arg0, String arg1)
method_64353(class_1940 arg0, String arg1)
create(LevelInfo levelInfo, String version)
m_352934_(C_1602_ p_361674_, String p_370223_)
public static RealmsWorldOptions
b()
createEmptyDefaults()
method_25080()
getEmptyDefaults()
m_87632_()
public void
a(boolean arg0)
setEmpty(boolean arg0)
method_25079(boolean arg0)
setEmpty(boolean empty)
m_87630_(boolean arg0)
public static RealmsWorldOptions
a(com.google.gson.JsonObject arg0, fin arg1)
parse(com.google.gson.JsonObject arg0, RealmsSettings arg1)
method_25078(com.google.gson.JsonObject arg0, class_10327 arg1)
parse(com.google.gson.JsonObject json, RealmsWorldSettings settings)
m_87628_(com.google.gson.JsonObject p_87629_, C_346026_ p_363227_)
public String
a(int arg0)
getSlotName(int arg0)
method_25077(int arg0)
getSlotName(int index)
m_87626_(int arg0)
public String
b(int arg0)
getDefaultSlotName(int arg0)
method_25081(int arg0)
getDefaultSlotName(int index)
m_87633_(int arg0)
public String
c()
toJson()
method_25082()
toJson()
m_87635_()
public RealmsWorldOptions
d()
clone()
method_25083()
clone()
clone()