Class RealmsWorldOptions

java.lang.Object
com.mojang.realmsclient.dto.ValueObject
com.mojang.realmsclient.dto.RealmsWorldOptions
All Implemented Interfaces:
ReflectionBasedSerialization

public class RealmsWorldOptions extends ValueObject implements ReflectionBasedSerialization
  • Field Details

    • pvp

      @SerializedName("pvp") public boolean pvp
    • spawnMonsters

      @SerializedName("spawnMonsters") public boolean spawnMonsters
    • spawnProtection

      @SerializedName("spawnProtection") public int spawnProtection
    • commandBlocks

      @SerializedName("commandBlocks") public boolean commandBlocks
    • forceGameMode

      @SerializedName("forceGameMode") public boolean forceGameMode
    • difficulty

      @SerializedName("difficulty") public int difficulty
    • gameMode

      @SerializedName("gameMode") public int gameMode
    • slotName

      @SerializedName("slotName") private String slotName
    • version

      @SerializedName("version") public String version
    • compatibility

      @SerializedName("compatibility") public RealmsServer.Compatibility compatibility
    • templateId

      @SerializedName("worldTemplateId") public long templateId
    • templateImage

      @Nullable @SerializedName("worldTemplateImage") public String templateImage
    • empty

      public boolean empty
  • Constructor Details

    • RealmsWorldOptions

      private RealmsWorldOptions()
    • RealmsWorldOptions

      public RealmsWorldOptions(boolean pPvp, boolean pSpawnMonsters, int pSpawnProtection, boolean pCommandBlocks, int pDifficulty, int pGameMode, boolean pForceGameMode, String pSlotName, String pVersion, RealmsServer.Compatibility pCompatibility)
  • Method Details