类 MinecraftServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<TickTask>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
- 所有已实现的接口:
AutoCloseable
,Executor
,CommandSource
,ServerInfo
,ProfilerMeasured
,TaskScheduler<TickTask>
,ChunkIOErrorReporter
- 直接已知子类:
DedicatedServer
,GameTestServer
,IntegratedServer
public abstract class MinecraftServer
extends ReentrantBlockableEventLoop<TickTask>
implements ServerInfo, ChunkIOErrorReporter, CommandSource
-
嵌套类概要
嵌套类修饰符和类型类说明static final record
static final record
(专用程序包) static class
-
字段概要
字段修饰符和类型字段说明static final int
private long
private boolean
static final com.mojang.authlib.GameProfile
private static final int
private static final float
private String
private CommandStorage
private final ServerConnectionListener
private final CustomBossEvents
private MinecraftServer.TimeProfiler
private boolean
private long
static final LevelSettings
private int
private boolean
private final Executor
private static final AtomicReference
<RuntimeException> private final com.mojang.datafixers.DataFixer
private FuelValues
private final ServerFunctionManager
private static final com.google.gson.Gson
private long
private boolean
private boolean
private boolean
private KeyPair
private long
private long
private long
private final Map
<ResourceKey<Level>, ServerLevel> private String
private static final org.slf4j.Logger
private static final int
private static final int
private boolean
private MetricsRecorder
private static final int
private String
protected long
private boolean
private Consumer
<ProfileResults> private static final long
private static final int
private static final int
private static final long
private final PackRepository
private Map
<ResourceKey<Level>, long[]> protected final PlayerDataStorage
private int
private PlayerList
private int
private final PotionBrewing
private static final long
private boolean
private final ChunkProgressListenerFactory
protected final Proxy
private boolean
private final RandomSource
private final LayeredRegistryAccess
<RegistryLayer> private boolean
private final ServerScoreboard
private String
private final Thread
protected final Services
private com.mojang.authlib.GameProfile
private float
private static final int
private ServerStatus
private static final long
private ServerStatus.Favicon
private boolean
protected final LevelStorageSource.LevelStorageAccess
private final StructureTemplateManager
private final SuppressedExceptionCollector
private long
private static final int
private int
private final com.mojang.jtracy.DiscontinuousFrame
private final ServerTickRateManager
private int
final long[]
static final String
private boolean
private boolean
private ServerLevel[]
private int
private int
protected final WorldData
从类继承的字段 net.minecraft.util.thread.BlockableEventLoop
BLOCK_TIME_NANOS
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器构造器说明MinecraftServer
(Thread p_236723_, LevelStorageSource.LevelStorageAccess p_236724_, PackRepository p_236725_, WorldStem p_236726_, Proxy p_236727_, com.mojang.datafixers.DataFixer p_236728_, Services p_236729_, ChunkProgressListenerFactory p_236730_) -
方法概要
修饰符和类型方法说明boolean
boolean
boolean
void
addTickable
(Runnable p_129947_) private void
autoSave()
private ServerStatus.Players
private ServerStatus
void
void
close()
private int
static WorldDataConfiguration
configurePackRepository
(PackRepository p_248681_, WorldDataConfiguration p_331931_, boolean p_249869_, boolean p_330480_) private static WorldDataConfiguration
configureRepositoryWithSelection
(PackRepository p_331926_, Collection<String> p_333329_, FeatureFlagSet p_331153_, boolean p_334241_) private static CrashReport
constructOrExtractCrashReport
(Throwable p_206569_) createGameModeForPlayer
(ServerPlayer p_177934_) protected void
createLevels
(ChunkProgressListener p_129816_) private ProfilerFiller
createTextFilterForPlayer
(ServerPlayer p_129814_) void
private void
dumpClasspath
(Path p_129992_) private void
dumpGameRules
(Path p_129984_) private void
dumpMiscStats
(Path p_129951_) private void
dumpNativeModules
(Path p_195522_) void
dumpServerProperties
(Path p_177911_) private void
dumpThreads
(Path p_129996_) private static void
enableForcedFeaturePacks
(PackRepository p_335711_, FeatureFlagSet p_335242_) void
boolean
void
executeIfPossible
(Runnable p_202482_) abstract SystemReport
fillServerSystemReport
(SystemReport p_177901_) fillSystemReport
(SystemReport p_177936_) private void
void
protected void
boolean
void
已过时。int
long
int
float
com.mojang.datafixers.DataFixer
abstract int
getLevel
(ResourceKey<Level> p_129881_) int
int
getMotd()
long
abstract int
int
int
String[]
int
getPort()
boolean
int
getProfilePermissions
(com.mojang.authlib.GameProfile p_129945_) com.mojang.authlib.GameProfileRepository
getProxy()
abstract int
int
getScaledTrackingDistance
(int p_129935_) private static DataPackConfig
getSelectedPacks
(PackRepository p_129818_, boolean p_334831_) com.mojang.authlib.minecraft.MinecraftSessionService
com.mojang.authlib.GameProfile
int
int
getSpawnRadius
(ServerLevel p_129804_) int
long[]
getTickTime
(ResourceKey<Level> dim) protected abstract SampleLogger
long[]
private ServerLevel[]
getWorldPath
(LevelResource p_129844_) void
halt
(boolean p_129884_) boolean
hasGui()
private boolean
haveTime()
boolean
protected void
protected abstract boolean
void
abstract boolean
boolean
abstract boolean
boolean
isDemo()
boolean
abstract boolean
boolean
boolean
boolean
isLevelEnabled
(Level p_345327_) boolean
isPaused()
abstract boolean
boolean
boolean
isReady()
boolean
boolean
boolean
boolean
boolean
abstract boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile p_129840_) boolean
boolean
abstract boolean
boolean
boolean
isUnderSpawnProtection
(ServerLevel p_129811_, BlockPos p_129812_, Player p_129813_) void
kickUnlistedPlayers
(CommandSourceStack p_129850_) protected void
private Optional
<ServerStatus.Favicon> void
logChatMessage
(Component p_241503_, ChatType.Bound p_241402_, String p_241481_) private void
boolean
logIPs()
private void
logTickMethodTime
(long p_331549_) void
managedBlock
(BooleanSupplier p_343833_) void
已过时。void
onServerCrash
(CrashReport p_129874_) void
void
final ServerLevel
protected int
boolean
pollTask()
private boolean
private void
prepareLevels
(ChunkProgressListener p_129941_) boolean
publishServer
(GameType p_129833_, boolean p_129834_, int p_129835_) private void
readScoreboard
(DimensionDataStorage p_129842_) reloadResources
(Collection<String> p_129862_) boolean
void
reportChunkLoadFailure
(Throwable p_345315_, RegionStorageInfo p_344502_, ChunkPos p_330022_) void
reportChunkSaveFailure
(Throwable p_343979_, RegionStorageInfo p_345051_, ChunkPos p_333073_) void
reportPacketHandlingException
(Throwable p_366196_, PacketType<?> p_362971_) private void
resetStatusCache
(ServerStatus status) protected void
boolean
saveAllChunks
(boolean p_129886_, boolean p_129887_, boolean p_129888_) private void
saveDebugReport
(Path p_129860_) boolean
saveEverything
(boolean p_195515_, boolean p_195516_, boolean p_195517_) boolean
private void
sendDifficultyUpdate
(ServerPlayer p_129939_) void
sendSystemMessage
(Component p_236736_) void
setDefaultGameType
(GameType p_129832_) void
setDemo
(boolean p_129976_) void
setDifficulty
(Difficulty p_129828_, boolean p_129829_) void
setDifficultyLocked
(boolean p_129959_) void
setEnforceWhitelist
(boolean p_130005_) static void
setFatalException
(RuntimeException p_343685_) void
setFlightAllowed
(boolean p_130000_) protected void
private static void
setInitialSpawn
(ServerLevel p_177897_, ServerLevelData p_177898_, boolean p_177899_, boolean p_177900_) void
setLocalIp
(String p_129914_) void
void
setPlayerIdleTimeout
(int p_129978_) void
setPlayerList
(PlayerList p_129824_) void
setPort
(int p_129802_) void
setPreventProxyConnections
(boolean p_129994_) void
setPvpAllowed
(boolean p_129998_) void
setSingleplayerProfile
(com.mojang.authlib.GameProfile p_236741_) private void
setupDebugLevel
(WorldData p_129848_) void
setUsesAuthentication
(boolean p_129986_) abstract boolean
abstract boolean
protected boolean
static <S extends MinecraftServer>
Sprivate void
void
startRecordingMetrics
(Consumer<ProfileResults> p_177924_, Consumer<Path> p_177925_) void
void
void
private void
storeChunkIoError
(CrashReport p_344874_, ChunkPos p_342523_, RegionStorageInfo p_343084_) void
subscribeToDebugSample
(ServerPlayer p_333749_, RemoteDebugSampleType p_336217_) private void
synchronizeTime
(ServerLevel p_276371_) static boolean
protected void
tickChildren
(BooleanSupplier p_129954_) void
void
tickServer
(BooleanSupplier p_129871_) private void
boolean
void
protected void
wrapRunnable
(Runnable p_129852_) 从类继承的方法 net.minecraft.util.thread.ReentrantBlockableEventLoop
runningTask
从类继承的方法 net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isNonRecoverable, isSameThread, name, profiledMetrics, runAllTasks, schedule, submit, submit, submitAsync
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter
reportMisplacedChunk
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
从接口继承的方法 net.minecraft.util.thread.TaskScheduler
scheduleWithResult
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
VANILLA_BRAND
- 另请参阅:
-
AVERAGE_TICK_TIME_SMOOTHING
private static final float AVERAGE_TICK_TIME_SMOOTHING- 另请参阅:
-
TICK_STATS_SPAN
private static final int TICK_STATS_SPAN- 另请参阅:
-
OVERLOADED_THRESHOLD_NANOS
private static final long OVERLOADED_THRESHOLD_NANOS -
OVERLOADED_TICKS_THRESHOLD
private static final int OVERLOADED_TICKS_THRESHOLD- 另请参阅:
-
OVERLOADED_WARNING_INTERVAL_NANOS
private static final long OVERLOADED_WARNING_INTERVAL_NANOS -
OVERLOADED_TICKS_WARNING_INTERVAL
private static final int OVERLOADED_TICKS_WARNING_INTERVAL- 另请参阅:
-
STATUS_EXPIRE_TIME_NANOS
private static final long STATUS_EXPIRE_TIME_NANOS -
PREPARE_LEVELS_DEFAULT_DELAY_NANOS
private static final long PREPARE_LEVELS_DEFAULT_DELAY_NANOS -
MAX_STATUS_PLAYER_SAMPLE
private static final int MAX_STATUS_PLAYER_SAMPLE- 另请参阅:
-
SPAWN_POSITION_SEARCH_RADIUS
private static final int SPAWN_POSITION_SEARCH_RADIUS- 另请参阅:
-
AUTOSAVE_INTERVAL
private static final int AUTOSAVE_INTERVAL- 另请参阅:
-
MIMINUM_AUTOSAVE_TICKS
private static final int MIMINUM_AUTOSAVE_TICKS- 另请参阅:
-
MAX_TICK_LATENCY
private static final int MAX_TICK_LATENCY- 另请参阅:
-
ABSOLUTE_MAX_WORLD_SIZE
public static final int ABSOLUTE_MAX_WORLD_SIZE- 另请参阅:
-
DEMO_SETTINGS
-
ANONYMOUS_PLAYER_PROFILE
public static final com.mojang.authlib.GameProfile ANONYMOUS_PLAYER_PROFILE -
storageSource
-
playerDataStorage
-
tickables
-
metricsRecorder
-
onMetricsRecordingStopped
-
onMetricsRecordingFinished
-
willStartRecordingMetrics
private boolean willStartRecordingMetrics -
debugCommandProfiler
-
debugCommandProfilerDelayStart
private boolean debugCommandProfilerDelayStart -
connection
-
progressListenerFactory
-
status
-
statusIcon
-
random
-
fixerUpper
private final com.mojang.datafixers.DataFixer fixerUpper -
localIp
-
port
private int port -
registries
-
levels
-
playerList
-
running
private volatile boolean running -
stopped
private boolean stopped -
tickCount
private int tickCount -
ticksUntilAutosave
private int ticksUntilAutosave -
proxy
-
onlineMode
private boolean onlineMode -
preventProxyConnections
private boolean preventProxyConnections -
pvp
private boolean pvp -
allowFlight
private boolean allowFlight -
motd
-
playerIdleTimeout
private int playerIdleTimeout -
tickTimesNanos
public final long[] tickTimesNanos -
aggregatedTickTimesNanos
private long aggregatedTickTimesNanos -
keyPair
-
singleplayerProfile
@Nullable private com.mojang.authlib.GameProfile singleplayerProfile -
isDemo
private boolean isDemo -
isReady
private volatile boolean isReady -
lastOverloadWarningNanos
private long lastOverloadWarningNanos -
services
-
lastServerStatus
private long lastServerStatus -
serverThread
-
lastTickNanos
private long lastTickNanos -
taskExecutionStartNanos
private long taskExecutionStartNanos -
idleTimeNanos
private long idleTimeNanos -
nextTickTimeNanos
protected long nextTickTimeNanos -
waitingForNextTick
private boolean waitingForNextTick -
delayedTasksMaxNextTickTimeNanos
private long delayedTasksMaxNextTickTimeNanos -
mayHaveDelayedTasks
private boolean mayHaveDelayedTasks -
packRepository
-
scoreboard
-
commandStorage
-
customBossEvents
-
functionManager
-
enforceWhitelist
private boolean enforceWhitelist -
smoothedTickTimeMillis
private float smoothedTickTimeMillis -
executor
-
serverId
-
resources
-
structureTemplateManager
-
tickRateManager
-
worldData
-
potionBrewing
-
fuelValues
-
emptyTicks
private int emptyTicks -
isSaving
private volatile boolean isSaving -
fatalException
-
suppressedExceptions
-
tickFrame
private final com.mojang.jtracy.DiscontinuousFrame tickFrame -
GSON
private static final com.google.gson.Gson GSON -
cachedServerStatus
-
perWorldTickTimes
-
worldArrayMarker
private int worldArrayMarker -
worldArrayLast
private int worldArrayLast -
worldArray
-
-
构造器详细资料
-
MinecraftServer
public MinecraftServer(Thread p_236723_, LevelStorageSource.LevelStorageAccess p_236724_, PackRepository p_236725_, WorldStem p_236726_, Proxy p_236727_, com.mojang.datafixers.DataFixer p_236728_, Services p_236729_, ChunkProgressListenerFactory p_236730_)
-
-
方法详细资料
-
spin
-
readScoreboard
-
initServer
- 抛出:
IOException
-
loadLevel
protected void loadLevel() -
forceDifficulty
protected void forceDifficulty() -
createLevels
-
setInitialSpawn
private static void setInitialSpawn(ServerLevel p_177897_, ServerLevelData p_177898_, boolean p_177899_, boolean p_177900_) -
setupDebugLevel
-
prepareLevels
-
getDefaultGameType
-
isHardcore
public boolean isHardcore() -
getOperatorUserPermissionLevel
public abstract int getOperatorUserPermissionLevel() -
getFunctionCompilationLevel
public abstract int getFunctionCompilationLevel() -
shouldRconBroadcast
public abstract boolean shouldRconBroadcast() -
saveAllChunks
public boolean saveAllChunks(boolean p_129886_, boolean p_129887_, boolean p_129888_) -
saveEverything
public boolean saveEverything(boolean p_195515_, boolean p_195516_, boolean p_195517_) -
close
public void close()- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中TaskScheduler<TickTask>
-
stopServer
public void stopServer() -
getLocalIp
-
setLocalIp
-
isRunning
public boolean isRunning() -
halt
public void halt(boolean p_129884_) -
runServer
protected void runServer() -
logFullTickTime
private void logFullTickTime() -
startMeasuringTaskExecutionTime
private void startMeasuringTaskExecutionTime() -
finishMeasuringTaskExecutionTime
private void finishMeasuringTaskExecutionTime() -
constructOrExtractCrashReport
-
haveTime
private boolean haveTime() -
throwIfFatalException
public static boolean throwIfFatalException() -
setFatalException
-
managedBlock
- 覆盖:
managedBlock
在类中BlockableEventLoop<TickTask>
-
waitUntilNextTick
protected void waitUntilNextTick() -
waitForTasks
public void waitForTasks()- 覆盖:
waitForTasks
在类中BlockableEventLoop<TickTask>
-
wrapRunnable
- 指定者:
wrapRunnable
在接口中TaskScheduler<TickTask>
-
shouldRun
- 指定者:
shouldRun
在类中BlockableEventLoop<TickTask>
-
pollTask
public boolean pollTask()- 覆盖:
pollTask
在类中BlockableEventLoop<TickTask>
-
pollTaskInternal
private boolean pollTaskInternal() -
doRunTask
- 覆盖:
doRunTask
在类中ReentrantBlockableEventLoop<TickTask>
-
loadStatusIcon
-
getWorldScreenshotFile
-
getServerDirectory
-
onServerCrash
-
onServerExit
public void onServerExit() -
isPaused
public boolean isPaused() -
tickServer
-
autoSave
private void autoSave() -
logTickMethodTime
private void logTickMethodTime(long p_331549_) -
computeNextAutosaveInterval
private int computeNextAutosaveInterval() -
onTickRateChanged
public void onTickRateChanged() -
getTickTimeLogger
-
isTickTimeLoggingEnabled
public abstract boolean isTickTimeLoggingEnabled() -
buildServerStatus
-
buildPlayerStatus
-
tickChildren
-
tickConnection
public void tickConnection() -
synchronizeTime
-
forceTimeSynchronization
public void forceTimeSynchronization() -
isLevelEnabled
-
addTickable
-
setId
-
isShutdown
public boolean isShutdown() -
getFile
-
overworld
-
getLevel
-
levelKeys
-
getAllLevels
-
getServerVersion
- 指定者:
getServerVersion
在接口中ServerInfo
-
getPlayerCount
public int getPlayerCount()- 指定者:
getPlayerCount
在接口中ServerInfo
-
getMaxPlayers
public int getMaxPlayers()- 指定者:
getMaxPlayers
在接口中ServerInfo
-
getPlayerNames
-
getServerModName
-
fillSystemReport
-
fillServerSystemReport
-
getModdedStatus
-
sendSystemMessage
- 指定者:
sendSystemMessage
在接口中CommandSource
-
getKeyPair
-
getPort
public int getPort() -
setPort
public void setPort(int p_129802_) -
getSingleplayerProfile
@Nullable public com.mojang.authlib.GameProfile getSingleplayerProfile() -
setSingleplayerProfile
public void setSingleplayerProfile(@Nullable com.mojang.authlib.GameProfile p_236741_) -
isSingleplayer
public boolean isSingleplayer() -
initializeKeyPair
protected void initializeKeyPair() -
setDifficulty
-
getScaledTrackingDistance
public int getScaledTrackingDistance(int p_129935_) -
updateMobSpawningFlags
private void updateMobSpawningFlags() -
setDifficultyLocked
public void setDifficultyLocked(boolean p_129959_) -
sendDifficultyUpdate
-
isSpawningMonsters
public boolean isSpawningMonsters() -
isDemo
public boolean isDemo() -
setDemo
public void setDemo(boolean p_129976_) -
getServerResourcePack
-
isResourcePackRequired
public boolean isResourcePackRequired() -
isDedicatedServer
public abstract boolean isDedicatedServer() -
getRateLimitPacketsPerSecond
public abstract int getRateLimitPacketsPerSecond() -
usesAuthentication
public boolean usesAuthentication() -
setUsesAuthentication
public void setUsesAuthentication(boolean p_129986_) -
getPreventProxyConnections
public boolean getPreventProxyConnections() -
setPreventProxyConnections
public void setPreventProxyConnections(boolean p_129994_) -
isEpollEnabled
public abstract boolean isEpollEnabled() -
isPvpAllowed
public boolean isPvpAllowed() -
setPvpAllowed
public void setPvpAllowed(boolean p_129998_) -
isFlightAllowed
public boolean isFlightAllowed() -
setFlightAllowed
public void setFlightAllowed(boolean p_130000_) -
isCommandBlockEnabled
public abstract boolean isCommandBlockEnabled() -
getMotd
- 指定者:
getMotd
在接口中ServerInfo
-
setMotd
-
isStopped
public boolean isStopped() -
getPlayerList
-
setPlayerList
-
isPublished
public abstract boolean isPublished() -
setDefaultGameType
-
getConnection
-
isReady
public boolean isReady() -
hasGui
public boolean hasGui() -
publishServer
-
getTickCount
public int getTickCount() -
getSpawnProtectionRadius
public int getSpawnProtectionRadius() -
isUnderSpawnProtection
-
repliesToStatus
public boolean repliesToStatus() -
hidesOnlinePlayers
public boolean hidesOnlinePlayers() -
getProxy
-
getPlayerIdleTimeout
public int getPlayerIdleTimeout() -
setPlayerIdleTimeout
public void setPlayerIdleTimeout(int p_129978_) -
getSessionService
public com.mojang.authlib.minecraft.MinecraftSessionService getSessionService() -
getProfileKeySignatureValidator
-
getProfileRepository
public com.mojang.authlib.GameProfileRepository getProfileRepository() -
getProfileCache
-
getStatus
-
invalidateStatus
public void invalidateStatus() -
getAbsoluteMaxWorldSize
public int getAbsoluteMaxWorldSize() -
scheduleExecutables
public boolean scheduleExecutables() -
executeIfPossible
- 覆盖:
executeIfPossible
在类中BlockableEventLoop<TickTask>
-
getRunningThread
- 指定者:
getRunningThread
在类中BlockableEventLoop<TickTask>
-
getCompressionThreshold
public int getCompressionThreshold() -
enforceSecureProfile
public boolean enforceSecureProfile() -
getNextTickTime
public long getNextTickTime() -
getFixerUpper
public com.mojang.datafixers.DataFixer getFixerUpper() -
getSpawnRadius
-
getAdvancements
-
getFunctions
-
reloadResources
-
configurePackRepository
public static WorldDataConfiguration configurePackRepository(PackRepository p_248681_, WorldDataConfiguration p_331931_, boolean p_249869_, boolean p_330480_) -
configureRepositoryWithSelection
private static WorldDataConfiguration configureRepositoryWithSelection(PackRepository p_331926_, Collection<String> p_333329_, FeatureFlagSet p_331153_, boolean p_334241_) -
enableForcedFeaturePacks
-
getSelectedPacks
-
kickUnlistedPlayers
-
getPackRepository
-
getCommands
-
createCommandSourceStack
-
acceptsSuccess
public boolean acceptsSuccess()- 指定者:
acceptsSuccess
在接口中CommandSource
-
acceptsFailure
public boolean acceptsFailure()- 指定者:
acceptsFailure
在接口中CommandSource
-
shouldInformAdmins
public abstract boolean shouldInformAdmins()- 指定者:
shouldInformAdmins
在接口中CommandSource
-
getRecipeManager
-
getScoreboard
-
getCommandStorage
-
getGameRules
-
getCustomBossEvents
-
isEnforceWhitelist
public boolean isEnforceWhitelist() -
setEnforceWhitelist
public void setEnforceWhitelist(boolean p_130005_) -
getCurrentSmoothedTickTime
public float getCurrentSmoothedTickTime() -
tickRateManager
-
getAverageTickTimeNanos
public long getAverageTickTimeNanos() -
getTickTimesNanos
public long[] getTickTimesNanos() -
getProfilePermissions
public int getProfilePermissions(com.mojang.authlib.GameProfile p_129945_) -
isSingleplayerOwner
public abstract boolean isSingleplayerOwner(com.mojang.authlib.GameProfile p_129840_) -
dumpServerProperties
- 抛出:
IOException
-
saveDebugReport
-
dumpMiscStats
- 抛出:
IOException
-
dumpGameRules
- 抛出:
IOException
-
dumpClasspath
- 抛出:
IOException
-
dumpThreads
- 抛出:
IOException
-
dumpNativeModules
- 抛出:
IOException
-
createProfiler
-
endMetricsRecordingTick
public void endMetricsRecordingTick() -
isRecordingMetrics
public boolean isRecordingMetrics() -
startRecordingMetrics
-
stopRecordingMetrics
public void stopRecordingMetrics() -
finishRecordingMetrics
public void finishRecordingMetrics() -
cancelRecordingMetrics
public void cancelRecordingMetrics() -
getWorldPath
-
forceSynchronousWrites
public boolean forceSynchronousWrites() -
getStructureManager
-
getWorldData
-
registryAccess
-
registries
-
reloadableRegistries
-
createTextFilterForPlayer
-
createGameModeForPlayer
-
getForcedGameType
-
getResourceManager
-
isCurrentlySaving
public boolean isCurrentlySaving() -
isTimeProfilerRunning
public boolean isTimeProfilerRunning() -
startTimeProfiler
public void startTimeProfiler() -
stopTimeProfiler
-
getMaxChainedNeighborUpdates
public int getMaxChainedNeighborUpdates() -
logChatMessage
public void logChatMessage(Component p_241503_, ChatType.Bound p_241402_, @Nullable String p_241481_) -
getChatDecorator
-
logIPs
public boolean logIPs() -
subscribeToDebugSample
-
acceptsTransfers
public boolean acceptsTransfers() -
storeChunkIoError
private void storeChunkIoError(CrashReport p_344874_, ChunkPos p_342523_, RegionStorageInfo p_343084_) -
reportChunkLoadFailure
public void reportChunkLoadFailure(Throwable p_345315_, RegionStorageInfo p_344502_, ChunkPos p_330022_) - 指定者:
reportChunkLoadFailure
在接口中ChunkIOErrorReporter
-
reportChunkSaveFailure
public void reportChunkSaveFailure(Throwable p_343979_, RegionStorageInfo p_345051_, ChunkPos p_333073_) - 指定者:
reportChunkSaveFailure
在接口中ChunkIOErrorReporter
-
reportPacketHandlingException
-
potionBrewing
-
fuelValues
-
serverLinks
-
resetStatusCache
-
getStatusJson
-
getTickTime
-
forgeGetWorldMap
已过时。 -
markWorldsDirty
已过时。 -
getWorldArray
-
getServerResources
-
pauseWhileEmptySeconds
protected int pauseWhileEmptySeconds()
-