net.minecraft.server.integrated

public class IntegratedServer

extends MinecraftServer

All mapped superinterfaces:

TaskExecutor, SampleableExecutor, CommandOutput, QueryableServer, ChunkErrorHandler

net.minecraft.client.server.IntegratedServer
net.minecraft.class_1132
net.minecraft.server.integrated.IntegratedServer

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_5520
LOGGER
private static final int
MIN_SIM_DISTANCE
field_34964
MIN_VIEW_DISTANCE
public static final int
MAX_PLAYERS
field_62489
MAX_PLAYER_COUNT
private final MinecraftClient
minecraft
field_5518
client
private boolean
paused
field_5524
paused
private int
publishedPort
field_5522
lanPort
private GameMode
gameTypeForOtherPlayers
field_1_7145
gameMode
private Boolean
commandsAllowedForOtherPlayers
field_1_7144
allowCommands
private LanServerPinger
lanPinger
field_5519
lanPinger
private UUID
uuid
field_5521
localPlayerUuid
private int
previousSimulationDistance
field_34965
simulationDistance
private volatile List<GizmoCollectorImpl$Entry>
latestTicksGizmos
field_63623
gizmoEntries
private final GizmoCollectorImpl
gizmoCollector
field_63624
gizmoCollector
private MinecraftServer$ShareSetting
multiplayerScope
field_1_6415
shareSetting

Constructor summary

ModifierConstructor
public (Thread serverThread, MinecraftClient client, LevelStorage$Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, Optional<GameRules> gameRules, ApiServices apiServices, ChunkLoadProgress chunkLoadProgress)

Method summary

