net.minecraft.server

public abstract class MinecraftServer

implements CommandSource, Runnable, SnooperPopulator

net.minecraft.server.MinecraftServer
net.minecraft.server.MinecraftServer
net.minecraft.server.MinecraftServer
net.minecraft.server.MinecraftServer

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
i
field_8920
LOGGER
logger
public static final File
a
field_8919
USER_CACHE_FILE
USER_CACHE_FILE
private static MinecraftServer
j
field_3859
instance
mcServer
private final WorldStorageSource
k
field_3860
worldStorageSource
anvilConverterForAnvilFile
private final Snooper
l
field_3861
snooper
usageSnooper
private final File
m
field_3862
gameDirectory
anvilFile
private final List
n
field_3863
tickables
playersOnline
private final CommandHandler
o
field_3864
commandHandler
commandManager
public final Profiler
b
field_3849
profiler
theProfiler
private final ConnectionListener
p
field_8921
connection
networkSystem
private final ServerStatus
q
field_8922
status
statusResponse
private final Random
r
field_8923
random
random
private String
s
field_3865
serverIp
hostname
private int
t
field_3866
serverPort
serverPort
public ServerWorld[]
c
field_3850
worlds
worldServers
private PlayerManager
u
field_3867
playerManager
serverConfigManager
private boolean
v
field_3868
running
serverRunning
private boolean
w
field_3869
stopped
serverStopped
private int
x
field_3870
ticks
tickCounter
protected final Proxy
d
field_6741
proxy
serverProxy
public String
e
field_3851
progressType
currentTask
public int
f
field_3852
progress
percentDone
private boolean
y
field_3871
onlineMode
onlineMode
private boolean
z
field_3872
spawnAnimals
canSpawnAnimals
private boolean
A
field_3873
spawnNpcs
canSpawnNPCs
private boolean
B
field_3828
pvpEnabled
pvpEnabled
private boolean
C
field_3829
flightEnabled
allowFlight
private String
D
field_3830
motd
motd
private int
E
field_3831
worldHeight
buildLimit
private int
F
field_6740
playerIdleTimeout
maxPlayerIdleMinutes
public final long[]
g
field_3857
averageTickTimes
tickTimeArray
public long[][]
h
field_3858
worldTickTimes
timeOfLastDimensionTick
private KeyPair
G
field_3836
keyPair
serverKeyPair
private String
H
field_3837
username
serverOwner
private String
I
field_3838
worldSaveName
folderName
private boolean
K
field_3840
demo
isDemo
private boolean
L
field_3841
bonusChestEnabled
enableBonusChest
private boolean
M
field_3842
stopping
worldIsBeingDeleted
private String
N
field_3843
resourcePackUrl
serverTexturePack
private boolean
O
field_3844
loading
serverIsRunning
private long
P
field_3845
lastWarnTime
timeOfLastWarning
private String
Q
field_3846
loadingStage
userMessage
private boolean
R
field_3847
profiling
startProfiling
private boolean
S
field_6124
forceGameMode
isGamemodeForced
private final YggdrasilAuthenticationService
T
field_8914
authService
authService
private final MinecraftSessionService
U
field_8915
sessionService
sessionService
private long
V
field_8916
lastPlayerSampleUpdate
nanoTimeSinceStatusRefresh
private final GameProfileRepository
W
field_8917
gameProfileRepository
profileRepo
private final GameProfileCache
X
field_8918
gameProfileCache
profileCache
private String
J
field_3839
worldName
worldName

Constructor summary

ModifierConstructor
public (File gameDir, Proxy proxy)

Method summary

