Package net.minecraft.server.dedicated
Class DedicatedServerProperties
java.lang.Object
net.minecraft.server.dedicated.Settings<DedicatedServerProperties>
net.minecraft.server.dedicated.DedicatedServerProperties
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record
Nested classes/interfaces inherited from class net.minecraft.server.dedicated.Settings
Settings.MutableValue<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
final boolean
final boolean
final Boolean
final boolean
final boolean
final String
private static final com.google.common.base.Splitter
final Difficulty
final boolean
final boolean
final boolean
final boolean
final boolean
final boolean
final boolean
final int
final boolean
final int
final GameType
final boolean
final boolean
final DataPackConfig
final String
(package private) static final org.slf4j.Logger
final boolean
final int
final int
final long
final int
final String
final int
final boolean
final int
final boolean
final boolean
final int
final int
final String
final int
final String
final String
final int
private static final Pattern
final int
final boolean
final boolean
final boolean
final int
final boolean
final String
final boolean
final int
private final DedicatedServerProperties.WorldDimensionData
final WorldOptions
Fields inherited from class net.minecraft.server.dedicated.Settings
properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDimensions
(RegistryAccess pRegistryAccess) static DedicatedServerProperties
private static DataPackConfig
getDatapackConfig
(String pInitalEnabledPacks, String pInitialDisabledPacks) private static Optional
<MinecraftServer.ServerResourcePackInfo> getServerPackInfo
(String pId, String pUrl, String pSha1, String pHash, boolean pIsRequired, String pPromptJson) private static Component
parseResourcePackPrompt
(String pJson) protected DedicatedServerProperties
reload
(RegistryAccess pRegistryAccess, Properties pProperties) Methods inherited from class net.minecraft.server.dedicated.Settings
cloneProperties, dispatchNumberOrString, get, get, get, get, get, get, get, get, getLegacy, getLegacyBoolean, getLegacyString, getMutable, getMutable, getMutable, getMutable, loadFromFile, store
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
SHA1
-
COMMA_SPLITTER
private static final com.google.common.base.Splitter COMMA_SPLITTER -
onlineMode
public final boolean onlineMode -
preventProxyConnections
public final boolean preventProxyConnections -
serverIp
-
spawnAnimals
public final boolean spawnAnimals -
spawnNpcs
public final boolean spawnNpcs -
pvp
public final boolean pvp -
allowFlight
public final boolean allowFlight -
motd
-
bugReportLink
-
forceGameMode
public final boolean forceGameMode -
enforceWhitelist
public final boolean enforceWhitelist -
difficulty
-
gamemode
-
levelName
-
serverPort
public final int serverPort -
announcePlayerAchievements
-
enableQuery
public final boolean enableQuery -
queryPort
public final int queryPort -
enableRcon
public final boolean enableRcon -
rconPort
public final int rconPort -
rconPassword
-
hardcore
public final boolean hardcore -
allowNether
public final boolean allowNether -
spawnMonsters
public final boolean spawnMonsters -
useNativeTransport
public final boolean useNativeTransport -
enableCommandBlock
public final boolean enableCommandBlock -
spawnProtection
public final int spawnProtection -
opPermissionLevel
public final int opPermissionLevel -
functionPermissionLevel
public final int functionPermissionLevel -
maxTickTime
public final long maxTickTime -
maxChainedNeighborUpdates
public final int maxChainedNeighborUpdates -
rateLimitPacketsPerSecond
public final int rateLimitPacketsPerSecond -
viewDistance
public final int viewDistance -
simulationDistance
public final int simulationDistance -
maxPlayers
public final int maxPlayers -
networkCompressionThreshold
public final int networkCompressionThreshold -
broadcastRconToOps
public final boolean broadcastRconToOps -
broadcastConsoleToOps
public final boolean broadcastConsoleToOps -
maxWorldSize
public final int maxWorldSize -
syncChunkWrites
public final boolean syncChunkWrites -
regionFileComression
-
enableJmxMonitoring
public final boolean enableJmxMonitoring -
enableStatus
public final boolean enableStatus -
hideOnlinePlayers
public final boolean hideOnlinePlayers -
entityBroadcastRangePercentage
public final int entityBroadcastRangePercentage -
textFilteringConfig
-
serverResourcePackInfo
-
initialDataPackConfiguration
-
playerIdleTimeout
-
whiteList
-
enforceSecureProfile
public final boolean enforceSecureProfile -
logIPs
public final boolean logIPs -
worldDimensionData
-
worldOptions
-
acceptsTransfers
public boolean acceptsTransfers
-
-
Constructor Details
-
DedicatedServerProperties
-
-
Method Details
-
fromFile
-
reload
- Specified by:
reload
in classSettings<DedicatedServerProperties>
-
parseResourcePackPrompt
-
getServerPackInfo
-
getDatapackConfig
private static DataPackConfig getDatapackConfig(String pInitalEnabledPacks, String pInitialDisabledPacks) -
createDimensions
-