Modifier and TypeMethod
protected boolean
initServer()
method_3823()
setupServer()
public boolean
isPaused()
method_54809()
isPaused()
protected void
processPacketsAndTick(boolean sprinting)
method_76677(boolean arg0)
processPacketsAndTick(boolean arg0)
protected void
tickServer(BooleanSupplier haveTime)
method_3748(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
protected MultiValueDebugSampleLogImpl
getTickTimeLogger()
method_56593()
getDebugSampleLog()
public boolean
isTickTimeLoggingEnabled()
method_56626()
shouldPushTickTimeLog()
private void
tickPaused()
method_36439()
incrementTotalWorldTimeStat()
public boolean
shouldRconBroadcast()
method_3732()
shouldBroadcastRconToOps()
public boolean
shouldInformAdmins()
method_9201()
shouldBroadcastConsoleToOps()
public Path
getServerDirectory()
method_3831()
getRunDirectory()
public boolean
isDedicatedServer()
method_3816()
isDedicated()
public int
getRateLimitPacketsPerSecond()
method_30612()
getRateLimit()
public int
getCommandSpamThresholdSeconds()
method_1_6280()
getCommandSpamThreshold()
public int
getChatSpamThresholdSeconds()
method_1_6279()
getChatSpamThreshold()
public boolean
useNativeTransport()
method_3759()
isUsingNativeTransport()
protected void
onServerCrash(CrashReport report)
method_3744(class_128 arg0)
handleCrashReport(CrashReport arg0)
public SystemDetails
fillServerSystemReport(SystemReport systemReport)
method_3859(class_6396 arg0)
addExtraSystemDetails(SystemDetails arg0)
public ModStatus
getModdedStatus()
method_24307()
getModStatus()
public boolean
publishServer(MinecraftServer$MultiplayerScope scope, GameType gameMode, boolean allowCommands, int port)
method_3763(MinecraftServer$class_1_908 arg0, class_1934 arg1, boolean arg2, int arg3)
publish(MinecraftServer$ShareSetting arg0, GameMode arg1, boolean arg2, int arg3)
public boolean
publishServer(MinecraftServer$MultiplayerScope scope, int port)
method_1_6385(MinecraftServer$class_1_908 arg0, int arg1)
publish(MinecraftServer$ShareSetting shareSetting, int lanPort)
public void
setWorldGameType(GameType gameMode)
method_1_6389(class_1934 arg0)
setSavedGameMode(GameMode gameMode)
public GameMode
getGameTypeForOtherPlayers()
method_1_6384()
getGameMode()
public void
setGameTypeForOtherPlayers(GameType gameMode)
method_1_6387(class_1934 arg0)
setGameModeTemporarily(GameMode gameMode)
private void
applyGameTypeToPlayers(GameType gameMode, boolean singleplayerOwner)
method_1_6382(class_1934 arg0, boolean arg1)
setPlayerGameModes(GameMode gameMode, boolean host)
public void
setWorldAllowCommands(boolean allowCommands)
method_1_6388(boolean arg0)
setSavedAllowCommands(boolean allowCommands)
public boolean
commandsAllowedForOtherPlayers()
method_1_6383()
areCommandsAllowed()
public void
setCommandsAllowedForOtherPlayers(boolean allowCommands)
method_1_6386(boolean arg0)
setAllowCommandsTemporarily(boolean allowCommands)
private void
updateCommandsAllowedForOtherPlayers()
method_1_6390()
updateCommandsAllowedStatus()
private void
updatePermissionAndChatAbilities(LocalPlayer player)
method_1_6391(class_746 arg0)
setPlayerPermissions(ClientPlayerEntity player)
private void
teardownPublishedState()
method_1_6191()
doUnpublish()
private void
stopLanPinger()
method_1_6190()
shutdownLanPinger()
public boolean
unpublishServer()
method_1_5531()
unpublish()
public void
stopServer()
method_3782()
shutdown()
public void
halt(boolean wait)
method_3747(boolean arg0)
stop(boolean arg0)
public boolean
isPublished()
method_3860()
isRemote()
public int
getPort()
method_3756()
getServerPort()
public LeveledPermissionPredicate
operatorUserPermissions()
method_74994()
getOpPermissionLevel()
public LeveledPermissionPredicate
getFunctionCompilationPermissions()
method_74995()
getFunctionPermissions()
public void
setUUID(UUID uuid)
method_4817(UUID arg0)
setLocalPlayerUuid(UUID localPlayerUuid)
public boolean
isSingleplayerOwner(NameAndId nameAndId)
method_19466(class_11560 arg0)
isHost(PlayerConfigEntry arg0)
public int
getScaledTrackingDistance(int baseRange)
method_27903(int arg0)
adjustTrackingDistance(int arg0)
public boolean
forceSynchronousWrites()
method_27051()
syncChunkWrites()
public GameMode
getForcedGameType()
method_3761()
getForcedGameMode()
protected GlobalPos
selectLevelLoadFocusPos()
method_73041()
getSpawnPos()
public void
sendLowDiskSpaceWarning()
method_57823()
showLowDiskSpaceWarning()
public void
reportChunkLoadFailure(Throwable throwable, RegionStorageInfo storageInfo, ChunkPos pos)
method_57821(Throwable arg0, class_9240 arg1, class_1923 arg2)
onChunkLoadFailure(Throwable arg0, StorageKey arg1, ChunkPos arg2)
public void
reportChunkSaveFailure(Throwable throwable, RegionStorageInfo storageInfo, ChunkPos pos)
method_57822(Throwable arg0, class_9240 arg1, class_1923 arg2)
onChunkSaveFailure(Throwable arg0, StorageKey arg1, ChunkPos arg2)
public int
getMaxPlayers()
method_3802()
getMaxPlayerCount()
public Collection<GizmoCollectorImpl$Entry>
getPerTickGizmos()
method_75491()
getGizmoEntries()
private void
setMultiplayerScope(MinecraftServer$MultiplayerScope multiplayerScope)
method_1_5530(MinecraftServer$class_1_908 arg0)
setShareSetting(MinecraftServer$ShareSetting shareSetting)
public MinecraftServer$ShareSetting
getMultiplayerScope()
method_1_5526()
getShareSetting()
protected DebugSampleLog
getTickTimeLogger()
method_56593()
getDebugSampleLog()
public PermissionPredicate
getFunctionCompilationPermissions()
method_74995()
getFunctionPermissions()
private void
lambda$reportChunkSaveFailure$0(ChunkPos arg0)
method_61079(class_1923 arg0)
method_61079(ChunkPos arg0)
private void
lambda$reportChunkLoadFailure$0(ChunkPos arg0)
method_61080(class_1923 arg0)
method_61080(ChunkPos arg0)
private void
lambda$halt$0()
method_4816()
method_4816()
private Object
lambda$fillServerSystemReport$0()
method_4815()
method_4815()