Modifier and TypeMethod
protected abstract boolean
e()
method_3011()
init()
startServer()
protected void
a(String arg0)
method_3017(String arg0)
convertWorld(String saveName)
convertMapIfNeeded(String arg0)
protected synchronized void
b(String arg0)
method_3021(String arg0)
setLoadingStage(String stage)
setUserMessage(String message)
protected void
a(String arg0, String arg1, long arg2, ahm arg3, String arg4)
method_2995(String arg0, String arg1, long arg2, class_1160 arg3, String arg4)
loadWorld(String saveName, String name, long seed, WorldGeneratorType generatorType, String generatorOptions)
loadAllWorlds(String arg0, String arg1, long arg2, WorldType arg3, String arg4)
protected void
g()
method_3019()
prepareWorlds()
initialWorldChunkLoad()
public abstract boolean
h()
method_3023()
shouldGenerateStructures()
canStructuresSpawn()
public abstract WorldSettings__GameMode
i()
method_3026()
getDefaultGameMode()
getGameType()
public abstract Difficulty
j()
method_3029()
getDefaultDifficulty()
getDifficulty()
public abstract boolean
k()
method_3031()
isHardcore()
isHardcore()
public abstract int
l()
method_6085()
getOpPermissionLevel()
getOpPermissionLevel()
public abstract boolean
m()
method_8164()
broadcastRconToOps()
func_152363_m()
protected void
a_(String arg0, int arg1)
method_3002(String arg0, int arg1)
logProgress(String progressType, int progress)
outputPercentRemaining(String message, int percent)
protected void
n()
method_3033()
clearProgress()
clearCurrentTask()
protected void
a(boolean arg0)
method_3001(boolean arg0)
saveWorlds(boolean silent)
saveAllWorlds(boolean dontLog)
public void
o()
method_3034()
shutdown()
stopServer()
public String
p()
method_3035()
getServerIp()
getServerHostname()
public void
c(String arg0)
method_3024(String arg0)
setServerIp(String serverIp)
setHostname(String host)
public boolean
q()
method_3036()
isRunning()
isServerRunning()
public void
r()
method_3038()
stop()
initiateShutdown()
public void
run()
run()
run()
private void
a(kb arg0)
method_8154(class_2081 arg0)
setStatus(ServerStatus status)
addFaviconToStatusResponse(ServerStatusResponse response)
protected File
s()
method_3040()
getRunDir()
getDataDirectory()
protected void
a(b arg0)
method_2992(class_1 arg0)
onServerCrashed(CrashReport report)
finalTick(CrashReport report)
protected void
t()
method_3042()
exit()
systemExitNow()
public void
u()
method_3044()
tick()
tick()
public void
v()
method_3046()
tickWorlds()
updateTimeLightAndEntities()
public boolean
w()
method_3047()
isNetherAllowed()
getAllowNether()
public void
a(lr arg0)
method_2994(class_746 arg0)
addTickable(Tickable tickable)
func_82010_a(IUpdatePlayerListBox arg0)
public static void
main(String[] arg0)
main(String[] arg0)
main(String[] args)
main(String[] arg0)
public void
x()
method_3048()
start()
startServerThread()
public File
d(String arg0)
method_3027(String arg0)
getFile(String path)
getFile(String fileName)
public void
e(String arg0)
method_2034(String arg0)
info(String message)
logInfo(String msg)
public void
f(String arg0)
method_2035(String arg0)
warn(String message)
logWarning(String msg)
public ServerWorld
a(int arg0)
method_2991(int arg0)
getWorld(int dimension)
worldServerForDimension(int dimension)
public String
y()
method_2039()
getIp()
getHostname()
public int
z()
method_2040()
getPort()
getPort()
public String
A()
method_2041()
getMotd()
getMotd()
public String
B()
method_2042()
getGameVersion()
getMinecraftVersion()
public int
C()
method_2043()
getPlayerCount()
getCurrentPlayerCount()
public int
D()
method_2044()
getMaxPlayerCount()
getMaxPlayers()
public String[]
E()
method_2045()
getPlayerNames()
getAllUsernames()
public GameProfile[]
F()
method_8153()
getGameProfiles()
getGameProfiles()
public String
G()
method_2026()
getPlugins()
getPlugins()
public String
g(String arg0)
method_2036(String arg0)
runRconCommand(String command)
handleRConCommand(String command)
public boolean
H()
method_2027()
isDebuggingEnabled()
isDebuggingEnabled()
public void
h(String arg0)
method_2037(String arg0)
error(String message)
logSevere(String msg)
public void
i(String arg0)
method_2038(String arg0)
log(String message)
logDebug(String msg)
public String
getServerModName()
getServerModName()
getServerModName()
getServerModName()
public CrashReport
b(b arg0)
method_3013(class_1 arg0)
populateCrashReport(CrashReport report)
addServerInfoToCrashReport(CrashReport report)
public List
a(ac arg0, String arg1)
method_2998(class_1061 arg0, String arg1)
getCommandSuggestions(CommandSource source, String command)
getPossibleCompletions(ICommandSender sender, String input)
public static MinecraftServer
I()
method_2970()
getInstance()
getServer()
public String
b_()
method_2518()
getName()
getCommandSenderName()
public void
a(fj arg0)
method_5505(class_1982 arg0)
sendMessage(Text arg0)
addChatMessage(IChatComponent arg0)
public boolean
a(int arg0, String arg1)
method_3333(int arg0, String arg1)
canUseCommand(int arg0, String arg1)
canCommandSenderUseCommand(int arg0, String arg1)
public CommandHandler
J()
method_2971()
getCommandHandler()
getCommandManager()
public KeyPair
K()
method_2972()
getKeyPair()
getKeyPair()
public int
L()
method_2973()
getServerPort()
getServerPort()
public void
b(int arg0)
method_3012(int arg0)
setServerPort(int serverPort)
setServerPort(int port)
public String
M()
method_2974()
getUsername()
getServerOwner()
public void
j(String arg0)
method_3037(String arg0)
setUsername(String username)
setServerOwner(String owner)
public boolean
N()
method_2975()
isSingleplayer()
isSinglePlayer()
public String
O()
method_2028()
getWorldSaveName()
getFolderName()
public void
k(String arg0)
method_3039(String arg0)
setWorldSaveName(String worldSaveName)
setFolderName(String name)
public void
a(KeyPair arg0)
method_2996(KeyPair arg0)
setKeyPair(KeyPair keyPair)
setKeyPair(KeyPair keyPair)
public void
a(rd arg0)
method_8155(class_2151 arg0)
setDifficulty(Difficulty difficulty)
setDifficultyForAllWorlds(EnumDifficulty difficulty)
protected boolean
Q()
method_2977()
isMonsterSpawningEnabled()
allowSpawnMonsters()
public boolean
R()
method_2978()
isDemo()
isDemo()
public void
b(boolean arg0)
method_3014(boolean arg0)
setDemo(boolean demo)
setDemo(boolean demo)
public void
c(boolean arg0)
method_3018(boolean arg0)
enableBonusChest(boolean bonusChestEnabled)
canCreateBonusChest(boolean enable)
public WorldStorageSource
S()
method_2979()
getWorldStorageSource()
getActiveAnvilConverter()
public void
U()
method_2980()
deleteWorldAndStop()
deleteWorldAndStopServer()
public String
V()
method_2981()
getResourcePackUrl()
getTexturePack()
public void
m(String arg0)
method_3043(String arg0)
setResourcePack(String url)
setServerResourcePack(String resourcePackUrl)
public void
a(ri arg0)
method_2410(class_853 arg0)
populateSnooper(Snooper arg0)
addServerStatsToSnooper(PlayerUsageSnooper arg0)
public void
b(ri arg0)
method_2411(class_853 arg0)
initSnooper(Snooper arg0)
addServerTypeToSnooper(PlayerUsageSnooper arg0)
public boolean
W()
method_2409()
isSnooperEnabled()
isSnooperEnabled()
public abstract boolean
X()
method_2983()
isDedicated()
isDedicatedServer()
public boolean
Y()
method_2984()
isOnlineMode()
isServerInOnlineMode()
public void
d(boolean arg0)
method_3022(boolean arg0)
setOnlineMode(boolean onlineMode)
setOnlineMode(boolean online)
public boolean
Z()
method_2985()
shouldSpawnAnimals()
getCanSpawnAnimals()
public void
e(boolean arg0)
method_3025(boolean arg0)
setSpawnAnimals(boolean spawnAnimals)
setCanSpawnAnimals(boolean spawnAnimals)
public boolean
aa()
method_2986()
shouldSpawnNpcs()
getCanSpawnNPCs()
public void
f(boolean arg0)
method_3028(boolean arg0)
setSpawnNpcs(boolean spawnNpcs)
setCanSpawnNPCs(boolean spawnNpcs)
public boolean
ab()
method_2987()
isPvpEnabled()
isPVPEnabled()
public void
g(boolean arg0)
method_3030(boolean arg0)
setPvpEnabled(boolean pvpEnabled)
setAllowPvp(boolean allowPvp)
public boolean
ac()
method_2988()
isFlightEnabled()
isFlightAllowed()
public void
h(boolean arg0)
method_3032(boolean arg0)
setFlightEnabled(boolean flightEnabled)
setAllowFlight(boolean allow)
public abstract boolean
ad()
method_4499()
areCommandBlocksEnabled()
isCommandBlockEnabled()
public String
ae()
method_2989()
getServerMotd()
getMOTD()
public void
n(String arg0)
method_3045(String arg0)
setMotd(String motd)
setMOTD(String motdIn)
public int
af()
method_2990()
getWorldHeight()
getBuildLimit()
public void
c(int arg0)
method_3020(int arg0)
setWorldHeight(int worldHeight)
setBuildLimit(int maxBuildHeight)
public boolean
ag()
method_3003()
hasStopped()
isServerStopped()
public PlayerManager
ah()
method_3004()
getPlayerManager()
getConfigurationManager()
public void
a(oi arg0)
method_2993(class_743 arg0)
setPlayerManager(PlayerManager playerManager)
setConfigManager(ServerConfigurationManager configManager)
public void
a(ahk arg0)
method_2999(class_1157 arg0)
setDefaultGameMode(WorldSettings__GameMode gamemode)
setGameType(WorldSettings$GameType gameMode)
public ConnectionListener
ai()
method_8157()
getConnection()
getNetworkSystem()
public boolean
ak()
method_3007()
hasGui()
getGuiEnabled()
public abstract String
a(ahk arg0, boolean arg1)
method_3000(class_1157 arg0, boolean arg1)
publish(WorldSettings__GameMode defaultGameMode, boolean allowCommands)
shareToLAN(WorldSettings$GameType type, boolean allowCheats)
public int
al()
method_3008()
getTicks()
getTickCounter()
public void
am()
method_3009()
enableProfiling()
enableProfiling()
public Vec3i
f_()
method_4086()
getCommandSourceBlockPos()
getCommandSenderPosition()
public World
d()
method_5506()
getCommandSourceWorld()
getEntityWorld()
public int
ao()
method_4500()
getSpawnProtectionRadius()
getSpawnProtectionSize()
public boolean
a(ahb arg0, int arg1, int arg2, int arg3, yz arg4)
method_5385(class_1150 arg0, int arg1, int arg2, int arg3, class_988 arg4)
isSpawnProtected(World world, int x, int y, int z, PlayerEntity player)
isBlockProtected(World inWorld, int x, int y, int z, EntityPlayer player)
public void
i(boolean arg0)
method_5387(boolean arg0)
setForceGameMode(boolean forceGameMode)
setForceGamemode(boolean force)
public boolean
ap()
method_5386()
shouldForceGameMode()
getForceGamemode()
public Proxy
aq()
method_6081()
getProxy()
getServerProxy()
public static long
ar()
method_6082()
getTimeMillis()
getCurrentTimeMillis()
public int
as()
method_6083()
getPlayerIdleTimeout()
getMaxPlayerIdleMinutes()
public void
d(int arg0)
method_6084(int arg0)
setPlayerIdleTimeout(int playerIdleTimeout)
setPlayerIdleTimeout(int idleTimeout)
public Text
c_()
method_6344()
getDisplayName()
getFormattedCommandSenderName()
public boolean
at()
method_8158()
shouldAnnouncePlayerAchievements()
isAnnouncingPlayerAchievements()
public MinecraftSessionService
av()
method_8159()
getSessionService()
getMinecraftSessionService()
public GameProfileRepository
aw()
method_8160()
getGameProfileRepository()
getGameProfileRepository()
public GameProfileCache
ax()
method_8161()
getGameProfileCache()
getPlayerProfileCache()
public ServerStatus
ay()
method_8162()
getStatus()
getServerStatusResponse()
public void
az()
method_8163()
forcePlayerSampleUpdate()
refreshStatusNextTick()
public synchronized String
f()
method_3015()
getLoadingStage()
getUserMessage()
public void
l(String arg0)
method_3041(String arg0)
setWorldName(String worldName)
setWorldName(String arg0)
public String
P()
method_2976()
getWorldName()
getWorldName()
public boolean
aj()
method_3006()
isLoading()
serverIsInRunLoop()
public Snooper
an()
method_3010()
getSnooper()
getPlayerUsageSnooper()