类 IntegratedServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<R>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
net.minecraft.client.server.IntegratedServer
- 所有已实现的接口:
AutoCloseable
,Executor
,CommandSource
,ProfilerMeasured
,ProcessorHandle<TickTask>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.server.MinecraftServer
MinecraftServer.ReloadableResources, MinecraftServer.ServerResourcePackInfo
-
字段概要
字段修饰符和类型字段说明private LanServerPinger
private static final org.slf4j.Logger
private static final int
private final Minecraft
private boolean
private int
private GameType
private int
private UUID
从类继承的字段 net.minecraft.server.MinecraftServer
ABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, MS_PER_TICK, nextTickTime, playerDataStorage, proxy, services, START_CHUNK_RADIUS, storageSource, tickTimes, VANILLA_BRAND, worldData
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器构造器说明IntegratedServer
(Thread pServerThread, Minecraft pMinecraft, LevelStorageSource.LevelStorageAccess pStorageSource, PackRepository pPackRepository, WorldStem pWorldStem, Services pServices, ChunkProgressListenerFactory pProgressListenerFactory) -
方法概要
修饰符和类型方法说明fillServerSystemReport
(SystemReport pReport) boolean
int
int
int
getPort()
int
int
getScaledTrackingDistance
(int pTrackingDistance) void
halt
(boolean pWaitForServer) boolean
boolean
boolean
boolean
boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile pProfile) void
onServerCrash
(CrashReport pReport) boolean
publishServer
(GameType pGameMode, boolean pCheats, int pPort) void
setDefaultGameType
(GameType pGameMode) void
boolean
boolean
void
private void
void
tickServer
(BooleanSupplier pHasTimeLeft) 从类继承的方法 net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, addTickable, areNpcsEnabled, cancelRecordingMetrics, close, configurePackRepository, createCommandSourceStack, createGameModeForPlayer, createLevels, createTextFilterForPlayer, doRunTask, dumpServerProperties, enforceSecureProfile, executeIfPossible, fillSystemReport, finishRecordingMetrics, forceDifficulty, forceTimeSynchronization, forgeGetWorldMap, getAbsoluteMaxWorldSize, getAdvancements, getAllLevels, getAverageTickTime, getChatDecorator, getCommands, getCommandStorage, getCompressionThreshold, getConnection, getCustomBossEvents, getDefaultGameType, getFile, getFixerUpper, getFrameTimer, getFunctions, getGameRules, getKeyPair, getLevel, getLocalIp, getLootData, getMaxChainedNeighborUpdates, getMaxPlayers, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerList, getPlayerNames, getPreventProxyConnections, getProfileCache, getProfileKeySignatureValidator, getProfilePermissions, getProfiler, getProfileRepository, getProxy, getRecipeManager, getResourceManager, getRunningThread, getScoreboard, getServerModName, getServerResourcePack, getServerResources, getServerVersion, getSessionService, getSingleplayerProfile, getSpawnProtectionRadius, getSpawnRadius, getStatus, getStatusJson, getStructureManager, getTickCount, getTickTime, getWorldData, getWorldPath, getWorldScreenshotFile, hasGui, hidesOnlinePlayers, initializeKeyPair, invalidateStatus, isCurrentlySaving, isDemo, isEnforceWhitelist, isFlightAllowed, isHardcore, isNetherEnabled, isPvpAllowed, isReady, isRecordingMetrics, isResourcePackRequired, isRunning, isShutdown, isSingleplayer, isSpawningAnimals, isSpawningMonsters, isStopped, isTimeProfilerRunning, isUnderSpawnProtection, kickUnlistedPlayers, levelKeys, loadLevel, logChatMessage, markWorldsDirty, onServerExit, overworld, pollTask, registries, registryAccess, reloadResources, repliesToStatus, runServer, saveAllChunks, saveEverything, scheduleExecutables, sendSystemMessage, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightAllowed, setId, setLocalIp, setMotd, setPlayerIdleTimeout, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setSingleplayerProfile, setUsesAuthentication, shouldRun, spin, startRecordingMetrics, startTimeProfiler, stopRecordingMetrics, stopTimeProfiler, tickChildren, usesAuthentication, waitUntilNextTick, wrapRunnable
从类继承的方法 net.minecraft.util.thread.ReentrantBlockableEventLoop
runningTask
从类继承的方法 net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, profiledMetrics, runAllTasks, submit, submit, submitAsync, tell, waitForTasks
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
从接口继承的方法 net.minecraft.util.thread.ProcessorHandle
ask, askEither
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MIN_SIM_DISTANCE
private static final int MIN_SIM_DISTANCE- 另请参阅:
-
minecraft
-
paused
private boolean paused -
publishedPort
private int publishedPort -
publishedGameType
-
lanPinger
-
uuid
-
previousSimulationDistance
private int previousSimulationDistance
-
-
构造器详细资料
-
IntegratedServer
public IntegratedServer(Thread pServerThread, Minecraft pMinecraft, LevelStorageSource.LevelStorageAccess pStorageSource, PackRepository pPackRepository, WorldStem pWorldStem, Services pServices, ChunkProgressListenerFactory pProgressListenerFactory)
-
-
方法详细资料
-
initServer
public boolean initServer()- 指定者:
initServer
在类中MinecraftServer
-
tickServer
- 覆盖:
tickServer
在类中MinecraftServer
-
tickPaused
private void tickPaused() -
shouldRconBroadcast
public boolean shouldRconBroadcast()- 指定者:
shouldRconBroadcast
在类中MinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins()- 指定者:
shouldInformAdmins
在接口中CommandSource
- 指定者:
shouldInformAdmins
在类中MinecraftServer
-
getServerDirectory
- 覆盖:
getServerDirectory
在类中MinecraftServer
-
isDedicatedServer
public boolean isDedicatedServer()- 指定者:
isDedicatedServer
在类中MinecraftServer
-
getRateLimitPacketsPerSecond
public int getRateLimitPacketsPerSecond() -
isEpollEnabled
public boolean isEpollEnabled()- 指定者:
isEpollEnabled
在类中MinecraftServer
-
onServerCrash
- 覆盖:
onServerCrash
在类中MinecraftServer
-
fillServerSystemReport
- 指定者:
fillServerSystemReport
在类中MinecraftServer
-
getModdedStatus
- 覆盖:
getModdedStatus
在类中MinecraftServer
-
publishServer
- 覆盖:
publishServer
在类中MinecraftServer
-
stopServer
public void stopServer()- 覆盖:
stopServer
在类中MinecraftServer
-
halt
public void halt(boolean pWaitForServer) - 覆盖:
halt
在类中MinecraftServer
-
isPublished
public boolean isPublished()- 指定者:
isPublished
在类中MinecraftServer
-
getPort
public int getPort()- 覆盖:
getPort
在类中MinecraftServer
-
setDefaultGameType
- 覆盖:
setDefaultGameType
在类中MinecraftServer
-
isCommandBlockEnabled
public boolean isCommandBlockEnabled()- 指定者:
isCommandBlockEnabled
在类中MinecraftServer
-
getOperatorUserPermissionLevel
public int getOperatorUserPermissionLevel() -
getFunctionCompilationLevel
public int getFunctionCompilationLevel() -
setUUID
-
isSingleplayerOwner
public boolean isSingleplayerOwner(com.mojang.authlib.GameProfile pProfile) - 指定者:
isSingleplayerOwner
在类中MinecraftServer
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int pTrackingDistance) -
forceSynchronousWrites
public boolean forceSynchronousWrites() -
getForcedGameType
- 覆盖:
getForcedGameType
在类中MinecraftServer
-