Class ServerResourcePackLoader

java.lang.Object
net.minecraft.client.resource.server.ServerResourcePackLoader
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class ServerResourcePackLoader extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/resource/server/ServerResourcePackLoader
intermediary net/minecraft/class_1066
official grq
  • Field Details

    • SERVER_NAME_TEXT

      private static final Text SERVER_NAME_TEXT
      Mappings:
      Namespace Name Mixin selector
      named SERVER_NAME_TEXT Lnet/minecraft/client/resource/server/ServerResourcePackLoader;SERVER_NAME_TEXT:Lnet/minecraft/text/Text;
      intermediary field_40562 Lnet/minecraft/class_1066;field_40562:Lnet/minecraft/class_2561;
      official a Lgrq;a:Lxp;
    • SHA1_PATTERN

      private static final Pattern SHA1_PATTERN
      Mappings:
      Namespace Name Mixin selector
      named SHA1_PATTERN Lnet/minecraft/client/resource/server/ServerResourcePackLoader;SHA1_PATTERN:Ljava/util/regex/Pattern;
      intermediary field_5296 Lnet/minecraft/class_1066;field_5296:Ljava/util/regex/Pattern;
      official b Lgrq;b:Ljava/util/regex/Pattern;
    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/resource/server/ServerResourcePackLoader;LOGGER:Lorg/slf4j/Logger;
      intermediary field_5298 Lnet/minecraft/class_1066;field_5298:Lorg/slf4j/Logger;
      official c Lgrq;c:Lorg/slf4j/Logger;
    • NOOP_PROVIDER

      private static final ResourcePackProvider NOOP_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      named NOOP_PROVIDER Lnet/minecraft/client/resource/server/ServerResourcePackLoader;NOOP_PROVIDER:Lnet/minecraft/resource/ResourcePackProvider;
      intermediary field_47593 Lnet/minecraft/class_1066;field_47593:Lnet/minecraft/class_3285;
      official d Lgrq;d:Lauc;
    • POSITION

      private static final ResourcePackPosition POSITION
      Mappings:
      Namespace Name Mixin selector
      named POSITION Lnet/minecraft/client/resource/server/ServerResourcePackLoader;POSITION:Lnet/minecraft/resource/ResourcePackPosition;
      intermediary field_49134 Lnet/minecraft/class_1066;field_49134:Lnet/minecraft/class_9225;
      official e Lgrq;e:Latc;
    • DEBUG_PACK_STATE_CHANGE_CALLBACK

      private static final PackStateChangeCallback DEBUG_PACK_STATE_CHANGE_CALLBACK
      Mappings:
      Namespace Name Mixin selector
      named DEBUG_PACK_STATE_CHANGE_CALLBACK Lnet/minecraft/client/resource/server/ServerResourcePackLoader;DEBUG_PACK_STATE_CHANGE_CALLBACK:Lnet/minecraft/client/resource/server/PackStateChangeCallback;
      intermediary field_47594 Lnet/minecraft/class_1066;field_47594:Lnet/minecraft/class_9039;
      official f Lgrq;f:Lgrs;
    • client

      final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/client/resource/server/ServerResourcePackLoader;client:Lnet/minecraft/client/MinecraftClient;
      intermediary field_47595 Lnet/minecraft/class_1066;field_47595:Lnet/minecraft/class_310;
      official g Lgrq;g:Lffg;
    • packProvider

      private ResourcePackProvider packProvider
      Mappings:
      Namespace Name Mixin selector
      named packProvider Lnet/minecraft/client/resource/server/ServerResourcePackLoader;packProvider:Lnet/minecraft/resource/ResourcePackProvider;
      intermediary field_47596 Lnet/minecraft/class_1066;field_47596:Lnet/minecraft/class_3285;
      official h Lgrq;h:Lauc;
    • reloadContext

      Mappings:
      Namespace Name Mixin selector
      named reloadContext Lnet/minecraft/client/resource/server/ServerResourcePackLoader;reloadContext:Lnet/minecraft/client/resource/server/ReloadScheduler$ReloadContext;
      intermediary field_47597 Lnet/minecraft/class_1066;field_47597:Lnet/minecraft/class_9041$class_9042;
      official i Lgrq;i:Lgrt$a;
    • manager

      Mappings:
      Namespace Name Mixin selector
      named manager Lnet/minecraft/client/resource/server/ServerResourcePackLoader;manager:Lnet/minecraft/client/resource/server/ServerResourcePackManager;
      intermediary field_47598 Lnet/minecraft/class_1066;field_47598:Lnet/minecraft/class_9044;
      official j Lgrq;j:Lgru;
    • downloader

      private final Downloader downloader
      Mappings:
      Namespace Name Mixin selector
      named downloader Lnet/minecraft/client/resource/server/ServerResourcePackLoader;downloader:Lnet/minecraft/util/Downloader;
      intermediary field_47599 Lnet/minecraft/class_1066;field_47599:Lnet/minecraft/class_9028;
      official k Lgrq;k:Lasw;
    • packSource

      private ResourcePackSource packSource
      Mappings:
      Namespace Name Mixin selector
      named packSource Lnet/minecraft/client/resource/server/ServerResourcePackLoader;packSource:Lnet/minecraft/resource/ResourcePackSource;
      intermediary field_47600 Lnet/minecraft/class_1066;field_47600:Lnet/minecraft/class_5352;
      official l Lgrq;l:Laub;
    • packStateChangeCallback

      PackStateChangeCallback packStateChangeCallback
      Mappings:
      Namespace Name Mixin selector
      named packStateChangeCallback Lnet/minecraft/client/resource/server/ServerResourcePackLoader;packStateChangeCallback:Lnet/minecraft/client/resource/server/PackStateChangeCallback;
      intermediary field_47601 Lnet/minecraft/class_1066;field_47601:Lnet/minecraft/class_9039;
      official m Lgrq;m:Lgrs;
    • packIndex

      private int packIndex
      Mappings:
      Namespace Name Mixin selector
      named packIndex Lnet/minecraft/client/resource/server/ServerResourcePackLoader;packIndex:I
      intermediary field_47690 Lnet/minecraft/class_1066;field_47690:I
      official n Lgrq;n:I
  • Constructor Details

    • ServerResourcePackLoader

      public ServerResourcePackLoader(MinecraftClient client, Path downloadsDirectory, RunArgs.Network runArgs)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/resource/server/ServerResourcePackLoader;<init>(Lnet/minecraft/client/MinecraftClient;Ljava/nio/file/Path;Lnet/minecraft/client/RunArgs$Network;)V
      intermediary <init> Lnet/minecraft/class_1066;<init>(Lnet/minecraft/class_310;Ljava/nio/file/Path;Lnet/minecraft/class_542$class_547;)V
      official <init> Lgrq;<init>(Lffg;Ljava/nio/file/Path;Lfsr$d;)V
  • Method Details

    • createListener

      NetworkUtils.DownloadListener createListener(int entryCount)
      Mappings:
      Namespace Name Mixin selector
      named createListener Lnet/minecraft/client/resource/server/ServerResourcePackLoader;createListener(I)Lnet/minecraft/util/NetworkUtils$DownloadListener;
      intermediary method_55515 Lnet/minecraft/class_1066;method_55515(I)Lnet/minecraft/class_3521$class_9034;
      official a Lgrq;a(I)Layq$a;
    • createDownloadQueuer

      private DownloadQueuer createDownloadQueuer(Downloader downloader, Executor executor, Session session, Proxy proxy)
      Mappings:
      Namespace Name Mixin selector
      named createDownloadQueuer Lnet/minecraft/client/resource/server/ServerResourcePackLoader;createDownloadQueuer(Lnet/minecraft/util/Downloader;Ljava/util/concurrent/Executor;Lnet/minecraft/client/session/Session;Ljava/net/Proxy;)Lnet/minecraft/client/resource/server/DownloadQueuer;
      intermediary method_55516 Lnet/minecraft/class_1066;method_55516(Lnet/minecraft/class_9028;Ljava/util/concurrent/Executor;Lnet/minecraft/class_320;Ljava/net/Proxy;)Lnet/minecraft/class_9038;
      official a Lgrq;a(Lasw;Ljava/util/concurrent/Executor;Lffu;Ljava/net/Proxy;)Lgrr;
    • createPackChangeCallback

      private Runnable createPackChangeCallback(Executor executor)
      Mappings:
      Namespace Name Mixin selector
      named createPackChangeCallback Lnet/minecraft/client/resource/server/ServerResourcePackLoader;createPackChangeCallback(Ljava/util/concurrent/Executor;)Ljava/lang/Runnable;
      intermediary method_55525 Lnet/minecraft/class_1066;method_55525(Ljava/util/concurrent/Executor;)Ljava/lang/Runnable;
      official a Lgrq;a(Ljava/util/concurrent/Executor;)Ljava/lang/Runnable;
    • getReloadScheduler

      private ReloadScheduler getReloadScheduler()
      Mappings:
      Namespace Name Mixin selector
      named getReloadScheduler Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getReloadScheduler()Lnet/minecraft/client/resource/server/ReloadScheduler;
      intermediary method_55542 Lnet/minecraft/class_1066;method_55542()Lnet/minecraft/class_9041;
      official j Lgrq;j()Lgrt;
    • toProfiles

      Mappings:
      Namespace Name Mixin selector
      named toProfiles Lnet/minecraft/client/resource/server/ServerResourcePackLoader;toProfiles(Ljava/util/List;)Ljava/util/List;
      intermediary method_55519 Lnet/minecraft/class_1066;method_55519(Ljava/util/List;)Ljava/util/List;
      official a Lgrq;a(Ljava/util/List;)Ljava/util/List;
    • getPassthroughPackProvider

      public ResourcePackProvider getPassthroughPackProvider()
      Mappings:
      Namespace Name Mixin selector
      named getPassthroughPackProvider Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getPassthroughPackProvider()Lnet/minecraft/resource/ResourcePackProvider;
      intermediary method_55514 Lnet/minecraft/class_1066;method_55514()Lnet/minecraft/class_3285;
      official a Lgrq;a()Lauc;
    • getPackProvider

      private static ResourcePackProvider getPackProvider(List<ResourcePackProfile> serverPacks)
      Mappings:
      Namespace Name Mixin selector
      named getPackProvider Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getPackProvider(Ljava/util/List;)Lnet/minecraft/resource/ResourcePackProvider;
      intermediary method_55531 Lnet/minecraft/class_1066;method_55531(Ljava/util/List;)Lnet/minecraft/class_3285;
      official b Lgrq;b(Ljava/util/List;)Lauc;
    • reload

      private void reload(ReloadScheduler.ReloadContext context)
      Mappings:
      Namespace Name Mixin selector
      named reload Lnet/minecraft/client/resource/server/ServerResourcePackLoader;reload(Lnet/minecraft/client/resource/server/ReloadScheduler$ReloadContext;)V
      intermediary method_55517 Lnet/minecraft/class_1066;method_55517(Lnet/minecraft/class_9041$class_9042;)V
      official a Lgrq;a(Lgrt$a;)V
    • onReloadFailure

      public void onReloadFailure()
      Mappings:
      Namespace Name Mixin selector
      named onReloadFailure Lnet/minecraft/client/resource/server/ServerResourcePackLoader;onReloadFailure()V
      intermediary method_55530 Lnet/minecraft/class_1066;method_55530()V
      official b Lgrq;b()V
    • onForcedReloadFailure

      public void onForcedReloadFailure()
      Mappings:
      Namespace Name Mixin selector
      named onForcedReloadFailure Lnet/minecraft/client/resource/server/ServerResourcePackLoader;onForcedReloadFailure()V
      intermediary method_55535 Lnet/minecraft/class_1066;method_55535()V
      official c Lgrq;c()V
    • onReloadSuccess

      public void onReloadSuccess()
      Mappings:
      Namespace Name Mixin selector
      named onReloadSuccess Lnet/minecraft/client/resource/server/ServerResourcePackLoader;onReloadSuccess()V
      intermediary method_55536 Lnet/minecraft/class_1066;method_55536()V
      official d Lgrq;d()V
    • toHashCode

      @Nullable private static @Nullable HashCode toHashCode(@Nullable @Nullable String hash)
      Mappings:
      Namespace Name Mixin selector
      named toHashCode Lnet/minecraft/client/resource/server/ServerResourcePackLoader;toHashCode(Ljava/lang/String;)Lcom/google/common/hash/HashCode;
      intermediary method_55518 Lnet/minecraft/class_1066;method_55518(Ljava/lang/String;)Lcom/google/common/hash/HashCode;
      official a Lgrq;a(Ljava/lang/String;)Lcom/google/common/hash/HashCode;
    • addResourcePack

      public void addResourcePack(UUID id, URL url, @Nullable @Nullable String hash)
      Mappings:
      Namespace Name Mixin selector
      named addResourcePack Lnet/minecraft/client/resource/server/ServerResourcePackLoader;addResourcePack(Ljava/util/UUID;Ljava/net/URL;Ljava/lang/String;)V
      intermediary method_55523 Lnet/minecraft/class_1066;method_55523(Ljava/util/UUID;Ljava/net/URL;Ljava/lang/String;)V
      official a Lgrq;a(Ljava/util/UUID;Ljava/net/URL;Ljava/lang/String;)V
    • addResourcePack

      public void addResourcePack(UUID id, Path path)
      Mappings:
      Namespace Name Mixin selector
      named addResourcePack Lnet/minecraft/client/resource/server/ServerResourcePackLoader;addResourcePack(Ljava/util/UUID;Ljava/nio/file/Path;)V
      intermediary method_55524 Lnet/minecraft/class_1066;method_55524(Ljava/util/UUID;Ljava/nio/file/Path;)V
      official a Lgrq;a(Ljava/util/UUID;Ljava/nio/file/Path;)V
    • remove

      public void remove(UUID id)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/client/resource/server/ServerResourcePackLoader;remove(Ljava/util/UUID;)V
      intermediary method_55520 Lnet/minecraft/class_1066;method_55520(Ljava/util/UUID;)V
      official a Lgrq;a(Ljava/util/UUID;)V
    • removeAll

      public void removeAll()
      Mappings:
      Namespace Name Mixin selector
      named removeAll Lnet/minecraft/client/resource/server/ServerResourcePackLoader;removeAll()V
      intermediary method_55537 Lnet/minecraft/class_1066;method_55537()V
      official e Lgrq;e()V
    • getStateChangeCallback

      private static PackStateChangeCallback getStateChangeCallback(ClientConnection connection)
      Mappings:
      Namespace Name Mixin selector
      named getStateChangeCallback Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getStateChangeCallback(Lnet/minecraft/network/ClientConnection;)Lnet/minecraft/client/resource/server/PackStateChangeCallback;
      intermediary method_55527 Lnet/minecraft/class_1066;method_55527(Lnet/minecraft/class_2535;)Lnet/minecraft/class_9039;
      official a Lgrq;a(Lwk;)Lgrs;
    • init

      public void init(ClientConnection connection, ServerResourcePackManager.AcceptanceStatus acceptanceStatus)
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/resource/server/ServerResourcePackLoader;init(Lnet/minecraft/network/ClientConnection;Lnet/minecraft/client/resource/server/ServerResourcePackManager$AcceptanceStatus;)V
      intermediary method_55528 Lnet/minecraft/class_1066;method_55528(Lnet/minecraft/class_2535;Lnet/minecraft/class_9044$class_9047;)V
      official a Lgrq;a(Lwk;Lgru$c;)V
    • initWorldPack

      public void initWorldPack()
      Mappings:
      Namespace Name Mixin selector
      named initWorldPack Lnet/minecraft/client/resource/server/ServerResourcePackLoader;initWorldPack()V
      intermediary method_55538 Lnet/minecraft/class_1066;method_55538()V
      official f Lgrq;f()V
    • acceptAll

      public void acceptAll()
      Mappings:
      Namespace Name Mixin selector
      named acceptAll Lnet/minecraft/client/resource/server/ServerResourcePackLoader;acceptAll()V
      intermediary method_55539 Lnet/minecraft/class_1066;method_55539()V
      official g Lgrq;g()V
    • declineAll

      public void declineAll()
      Mappings:
      Namespace Name Mixin selector
      named declineAll Lnet/minecraft/client/resource/server/ServerResourcePackLoader;declineAll()V
      intermediary method_55540 Lnet/minecraft/class_1066;method_55540()V
      official h Lgrq;h()V
    • getPackLoadFuture

      public CompletableFuture<Void> getPackLoadFuture(UUID id)
      Mappings:
      Namespace Name Mixin selector
      named getPackLoadFuture Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getPackLoadFuture(Ljava/util/UUID;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_55532 Lnet/minecraft/class_1066;method_55532(Ljava/util/UUID;)Ljava/util/concurrent/CompletableFuture;
      official b Lgrq;b(Ljava/util/UUID;)Ljava/util/concurrent/CompletableFuture;
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/client/resource/server/ServerResourcePackLoader;clear()V
      intermediary method_55541 Lnet/minecraft/class_1066;method_55541()V
      official i Lgrq;i()V
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException