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

      private final String slotName
    • version

      public final String version
    • compatibility

      public final RealmsServer.Compatibility compatibility
    • 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:
    • DEFAULT_PVP

      private static final boolean DEFAULT_PVP
      See Also:
    • DEFAULT_SPAWN_ANIMALS

      private static final boolean DEFAULT_SPAWN_ANIMALS
      See Also:
    • DEFAULT_SPAWN_MONSTERS

      private static final boolean DEFAULT_SPAWN_MONSTERS
      See Also:
    • DEFAULT_SPAWN_NPCS

      private static final boolean DEFAULT_SPAWN_NPCS
      See Also:
    • DEFAULT_SPAWN_PROTECTION

      private static final int DEFAULT_SPAWN_PROTECTION
      See Also:
    • DEFAULT_COMMAND_BLOCKS

      private static final boolean DEFAULT_COMMAND_BLOCKS
      See Also:
    • DEFAULT_DIFFICULTY

      private static final int DEFAULT_DIFFICULTY
      See Also:
    • DEFAULT_GAME_MODE

      private static final int DEFAULT_GAME_MODE
      See Also:
    • DEFAULT_SLOT_NAME

      private static final String DEFAULT_SLOT_NAME
      See Also:
    • DEFAULT_VERSION

      private static final String DEFAULT_VERSION
      See Also:
    • DEFAULT_COMPATIBILITY

      private static final RealmsServer.Compatibility DEFAULT_COMPATIBILITY
    • DEFAULT_TEMPLATE_ID

      private static final long DEFAULT_TEMPLATE_ID
      See Also:
    • 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_, String p_167311_, String p_311180_, RealmsServer.Compatibility p_311981_)
  • 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