Class RealmsWorldOptions

java.lang.Object
com.mojang.realmsclient.dto.ValueObject
com.mojang.realmsclient.dto.RealmsWorldOptions

public class RealmsWorldOptions extends ValueObject
  • Field Details

    • pvp

      public final boolean pvp
    • spawnAnimals

      public final boolean spawnAnimals
    • spawnMonsters

      public final boolean spawnMonsters
    • spawnNPCs

      public final boolean spawnNPCs
    • spawnProtection

      public final int spawnProtection
    • commandBlocks

      public final boolean commandBlocks
    • forceGameMode

      public final boolean forceGameMode
    • difficulty

      public final int difficulty
    • gameMode

      public final int gameMode
    • slotName

      @Nullable private final String slotName
    • templateId

      public long templateId
    • templateImage

      @Nullable public String templateImage
    • empty

      public boolean empty
    • DEFAULT_FORCE_GAME_MODE

      private static final boolean DEFAULT_FORCE_GAME_MODE
      See Also:
      Constant Field Values
    • DEFAULT_PVP

      private static final boolean DEFAULT_PVP
      See Also:
      Constant Field Values
    • DEFAULT_SPAWN_ANIMALS

      private static final boolean DEFAULT_SPAWN_ANIMALS
      See Also:
      Constant Field Values
    • DEFAULT_SPAWN_MONSTERS

      private static final boolean DEFAULT_SPAWN_MONSTERS
      See Also:
      Constant Field Values
    • DEFAULT_SPAWN_NPCS

      private static final boolean DEFAULT_SPAWN_NPCS
      See Also:
      Constant Field Values
    • DEFAULT_SPAWN_PROTECTION

      private static final int DEFAULT_SPAWN_PROTECTION
      See Also:
      Constant Field Values
    • DEFAULT_COMMAND_BLOCKS

      private static final boolean DEFAULT_COMMAND_BLOCKS
      See Also:
      Constant Field Values
    • DEFAULT_DIFFICULTY

      private static final int DEFAULT_DIFFICULTY
      See Also:
      Constant Field Values
    • DEFAULT_GAME_MODE

      private static final int DEFAULT_GAME_MODE
      See Also:
      Constant Field Values
    • DEFAULT_SLOT_NAME

      private static final String DEFAULT_SLOT_NAME
      See Also:
      Constant Field Values
    • DEFAULT_TEMPLATE_ID

      private static final long DEFAULT_TEMPLATE_ID
      See Also:
      Constant Field Values
    • DEFAULT_TEMPLATE_IMAGE

      private static final String DEFAULT_TEMPLATE_IMAGE
  • Constructor Details

    • RealmsWorldOptions

      public RealmsWorldOptions(boolean p_167302_, boolean p_167303_, boolean p_167304_, boolean p_167305_, int p_167306_, boolean p_167307_, int p_167308_, int p_167309_, boolean p_167310_, @Nullable String p_167311_)
  • Method Details

    • createDefaults

      public static RealmsWorldOptions createDefaults()
    • createEmptyDefaults

      public static RealmsWorldOptions createEmptyDefaults()
    • setEmpty

      public void setEmpty(boolean p_87631_)
    • parse

      public static RealmsWorldOptions parse(com.google.gson.JsonObject p_87629_)
    • getSlotName

      public String getSlotName(int p_87627_)
    • getDefaultSlotName

      public String getDefaultSlotName(int p_87634_)
    • toJson

      public String toJson()
    • clone

      public RealmsWorldOptions clone()
      Overrides:
      clone in class Object