Class IntegratedServer

All Implemented Interfaces:
AutoCloseable, Executor, QueryableServer, CommandOutput, ChunkErrorHandler, SampleableExecutor, TaskExecutor<ServerTask>

@Environment(CLIENT) public class IntegratedServer extends MinecraftServer
Mappings:
Namespace Name
named net/minecraft/server/integrated/IntegratedServer
intermediary net/minecraft/class_1132
official huh
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/server/integrated/IntegratedServer;LOGGER:Lorg/slf4j/Logger;
      intermediary field_5520 Lnet/minecraft/class_1132;field_5520:Lorg/slf4j/Logger;
      official b Lhuh;b:Lorg/slf4j/Logger;
    • field_34964

      private static final int field_34964
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_34964 Lnet/minecraft/server/integrated/IntegratedServer;field_34964:I
      intermediary field_34964 Lnet/minecraft/class_1132;field_34964:I
      official c Lhuh;c:I
    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/server/integrated/IntegratedServer;client:Lnet/minecraft/client/MinecraftClient;
      intermediary field_5518 Lnet/minecraft/class_1132;field_5518:Lnet/minecraft/class_310;
      official p Lhuh;p:Lfup;
    • paused

      private boolean paused
      Mappings:
      Namespace Name Mixin selector
      named paused Lnet/minecraft/server/integrated/IntegratedServer;paused:Z
      intermediary field_5524 Lnet/minecraft/class_1132;field_5524:Z
      official q Lhuh;q:Z
    • lanPort

      private int lanPort
      Mappings:
      Namespace Name Mixin selector
      named lanPort Lnet/minecraft/server/integrated/IntegratedServer;lanPort:I
      intermediary field_5522 Lnet/minecraft/class_1132;field_5522:I
      official r Lhuh;r:I
    • forcedGameMode

      @Nullable private @Nullable GameMode forcedGameMode
      Mappings:
      Namespace Name Mixin selector
      named forcedGameMode Lnet/minecraft/server/integrated/IntegratedServer;forcedGameMode:Lnet/minecraft/world/GameMode;
      intermediary field_28075 Lnet/minecraft/class_1132;field_28075:Lnet/minecraft/class_1934;
      official s Lhuh;s:Ldmv;
    • lanPinger

      @Nullable private @Nullable LanServerPinger lanPinger
      Mappings:
      Namespace Name Mixin selector
      named lanPinger Lnet/minecraft/server/integrated/IntegratedServer;lanPinger:Lnet/minecraft/client/network/LanServerPinger;
      intermediary field_5519 Lnet/minecraft/class_1132;field_5519:Lnet/minecraft/class_1133;
      official t Lhuh;t:Lhuk;
    • localPlayerUuid

      @Nullable private @Nullable UUID localPlayerUuid
      Mappings:
      Namespace Name Mixin selector
      named localPlayerUuid Lnet/minecraft/server/integrated/IntegratedServer;localPlayerUuid:Ljava/util/UUID;
      intermediary field_5521 Lnet/minecraft/class_1132;field_5521:Ljava/util/UUID;
      official u Lhuh;u:Ljava/util/UUID;
    • simulationDistance

      private int simulationDistance
      Mappings:
      Namespace Name Mixin selector
      named simulationDistance Lnet/minecraft/server/integrated/IntegratedServer;simulationDistance:I
      intermediary field_34965 Lnet/minecraft/class_1132;field_34965:I
      official v Lhuh;v:I
  • Constructor Details

    • IntegratedServer

      public IntegratedServer(Thread serverThread, MinecraftClient client, LevelStorage.Session session, ApiServices apiServices)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/integrated/IntegratedServer;<init>(Ljava/lang/Thread;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lnet/minecraft/util/ApiServices;)V
      intermediary <init> Lnet/minecraft/class_1132;<init>(Ljava/lang/Thread;Lnet/minecraft/class_310;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_7497;)V
      official <init> Lhuh;<init>(Ljava/lang/Thread;Lfup;Lfeg$c;Lamy;)V
  • Method Details

    • setupServer

      public boolean setupServer() throws IOException
      Setups a Minecraft server to be ready for players to connect. This method does several things including loading server properties and loading worlds.
      Specified by:
      setupServer in class MinecraftServer
      Returns:
      true if the Minecraft server was successfully setup, false if the server failed to be setup.
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named setupServer Lnet/minecraft/server/MinecraftServer;setupServer()Z
      intermediary method_3823 Lnet/minecraft/server/MinecraftServer;method_3823()Z
      official e Lnet/minecraft/server/MinecraftServer;e()Z
    • method_69059

      public GameInstance method_69059(ResourcePackManager resourcePackManager, SaveLoader saveLoader, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory)
      Specified by:
      method_69059 in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named method_69059 Lnet/minecraft/server/MinecraftServer;method_69059(Lnet/minecraft/resource/ResourcePackManager;Lnet/minecraft/server/SaveLoader;Lnet/minecraft/server/WorldGenerationProgressListenerFactory;)Lnet/minecraft/server/GameInstance;
      intermediary method_69059 Lnet/minecraft/server/MinecraftServer;method_69059(Lnet/minecraft/class_3283;Lnet/minecraft/class_6904;Lnet/minecraft/class_3950;)Lnet/minecraft/class_10961;
      official a Lnet/minecraft/server/MinecraftServer;a(Lavu;Land;Late;)Lana;
    • isPaused

      public boolean isPaused()
      Overrides:
      isPaused in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isPaused Lnet/minecraft/server/MinecraftServer;isPaused()Z
      intermediary method_54809 Lnet/minecraft/server/MinecraftServer;method_54809()Z
      official z Lnet/minecraft/server/MinecraftServer;z()Z
    • tick

      public void tick(GameInstance gameInstance, BooleanSupplier booleanSupplier)
      Overrides:
      tick in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/server/MinecraftServer;tick(Lnet/minecraft/server/GameInstance;Ljava/util/function/BooleanSupplier;)V
      intermediary method_3748 Lnet/minecraft/server/MinecraftServer;method_3748(Lnet/minecraft/class_10961;Ljava/util/function/BooleanSupplier;)V
      official a Lnet/minecraft/server/MinecraftServer;a(Lana;Ljava/util/function/BooleanSupplier;)V
    • method_69060

      protected MultiValueDebugSampleLogImpl method_69060()
      Specified by:
      method_69060 in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named method_69060 Lnet/minecraft/server/integrated/IntegratedServer;method_69060()Lnet/minecraft/util/profiler/MultiValueDebugSampleLogImpl;
      intermediary method_70523 Lnet/minecraft/class_1132;method_70523()Lnet/minecraft/class_9191;
      official a Lhuh;a()Lbqm;
    • incrementTotalWorldTimeStat

      private void incrementTotalWorldTimeStat(GameInstance gameInstance)
      Mappings:
      Namespace Name Mixin selector
      named incrementTotalWorldTimeStat Lnet/minecraft/server/integrated/IntegratedServer;incrementTotalWorldTimeStat(Lnet/minecraft/server/GameInstance;)V
      intermediary method_36439 Lnet/minecraft/class_1132;method_36439(Lnet/minecraft/class_10961;)V
      official g Lhuh;g(Lana;)V
    • shouldBroadcastRconToOps

      public boolean shouldBroadcastRconToOps()
      Specified by:
      shouldBroadcastRconToOps in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named shouldBroadcastRconToOps Lnet/minecraft/server/MinecraftServer;shouldBroadcastRconToOps()Z
      intermediary method_3732 Lnet/minecraft/server/MinecraftServer;method_3732()Z
      official k Lnet/minecraft/server/MinecraftServer;k()Z
    • shouldBroadcastConsoleToOps

      public boolean shouldBroadcastConsoleToOps()
      Specified by:
      shouldBroadcastConsoleToOps in interface CommandOutput
      Specified by:
      shouldBroadcastConsoleToOps in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named shouldBroadcastConsoleToOps Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
      intermediary method_9201 Lnet/minecraft/class_2165;method_9201()Z
      official c Lek;c()Z
    • getRunDirectory

      public Path getRunDirectory()
      Overrides:
      getRunDirectory in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getRunDirectory Lnet/minecraft/server/MinecraftServer;getRunDirectory()Ljava/nio/file/Path;
      intermediary method_3831 Lnet/minecraft/server/MinecraftServer;method_3831()Ljava/nio/file/Path;
      official y Lnet/minecraft/server/MinecraftServer;y()Ljava/nio/file/Path;
    • isDedicated

      public boolean isDedicated()
      Checks whether this server is a dedicated server.

      A dedicated server refers to a Minecraft server implementation which is detached from a parent Minecraft client process. A dedicated Minecraft server only accepts remote connections.

      Specified by:
      isDedicated in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isDedicated Lnet/minecraft/server/MinecraftServer;isDedicated()Z
      intermediary method_3816 Lnet/minecraft/server/MinecraftServer;method_3816()Z
      official l Lnet/minecraft/server/MinecraftServer;l()Z
    • getRateLimit

      public int getRateLimit()
      Specified by:
      getRateLimit in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getRateLimit Lnet/minecraft/server/MinecraftServer;getRateLimit()I
      intermediary method_30612 Lnet/minecraft/server/MinecraftServer;method_30612()I
      official m Lnet/minecraft/server/MinecraftServer;m()I
    • isUsingNativeTransport

      public boolean isUsingNativeTransport()
      Specified by:
      isUsingNativeTransport in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isUsingNativeTransport Lnet/minecraft/server/MinecraftServer;isUsingNativeTransport()Z
      intermediary method_3759 Lnet/minecraft/server/MinecraftServer;method_3759()Z
      official n Lnet/minecraft/server/MinecraftServer;n()Z
    • setCrashReport

      public void setCrashReport(CrashReport report)
      Overrides:
      setCrashReport in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named setCrashReport Lnet/minecraft/server/MinecraftServer;setCrashReport(Lnet/minecraft/util/crash/CrashReport;)V
      intermediary method_3744 Lnet/minecraft/server/MinecraftServer;method_3744(Lnet/minecraft/class_128;)V
      official a Lnet/minecraft/server/MinecraftServer;a(Lp;)V
    • addExtraSystemDetails

      public SystemDetails addExtraSystemDetails(SystemDetails details)
      Specified by:
      addExtraSystemDetails in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named addExtraSystemDetails Lnet/minecraft/server/MinecraftServer;addExtraSystemDetails(Lnet/minecraft/util/SystemDetails;)Lnet/minecraft/util/SystemDetails;
      intermediary method_3859 Lnet/minecraft/server/MinecraftServer;method_3859(Lnet/minecraft/class_6396;)Lnet/minecraft/class_6396;
      official a Lnet/minecraft/server/MinecraftServer;a(Lae;)Lae;
    • getModStatus

      public ModStatus getModStatus()
      Overrides:
      getModStatus in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getModStatus Lnet/minecraft/server/MinecraftServer;getModStatus()Lnet/minecraft/util/ModStatus;
      intermediary method_24307 Lnet/minecraft/server/MinecraftServer;method_24307()Lnet/minecraft/class_6683;
      official F Lnet/minecraft/server/MinecraftServer;F()Lbaw;
    • openToLan

      public boolean openToLan(GameInstance gameInstance, @Nullable @Nullable GameMode gameMode, boolean bool, int int2)
      Opens a server for LAN connections. This is only supported on an integrated server, a dedicated server will always fail to open to LAN.
      Overrides:
      openToLan in class MinecraftServer
      Returns:
      whether the server was successfully opened to LAN
      Mappings:
      Namespace Name Mixin selector
      named openToLan Lnet/minecraft/server/MinecraftServer;openToLan(Lnet/minecraft/server/GameInstance;Lnet/minecraft/world/GameMode;ZI)Z
      intermediary method_3763 Lnet/minecraft/server/MinecraftServer;method_3763(Lnet/minecraft/class_10961;Lnet/minecraft/class_1934;ZI)Z
      official a Lnet/minecraft/server/MinecraftServer;a(Lana;Ldmv;ZI)Z
    • shutdown

      public void shutdown(GameInstance gameInstance)
      Overrides:
      shutdown in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named shutdown Lnet/minecraft/server/MinecraftServer;shutdown(Lnet/minecraft/server/GameInstance;)V
      intermediary method_3782 Lnet/minecraft/server/MinecraftServer;method_3782(Lnet/minecraft/class_10961;)V
      official c Lnet/minecraft/server/MinecraftServer;c(Lana;)V
    • stop

      public void stop(boolean waitForShutdown)
      Stops this server.
      Overrides:
      stop in class MinecraftServer
      Parameters:
      waitForShutdown - whether to wait for server shutdown, if called outside the server thread
      API Note:
      Pass true to waitForShutdown to wait until the server shuts down. Note that this must be false if called from the server thread, otherwise it deadlocks.
      Mappings:
      Namespace Name Mixin selector
      named stop Lnet/minecraft/server/MinecraftServer;stop(Z)V
      intermediary method_3747 Lnet/minecraft/server/MinecraftServer;method_3747(Z)V
      official a Lnet/minecraft/server/MinecraftServer;a(Z)V
    • isRemote

      public boolean isRemote()
      Specified by:
      isRemote in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isRemote Lnet/minecraft/server/MinecraftServer;isRemote()Z
      intermediary method_3860 Lnet/minecraft/server/MinecraftServer;method_3860()Z
      official p Lnet/minecraft/server/MinecraftServer;p()Z
    • getServerPort

      public int getServerPort()
      Overrides:
      getServerPort in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getServerPort Lnet/minecraft/server/MinecraftServer;getServerPort()I
      intermediary method_3756 Lnet/minecraft/server/MinecraftServer;method_3756()I
      official H Lnet/minecraft/server/MinecraftServer;H()I
    • setDefaultGameMode

      public void setDefaultGameMode(GameInstance gameInstance, GameMode gameMode)
      Overrides:
      setDefaultGameMode in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named setDefaultGameMode Lnet/minecraft/server/MinecraftServer;setDefaultGameMode(Lnet/minecraft/server/GameInstance;Lnet/minecraft/world/GameMode;)V
      intermediary method_3838 Lnet/minecraft/server/MinecraftServer;method_3838(Lnet/minecraft/class_10961;Lnet/minecraft/class_1934;)V
      official a Lnet/minecraft/server/MinecraftServer;a(Lana;Ldmv;)V
    • areCommandBlocksEnabled

      public boolean areCommandBlocksEnabled()
      Specifies whether command blocks can execute commands on the server.
      Specified by:
      areCommandBlocksEnabled in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named areCommandBlocksEnabled Lnet/minecraft/server/MinecraftServer;areCommandBlocksEnabled()Z
      intermediary method_3812 Lnet/minecraft/server/MinecraftServer;method_3812()Z
      official o Lnet/minecraft/server/MinecraftServer;o()Z
    • getOpPermissionLevel

      public int getOpPermissionLevel()
      Specified by:
      getOpPermissionLevel in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getOpPermissionLevel Lnet/minecraft/server/MinecraftServer;getOpPermissionLevel()I
      intermediary method_3798 Lnet/minecraft/server/MinecraftServer;method_3798()I
      official i Lnet/minecraft/server/MinecraftServer;i()I
    • getFunctionPermissionLevel

      public int getFunctionPermissionLevel()
      Specified by:
      getFunctionPermissionLevel in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getFunctionPermissionLevel Lnet/minecraft/server/MinecraftServer;getFunctionPermissionLevel()I
      intermediary method_21714 Lnet/minecraft/server/MinecraftServer;method_21714()I
      official j Lnet/minecraft/server/MinecraftServer;j()I
    • setLocalPlayerUuid

      public void setLocalPlayerUuid(UUID localPlayerUuid)
      Mappings:
      Namespace Name Mixin selector
      named setLocalPlayerUuid Lnet/minecraft/server/integrated/IntegratedServer;setLocalPlayerUuid(Ljava/util/UUID;)V
      intermediary method_4817 Lnet/minecraft/class_1132;method_4817(Ljava/util/UUID;)V
      official a Lhuh;a(Ljava/util/UUID;)V
    • isHost

      public boolean isHost(com.mojang.authlib.GameProfile profile)
      Specified by:
      isHost in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isHost Lnet/minecraft/server/MinecraftServer;isHost(Lcom/mojang/authlib/GameProfile;)Z
      intermediary method_19466 Lnet/minecraft/server/MinecraftServer;method_19466(Lcom/mojang/authlib/GameProfile;)Z
      official a Lnet/minecraft/server/MinecraftServer;a(Lcom/mojang/authlib/GameProfile;)Z
    • adjustTrackingDistance

      public int adjustTrackingDistance(int initialDistance)
      Overrides:
      adjustTrackingDistance in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named adjustTrackingDistance Lnet/minecraft/server/MinecraftServer;adjustTrackingDistance(I)I
      intermediary method_27903 Lnet/minecraft/server/MinecraftServer;method_27903(I)I
      official b Lnet/minecraft/server/MinecraftServer;b(I)I
    • syncChunkWrites

      public boolean syncChunkWrites()
      Overrides:
      syncChunkWrites in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named syncChunkWrites Lnet/minecraft/server/MinecraftServer;syncChunkWrites()Z
      intermediary method_27051 Lnet/minecraft/server/MinecraftServer;method_27051()Z
      official az Lnet/minecraft/server/MinecraftServer;az()Z
    • getForcedGameMode

      @Nullable public @Nullable GameMode getForcedGameMode(GameInstance gameInstance)
      Returns the game mode a player should be set to when connecting to the server, or null if none is set.
      Overrides:
      getForcedGameMode in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getForcedGameMode Lnet/minecraft/server/MinecraftServer;getForcedGameMode(Lnet/minecraft/server/GameInstance;)Lnet/minecraft/world/GameMode;
      intermediary method_3761 Lnet/minecraft/server/MinecraftServer;method_3761(Lnet/minecraft/class_10961;)Lnet/minecraft/class_1934;
      official e Lnet/minecraft/server/MinecraftServer;e(Lana;)Ldmv;
    • saveAll

      public boolean saveAll(GameInstance gameInstance, boolean bool, boolean bool2, boolean bool3)
      Overrides:
      saveAll in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named saveAll Lnet/minecraft/server/MinecraftServer;saveAll(Lnet/minecraft/server/GameInstance;ZZZ)Z
      intermediary method_39218 Lnet/minecraft/server/MinecraftServer;method_39218(Lnet/minecraft/class_10961;ZZZ)Z
      official a Lnet/minecraft/server/MinecraftServer;a(Lana;ZZZ)Z
    • checkLowDiskSpaceWarning

      private void checkLowDiskSpaceWarning()
      Mappings:
      Namespace Name Mixin selector
      named checkLowDiskSpaceWarning Lnet/minecraft/server/integrated/IntegratedServer;checkLowDiskSpaceWarning()V
      intermediary method_57823 Lnet/minecraft/class_1132;method_57823()V
      official b Lhuh;b()V
    • onChunkLoadFailure

      public void onChunkLoadFailure(Throwable exception, StorageKey key, ChunkPos chunkPos)
      Specified by:
      onChunkLoadFailure in interface ChunkErrorHandler
      Overrides:
      onChunkLoadFailure in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named onChunkLoadFailure Lnet/minecraft/server/world/ChunkErrorHandler;onChunkLoadFailure(Ljava/lang/Throwable;Lnet/minecraft/world/storage/StorageKey;Lnet/minecraft/util/math/ChunkPos;)V
      intermediary method_57821 Lnet/minecraft/class_9820;method_57821(Ljava/lang/Throwable;Lnet/minecraft/class_9240;Lnet/minecraft/class_1923;)V
      official a Lehy;a(Ljava/lang/Throwable;Leij;Ldmd;)V
    • onChunkSaveFailure

      public void onChunkSaveFailure(Throwable exception, StorageKey key, ChunkPos chunkPos)
      Specified by:
      onChunkSaveFailure in interface ChunkErrorHandler
      Overrides:
      onChunkSaveFailure in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named onChunkSaveFailure Lnet/minecraft/server/world/ChunkErrorHandler;onChunkSaveFailure(Ljava/lang/Throwable;Lnet/minecraft/world/storage/StorageKey;Lnet/minecraft/util/math/ChunkPos;)V
      intermediary method_57822 Lnet/minecraft/class_9820;method_57822(Ljava/lang/Throwable;Lnet/minecraft/class_9240;Lnet/minecraft/class_1923;)V
      official b Lehy;b(Ljava/lang/Throwable;Leij;Ldmd;)V