Class MinecraftServer

java.lang.Object
net.minecraft.server.MinecraftServer
All Implemented Interfaces:
Runnable, CommandOutput

@Environment(SERVER) public class MinecraftServer extends Object implements Runnable, CommandOutput
Mappings:
Namespace Name
intermediary net/minecraft/server/MinecraftServer
glue net/minecraft/server/MinecraftServer
server net/minecraft/server/MinecraftServer
client net/minecraft/server/MinecraftServer
named net/minecraft/server/MinecraftServer
  • Field Details

    • LOGGER

      public static Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2837 Lnet/minecraft/server/MinecraftServer;field_2837:Ljava/util/logging/Logger;
      glue field_2183 Lnet/minecraft/server/MinecraftServer;field_2183:Ljava/util/logging/Logger;
      server a Lnet/minecraft/server/MinecraftServer;a:Ljava/util/logging/Logger;
      client field_2837 Lnet/minecraft/server/MinecraftServer;field_2837:Ljava/util/logging/Logger;
      named LOGGER Lnet/minecraft/server/MinecraftServer;LOGGER:Ljava/util/logging/Logger;
    • field_2838

      public static HashMap field_2838
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2838 Lnet/minecraft/server/MinecraftServer;field_2838:Ljava/util/HashMap;
      glue field_2184 Lnet/minecraft/server/MinecraftServer;field_2184:Ljava/util/HashMap;
      server b Lnet/minecraft/server/MinecraftServer;b:Ljava/util/HashMap;
      client field_2838 Lnet/minecraft/server/MinecraftServer;field_2838:Ljava/util/HashMap;
      named field_2838 Lnet/minecraft/server/MinecraftServer;field_2838:Ljava/util/HashMap;
    • connections

      public ConnectionListener connections
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2839 Lnet/minecraft/server/MinecraftServer;field_2839:Lnet/minecraft/class_9;
      glue field_2185 Lnet/minecraft/server/MinecraftServer;field_2185:Lclass_105;
      server c Lnet/minecraft/server/MinecraftServer;c:Lcu;
      client field_2839 Lnet/minecraft/server/MinecraftServer;field_2839:Lnet/minecraft/class_9;
      named connections Lnet/minecraft/server/MinecraftServer;connections:Lnet/minecraft/server/network/ConnectionListener;
    • properties

      public ServerProperties properties
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2840 Lnet/minecraft/server/MinecraftServer;field_2840:Lnet/minecraft/class_391;
      glue field_2186 Lnet/minecraft/server/MinecraftServer;field_2186:Lclass_424;
      server d Lnet/minecraft/server/MinecraftServer;d:Lky;
      client field_2840 Lnet/minecraft/server/MinecraftServer;field_2840:Lnet/minecraft/class_391;
      named properties Lnet/minecraft/server/MinecraftServer;properties:Lnet/minecraft/server/ServerProperties;
    • worlds

      public ServerWorld[] worlds
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2841 Lnet/minecraft/server/MinecraftServer;field_2841:[Lnet/minecraft/class_73;
      glue field_2187 Lnet/minecraft/server/MinecraftServer;field_2187:[Lclass_137;
      server e Lnet/minecraft/server/MinecraftServer;e:[Ldp;
      client field_2841 Lnet/minecraft/server/MinecraftServer;field_2841:[Lnet/minecraft/class_73;
      named worlds Lnet/minecraft/server/MinecraftServer;worlds:[Lnet/minecraft/world/ServerWorld;
    • playerManager

      public PlayerManager playerManager
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2842 Lnet/minecraft/server/MinecraftServer;field_2842:Lnet/minecraft/class_166;
      glue field_2188 Lnet/minecraft/server/MinecraftServer;field_2188:Lclass_195;
      server f Lnet/minecraft/server/MinecraftServer;f:Lfc;
      client field_2842 Lnet/minecraft/server/MinecraftServer;field_2842:Lnet/minecraft/class_166;
      named playerManager Lnet/minecraft/server/MinecraftServer;playerManager:Lnet/minecraft/server/PlayerManager;
    • commandHandler

      private ServerCommandHandler commandHandler
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2852 Lnet/minecraft/server/MinecraftServer;field_2852:Lnet/minecraft/class_426;
      glue field_2198 Lnet/minecraft/server/MinecraftServer;field_2198:Lclass_468;
      server p Lnet/minecraft/server/MinecraftServer;p:Lmc;
      client field_2852 Lnet/minecraft/server/MinecraftServer;field_2852:Lnet/minecraft/class_426;
      named commandHandler Lnet/minecraft/server/MinecraftServer;commandHandler:Lnet/minecraft/server/command/ServerCommandHandler;
    • running

      private boolean running
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2853 Lnet/minecraft/server/MinecraftServer;field_2853:Z
      glue field_2199 Lnet/minecraft/server/MinecraftServer;field_2199:Z
      server q Lnet/minecraft/server/MinecraftServer;q:Z
      client field_2853 Lnet/minecraft/server/MinecraftServer;field_2853:Z
      named running Lnet/minecraft/server/MinecraftServer;running:Z
    • stopped

      public boolean stopped
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2843 Lnet/minecraft/server/MinecraftServer;field_2843:Z
      glue field_2189 Lnet/minecraft/server/MinecraftServer;field_2189:Z
      server g Lnet/minecraft/server/MinecraftServer;g:Z
      client field_2843 Lnet/minecraft/server/MinecraftServer;field_2843:Z
      named stopped Lnet/minecraft/server/MinecraftServer;stopped:Z
    • ticks

      int ticks
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2844 Lnet/minecraft/server/MinecraftServer;field_2844:I
      glue field_2190 Lnet/minecraft/server/MinecraftServer;field_2190:I
      server h Lnet/minecraft/server/MinecraftServer;h:I
      client field_2844 Lnet/minecraft/server/MinecraftServer;field_2844:I
      named ticks Lnet/minecraft/server/MinecraftServer;ticks:I
    • progressMessage

      public String progressMessage
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2845 Lnet/minecraft/server/MinecraftServer;field_2845:Ljava/lang/String;
      glue field_2191 Lnet/minecraft/server/MinecraftServer;field_2191:Ljava/lang/String;
      server i Lnet/minecraft/server/MinecraftServer;i:Ljava/lang/String;
      client field_2845 Lnet/minecraft/server/MinecraftServer;field_2845:Ljava/lang/String;
      named progressMessage Lnet/minecraft/server/MinecraftServer;progressMessage:Ljava/lang/String;
    • progress

      public int progress
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2846 Lnet/minecraft/server/MinecraftServer;field_2846:I
      glue field_2192 Lnet/minecraft/server/MinecraftServer;field_2192:I
      server j Lnet/minecraft/server/MinecraftServer;j:I
      client field_2846 Lnet/minecraft/server/MinecraftServer;field_2846:I
      named progress Lnet/minecraft/server/MinecraftServer;progress:I
    • tickables

      private List tickables
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2854 Lnet/minecraft/server/MinecraftServer;field_2854:Ljava/util/List;
      glue field_2200 Lnet/minecraft/server/MinecraftServer;field_2200:Ljava/util/List;
      server r Lnet/minecraft/server/MinecraftServer;r:Ljava/util/List;
      client field_2854 Lnet/minecraft/server/MinecraftServer;field_2854:Ljava/util/List;
      named tickables Lnet/minecraft/server/MinecraftServer;tickables:Ljava/util/List;
    • pendingCommands

      private List pendingCommands
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2855 Lnet/minecraft/server/MinecraftServer;field_2855:Ljava/util/List;
      glue field_2201 Lnet/minecraft/server/MinecraftServer;field_2201:Ljava/util/List;
      server s Lnet/minecraft/server/MinecraftServer;s:Ljava/util/List;
      client field_2855 Lnet/minecraft/server/MinecraftServer;field_2855:Ljava/util/List;
      named pendingCommands Lnet/minecraft/server/MinecraftServer;pendingCommands:Ljava/util/List;
    • entityTrackers

      public EntityTracker[] entityTrackers
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2847 Lnet/minecraft/server/MinecraftServer;field_2847:[Lnet/minecraft/class_488;
      glue field_2193 Lnet/minecraft/server/MinecraftServer;field_2193:[Lclass_523;
      server k Lnet/minecraft/server/MinecraftServer;k:[Lnl;
      client field_2847 Lnet/minecraft/server/MinecraftServer;field_2847:[Lnet/minecraft/class_488;
      named entityTrackers Lnet/minecraft/server/MinecraftServer;entityTrackers:[Lnet/minecraft/server/entity/EntityTracker;
    • onlineMode

      public boolean onlineMode
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2848 Lnet/minecraft/server/MinecraftServer;field_2848:Z
      glue field_2194 Lnet/minecraft/server/MinecraftServer;field_2194:Z
      server l Lnet/minecraft/server/MinecraftServer;l:Z
      client field_2848 Lnet/minecraft/server/MinecraftServer;field_2848:Z
      named onlineMode Lnet/minecraft/server/MinecraftServer;onlineMode:Z
    • spawnAnimals

      public boolean spawnAnimals
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2849 Lnet/minecraft/server/MinecraftServer;field_2849:Z
      glue field_2195 Lnet/minecraft/server/MinecraftServer;field_2195:Z
      server m Lnet/minecraft/server/MinecraftServer;m:Z
      client field_2849 Lnet/minecraft/server/MinecraftServer;field_2849:Z
      named spawnAnimals Lnet/minecraft/server/MinecraftServer;spawnAnimals:Z
    • pvpEnabled

      public boolean pvpEnabled
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2850 Lnet/minecraft/server/MinecraftServer;field_2850:Z
      glue field_2196 Lnet/minecraft/server/MinecraftServer;field_2196:Z
      server n Lnet/minecraft/server/MinecraftServer;n:Z
      client field_2850 Lnet/minecraft/server/MinecraftServer;field_2850:Z
      named pvpEnabled Lnet/minecraft/server/MinecraftServer;pvpEnabled:Z
    • flightEnabled

      public boolean flightEnabled
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2851 Lnet/minecraft/server/MinecraftServer;field_2851:Z
      glue field_2197 Lnet/minecraft/server/MinecraftServer;field_2197:Z
      server o Lnet/minecraft/server/MinecraftServer;o:Z
      client field_2851 Lnet/minecraft/server/MinecraftServer;field_2851:Z
      named flightEnabled Lnet/minecraft/server/MinecraftServer;flightEnabled:Z
  • Constructor Details

    • MinecraftServer

      public MinecraftServer()
  • Method Details

    • init

      private boolean init()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2166 Lnet/minecraft/server/MinecraftServer;method_2166()Z
      glue method_1910 Lnet/minecraft/server/MinecraftServer;method_1910()Z
      server c Lnet/minecraft/server/MinecraftServer;c()Z
      client method_2166 Lnet/minecraft/server/MinecraftServer;method_2166()Z
      named init Lnet/minecraft/server/MinecraftServer;init()Z
    • loadWorld

      private void loadWorld(WorldStorageSource storageSource, String worldDir, long seed)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2159 Lnet/minecraft/server/MinecraftServer;method_2159(Lnet/minecraft/class_182;Ljava/lang/String;J)V
      glue method_1903 Lnet/minecraft/server/MinecraftServer;method_1903(Lclass_324;Ljava/lang/String;J)V
      server a Lnet/minecraft/server/MinecraftServer;a(Lil;Ljava/lang/String;J)V
      client method_2159 Lnet/minecraft/server/MinecraftServer;method_2159(Lnl;Ljava/lang/String;J)V
      named loadWorld Lnet/minecraft/server/MinecraftServer;loadWorld(Lnet/minecraft/world/storage/WorldStorageSource;Ljava/lang/String;J)V
    • logProgress

      private void logProgress(String progressType, int progress)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2161 Lnet/minecraft/server/MinecraftServer;method_2161(Ljava/lang/String;I)V
      glue method_1905 Lnet/minecraft/server/MinecraftServer;method_1905(Ljava/lang/String;I)V
      server a Lnet/minecraft/server/MinecraftServer;a(Ljava/lang/String;I)V
      client method_2161 Lnet/minecraft/server/MinecraftServer;method_2161(Ljava/lang/String;I)V
      named logProgress Lnet/minecraft/server/MinecraftServer;logProgress(Ljava/lang/String;I)V
    • clearProgress

      private void clearProgress()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2168 Lnet/minecraft/server/MinecraftServer;method_2168()V
      glue method_1912 Lnet/minecraft/server/MinecraftServer;method_1912()V
      server e Lnet/minecraft/server/MinecraftServer;e()V
      client method_2168 Lnet/minecraft/server/MinecraftServer;method_2168()V
      named clearProgress Lnet/minecraft/server/MinecraftServer;clearProgress()V
    • saveWorlds

      private void saveWorlds()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2169 Lnet/minecraft/server/MinecraftServer;method_2169()V
      glue method_1913 Lnet/minecraft/server/MinecraftServer;method_1913()V
      server f Lnet/minecraft/server/MinecraftServer;f()V
      client method_2169 Lnet/minecraft/server/MinecraftServer;method_2169()V
      named saveWorlds Lnet/minecraft/server/MinecraftServer;saveWorlds()V
    • shutdown

      private void shutdown()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2170 Lnet/minecraft/server/MinecraftServer;method_2170()V
      glue method_1914 Lnet/minecraft/server/MinecraftServer;method_1914()V
      server g Lnet/minecraft/server/MinecraftServer;g()V
      client method_2170 Lnet/minecraft/server/MinecraftServer;method_2170()V
      named shutdown Lnet/minecraft/server/MinecraftServer;shutdown()V
    • stop

      public void stop()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2156 Lnet/minecraft/server/MinecraftServer;method_2156()V
      glue method_1900 Lnet/minecraft/server/MinecraftServer;method_1900()V
      server a Lnet/minecraft/server/MinecraftServer;a()V
      client method_2156 Lnet/minecraft/server/MinecraftServer;method_2156()V
      named stop Lnet/minecraft/server/MinecraftServer;stop()V
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Mappings:
      Namespace Name Mixin selector
      intermediary run Lnet/minecraft/server/MinecraftServer;run()V
      glue run Lnet/minecraft/server/MinecraftServer;run()V
      server run Lnet/minecraft/server/MinecraftServer;run()V
      client run Lnet/minecraft/server/MinecraftServer;run()V
      named run Lnet/minecraft/server/MinecraftServer;run()V
    • tick

      private void tick()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2171 Lnet/minecraft/server/MinecraftServer;method_2171()V
      glue method_1915 Lnet/minecraft/server/MinecraftServer;method_1915()V
      server h Lnet/minecraft/server/MinecraftServer;h()V
      client method_2171 Lnet/minecraft/server/MinecraftServer;method_2171()V
      named tick Lnet/minecraft/server/MinecraftServer;tick()V
    • queueCommands

      public void queueCommands(String string, CommandOutput commandOutput)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2162 Lnet/minecraft/server/MinecraftServer;method_2162(Ljava/lang/String;Lnet/minecraft/class_39;)V
      glue method_1906 Lnet/minecraft/server/MinecraftServer;method_1906(Ljava/lang/String;Lclass_466;)V
      server a Lnet/minecraft/server/MinecraftServer;a(Ljava/lang/String;Lmb;)V
      client method_2162 Lnet/minecraft/server/MinecraftServer;method_2162(Ljava/lang/String;Lnet/minecraft/class_39;)V
      named queueCommands Lnet/minecraft/server/MinecraftServer;queueCommands(Ljava/lang/String;Lnet/minecraft/server/command/CommandOutput;)V
    • runPendingCommands

      public void runPendingCommands()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2164 Lnet/minecraft/server/MinecraftServer;method_2164()V
      glue method_1908 Lnet/minecraft/server/MinecraftServer;method_1908()V
      server b Lnet/minecraft/server/MinecraftServer;b()V
      client method_2164 Lnet/minecraft/server/MinecraftServer;method_2164()V
      named runPendingCommands Lnet/minecraft/server/MinecraftServer;runPendingCommands()V
    • addTickable

      public void addTickable(Tickable tickable)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2158 Lnet/minecraft/server/MinecraftServer;method_2158(Lnet/minecraft/class_46;)V
      glue method_1902 Lnet/minecraft/server/MinecraftServer;method_1902(Lclass_125;)V
      server a Lnet/minecraft/server/MinecraftServer;a(Ldg;)V
      client method_2158 Lnet/minecraft/server/MinecraftServer;method_2158(Lnet/minecraft/class_46;)V
      named addTickable Lnet/minecraft/server/MinecraftServer;addTickable(Lnet/minecraft/util/Tickable;)V
    • main

      public static void main(String[] args)
      Mappings:
      Namespace Name Mixin selector
      intermediary main Lnet/minecraft/server/MinecraftServer;main([Ljava/lang/String;)V
      glue main Lnet/minecraft/server/MinecraftServer;main([Ljava/lang/String;)V
      server main Lnet/minecraft/server/MinecraftServer;main([Ljava/lang/String;)V
      client main Lnet/minecraft/server/MinecraftServer;main([Ljava/lang/String;)V
      named main Lnet/minecraft/server/MinecraftServer;main([Ljava/lang/String;)V
    • getFile

      public File getFile(String path)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2160 Lnet/minecraft/server/MinecraftServer;method_2160(Ljava/lang/String;)Ljava/io/File;
      glue method_1904 Lnet/minecraft/server/MinecraftServer;method_1904(Ljava/lang/String;)Ljava/io/File;
      server a Lnet/minecraft/server/MinecraftServer;a(Ljava/lang/String;)Ljava/io/File;
      client method_2160 Lnet/minecraft/server/MinecraftServer;method_2160(Ljava/lang/String;)Ljava/io/File;
      named getFile Lnet/minecraft/server/MinecraftServer;getFile(Ljava/lang/String;)Ljava/io/File;
    • sendMessage

      public void sendMessage(String message)
      Specified by:
      sendMessage in interface CommandOutput
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1409 Lnet/minecraft/class_39;method_1409(Ljava/lang/String;)V
      glue method_1222 Lclass_466;method_1222(Ljava/lang/String;)V
      server b Lmb;b(Ljava/lang/String;)V
      client method_1409 Lnet/minecraft/class_39;method_1409(Ljava/lang/String;)V
      named sendMessage Lnet/minecraft/server/command/CommandOutput;sendMessage(Ljava/lang/String;)V
    • warn

      public void warn(String message)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2167 Lnet/minecraft/server/MinecraftServer;method_2167(Ljava/lang/String;)V
      glue method_1911 Lnet/minecraft/server/MinecraftServer;method_1911(Ljava/lang/String;)V
      server c Lnet/minecraft/server/MinecraftServer;c(Ljava/lang/String;)V
      client method_2167 Lnet/minecraft/server/MinecraftServer;method_2167(Ljava/lang/String;)V
      named warn Lnet/minecraft/server/MinecraftServer;warn(Ljava/lang/String;)V
    • getName

      public String getName()
      Specified by:
      getName in interface CommandOutput
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1410 Lnet/minecraft/class_39;method_1410()Ljava/lang/String;
      glue method_1224 Lclass_466;method_1224()Ljava/lang/String;
      server d Lmb;d()Ljava/lang/String;
      client method_1410 Lnet/minecraft/class_39;method_1410()Ljava/lang/String;
      named getName Lnet/minecraft/server/command/CommandOutput;getName()Ljava/lang/String;
    • getWorld

      public ServerWorld getWorld(int dimensionId)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2157 Lnet/minecraft/server/MinecraftServer;method_2157(I)Lnet/minecraft/class_73;
      glue method_1901 Lnet/minecraft/server/MinecraftServer;method_1901(I)Lclass_137;
      server a Lnet/minecraft/server/MinecraftServer;a(I)Ldp;
      client method_2157 Lnet/minecraft/server/MinecraftServer;method_2157(I)Lnet/minecraft/class_73;
      named getWorld Lnet/minecraft/server/MinecraftServer;getWorld(I)Lnet/minecraft/world/ServerWorld;
    • getEntityTracker

      public EntityTracker getEntityTracker(int dimensionId)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_2165 Lnet/minecraft/server/MinecraftServer;method_2165(I)Lnet/minecraft/class_488;
      glue method_1909 Lnet/minecraft/server/MinecraftServer;method_1909(I)Lclass_523;
      server b Lnet/minecraft/server/MinecraftServer;b(I)Lnl;
      client method_2165 Lnet/minecraft/server/MinecraftServer;method_2165(I)Lnet/minecraft/class_488;
      named getEntityTracker Lnet/minecraft/server/MinecraftServer;getEntityTracker(I)Lnet/minecraft/server/entity/EntityTracker;