Class ServerResourcePackLoader
java.lang.Object
net.minecraft.client.resource.server.ServerResourcePackLoader
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/resource/server/ServerResourcePackLoader
intermediary net/minecraft/class_1066
official gtc
-
Field Summary
Modifier and TypeFieldDescription(package private) final MinecraftClient
private static final PackStateChangeCallback
private final Downloader
(package private) static final Logger
(package private) final ServerResourcePackManager
private static final ResourcePackProvider
private int
private ResourcePackProvider
private ResourcePackSource
(package private) PackStateChangeCallback
private static final ResourcePackPosition
private ReloadScheduler.ReloadContext
private static final Text
private static final Pattern
-
Constructor Summary
ConstructorDescriptionServerResourcePackLoader
(MinecraftClient client, Path downloadsDirectory, RunArgs.Network runArgs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addResourcePack
(UUID id, URL url, @Nullable String hash) void
addResourcePack
(UUID id, Path path) void
clear()
void
close()
private DownloadQueuer
createDownloadQueuer
(Downloader downloader, Executor executor, Session session, Proxy proxy) (package private) NetworkUtils.DownloadListener
createListener
(int entryCount) private Runnable
createPackChangeCallback
(Executor executor) void
private static ResourcePackProvider
getPackProvider
(List<ResourcePackProfile> serverPacks) private ReloadScheduler
private static PackStateChangeCallback
getStateChangeCallback
(ClientConnection connection) void
init
(ClientConnection connection, ServerResourcePackManager.AcceptanceStatus acceptanceStatus) void
void
void
void
private void
reload
(ReloadScheduler.ReloadContext context) void
void
toHashCode
(@Nullable String hash) private @Nullable List
<ResourcePackProfile> toProfiles
(List<ReloadScheduler.PackInfo> packs)
-
Field Details
-
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
Lgtc;a:Lwz;
-
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
Lgtc;b:Ljava/util/regex/Pattern;
-
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
Lgtc;c:Lorg/slf4j/Logger;
-
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
Lgtc;d:Latr;
-
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
Lgtc;e:Lasr;
-
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
Lgtc;f:Lgte;
-
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
Lgtc;g:Lfgo;
-
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
Lgtc;h:Latr;
-
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
Lgtc;i:Lgtf$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
Lgtc;j:Lgtg;
-
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
Lgtc;k:Lasl;
-
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
Lgtc;l:Latq;
-
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
Lgtc;m:Lgte;
-
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
Lgtc;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>
Lgtc;<init>(Lfgo;Ljava/nio/file/Path;Lfua$d;)V
-
-
Method Details
-
createListener
- 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
Lgtc;a(I)Layf$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
Lgtc;a(Lasl;Ljava/util/concurrent/Executor;Lfhb;Ljava/net/Proxy;)Lgtd;
-
createPackChangeCallback
- 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
Lgtc;a(Ljava/util/concurrent/Executor;)Ljava/lang/Runnable;
-
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
Lgtc;j()Lgtf;
-
toProfiles
@Nullable private @Nullable List<ResourcePackProfile> toProfiles(List<ReloadScheduler.PackInfo> packs) - 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
Lgtc;a(Ljava/util/List;)Ljava/util/List;
-
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
Lgtc;a()Latr;
-
getPackProvider
- 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
Lgtc;b(Ljava/util/List;)Latr;
-
reload
- 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
Lgtc;a(Lgtf$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
Lgtc;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
Lgtc;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
Lgtc;d()V
-
toHashCode
- 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
Lgtc;a(Ljava/lang/String;)Lcom/google/common/hash/HashCode;
-
addResourcePack
- 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
Lgtc;a(Ljava/util/UUID;Ljava/net/URL;Ljava/lang/String;)V
-
addResourcePack
- 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
Lgtc;a(Ljava/util/UUID;Ljava/nio/file/Path;)V
-
remove
- 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
Lgtc;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
Lgtc;e()V
-
getStateChangeCallback
- 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
Lgtc;a(Lvt;)Lgte;
-
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
Lgtc;a(Lvt;Lgtg$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
Lgtc;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
Lgtc;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
Lgtc;h()V
-
getPackLoadFuture
- 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
Lgtc;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
Lgtc;i()V
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-