Class LevelSettings

java.lang.Object
net.minecraft.world.level.LevelSettings

public final class LevelSettings extends Object
  • Field Details

    • levelName

      private final String levelName
    • gameType

      private final GameType gameType
    • hardcore

      private final boolean hardcore
    • difficulty

      private final Difficulty difficulty
    • allowCommands

      private final boolean allowCommands
    • gameRules

      private final GameRules gameRules
    • dataPackConfig

      private final DataPackConfig dataPackConfig
    • lifecycle

      private final com.mojang.serialization.Lifecycle lifecycle
  • Constructor Details

  • Method Details

    • parse

      public static LevelSettings parse(com.mojang.serialization.Dynamic<?> p_46925_, DataPackConfig p_46926_)
    • levelName

      public String levelName()
    • gameType

      public GameType gameType()
    • hardcore

      public boolean hardcore()
    • difficulty

      public Difficulty difficulty()
    • allowCommands

      public boolean allowCommands()
    • gameRules

      public GameRules gameRules()
    • getDataPackConfig

      public DataPackConfig getDataPackConfig()
    • withGameType

      public LevelSettings withGameType(GameType p_46923_)
    • withDifficulty

      public LevelSettings withDifficulty(Difficulty p_46919_)
    • withDataPackConfig

      public LevelSettings withDataPackConfig(DataPackConfig p_46921_)
    • copy

      public LevelSettings copy()
    • withLifecycle

      public LevelSettings withLifecycle(com.mojang.serialization.Lifecycle lifecycle)
    • getLifecycle

      public com.mojang.serialization.Lifecycle getLifecycle()