Class ServerResourcePackLoader
java.lang.Object
net.minecraft.client.resource.server.ServerResourcePackLoader
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name official ghc
intermediary net/minecraft/class_1066
named net/minecraft/client/resource/server/ServerResourcePackLoader
-
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 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 official a
Lghc;a:Lvf;
intermediary field_40562
Lnet/minecraft/class_1066;field_40562:Lnet/minecraft/class_2561;
named SERVER_NAME_TEXT
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;SERVER_NAME_TEXT:Lnet/minecraft/text/Text;
-
SHA1_PATTERN
- Mappings:
Namespace Name Mixin selector official b
Lghc;b:Ljava/util/regex/Pattern;
intermediary field_5296
Lnet/minecraft/class_1066;field_5296:Ljava/util/regex/Pattern;
named SHA1_PATTERN
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;SHA1_PATTERN:Ljava/util/regex/Pattern;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Lghc;c:Lorg/slf4j/Logger;
intermediary field_5298
Lnet/minecraft/class_1066;field_5298:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;LOGGER:Lorg/slf4j/Logger;
-
NOOP_PROVIDER
- Mappings:
Namespace Name Mixin selector official d
Lghc;d:Lapv;
intermediary field_47593
Lnet/minecraft/class_1066;field_47593:Lnet/minecraft/class_3285;
named NOOP_PROVIDER
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;NOOP_PROVIDER:Lnet/minecraft/resource/ResourcePackProvider;
-
DEBUG_PACK_STATE_CHANGE_CALLBACK
- Mappings:
Namespace Name Mixin selector official e
Lghc;e:Lghe;
intermediary field_47594
Lnet/minecraft/class_1066;field_47594:Lnet/minecraft/class_9039;
named DEBUG_PACK_STATE_CHANGE_CALLBACK
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;DEBUG_PACK_STATE_CHANGE_CALLBACK:Lnet/minecraft/client/resource/server/PackStateChangeCallback;
-
client
- Mappings:
Namespace Name Mixin selector official f
Lghc;f:Levi;
intermediary field_47595
Lnet/minecraft/class_1066;field_47595:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;client:Lnet/minecraft/client/MinecraftClient;
-
packProvider
- Mappings:
Namespace Name Mixin selector official g
Lghc;g:Lapv;
intermediary field_47596
Lnet/minecraft/class_1066;field_47596:Lnet/minecraft/class_3285;
named packProvider
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;packProvider:Lnet/minecraft/resource/ResourcePackProvider;
-
reloadContext
- Mappings:
Namespace Name Mixin selector official h
Lghc;h:Lghf$a;
intermediary field_47597
Lnet/minecraft/class_1066;field_47597:Lnet/minecraft/class_9041$class_9042;
named reloadContext
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;reloadContext:Lnet/minecraft/client/resource/server/ReloadScheduler$ReloadContext;
-
manager
- Mappings:
Namespace Name Mixin selector official i
Lghc;i:Lghg;
intermediary field_47598
Lnet/minecraft/class_1066;field_47598:Lnet/minecraft/class_9044;
named manager
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;manager:Lnet/minecraft/client/resource/server/ServerResourcePackManager;
-
downloader
- Mappings:
Namespace Name Mixin selector official j
Lghc;j:Laos;
intermediary field_47599
Lnet/minecraft/class_1066;field_47599:Lnet/minecraft/class_9028;
named downloader
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;downloader:Lnet/minecraft/util/Downloader;
-
packSource
- Mappings:
Namespace Name Mixin selector official k
Lghc;k:Lapu;
intermediary field_47600
Lnet/minecraft/class_1066;field_47600:Lnet/minecraft/class_5352;
named packSource
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;packSource:Lnet/minecraft/resource/ResourcePackSource;
-
packStateChangeCallback
PackStateChangeCallback packStateChangeCallback- Mappings:
Namespace Name Mixin selector official l
Lghc;l:Lghe;
intermediary field_47601
Lnet/minecraft/class_1066;field_47601:Lnet/minecraft/class_9039;
named packStateChangeCallback
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;packStateChangeCallback:Lnet/minecraft/client/resource/server/PackStateChangeCallback;
-
packIndex
private int packIndex- Mappings:
Namespace Name Mixin selector official m
Lghc;m:I
intermediary field_47690
Lnet/minecraft/class_1066;field_47690:I
named packIndex
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;packIndex:I
-
-
Constructor Details
-
ServerResourcePackLoader
public ServerResourcePackLoader(MinecraftClient client, Path downloadsDirectory, RunArgs.Network runArgs) - Mappings:
Namespace Name Mixin selector official <init>
Lghc;<init>(Levi;Ljava/nio/file/Path;Lfip$d;)V
intermediary <init>
Lnet/minecraft/class_1066;<init>(Lnet/minecraft/class_310;Ljava/nio/file/Path;Lnet/minecraft/class_542$class_547;)V
named <init>
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;<init>(Lnet/minecraft/client/MinecraftClient;Ljava/nio/file/Path;Lnet/minecraft/client/RunArgs$Network;)V
-
-
Method Details
-
createListener
- Mappings:
Namespace Name Mixin selector official a
Lghc;a(I)Lauf$a;
intermediary method_55515
Lnet/minecraft/class_1066;method_55515(I)Lnet/minecraft/class_3521$class_9034;
named createListener
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;createListener(I)Lnet/minecraft/util/NetworkUtils$DownloadListener;
-
createDownloadQueuer
private DownloadQueuer createDownloadQueuer(Downloader downloader, Executor executor, Session session, Proxy proxy) - Mappings:
Namespace Name Mixin selector official a
Lghc;a(Laos;Ljava/util/concurrent/Executor;Levx;Ljava/net/Proxy;)Lghd;
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;
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;
-
createPackChangeCallback
- Mappings:
Namespace Name Mixin selector official a
Lghc;a(Ljava/util/concurrent/Executor;)Ljava/lang/Runnable;
intermediary method_55525
Lnet/minecraft/class_1066;method_55525(Ljava/util/concurrent/Executor;)Ljava/lang/Runnable;
named createPackChangeCallback
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;createPackChangeCallback(Ljava/util/concurrent/Executor;)Ljava/lang/Runnable;
-
getReloadScheduler
- Mappings:
Namespace Name Mixin selector official j
Lghc;j()Lghf;
intermediary method_55542
Lnet/minecraft/class_1066;method_55542()Lnet/minecraft/class_9041;
named getReloadScheduler
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getReloadScheduler()Lnet/minecraft/client/resource/server/ReloadScheduler;
-
toProfiles
@Nullable private @Nullable List<ResourcePackProfile> toProfiles(List<ReloadScheduler.PackInfo> packs) - Mappings:
Namespace Name Mixin selector official a
Lghc;a(Ljava/util/List;)Ljava/util/List;
intermediary method_55519
Lnet/minecraft/class_1066;method_55519(Ljava/util/List;)Ljava/util/List;
named toProfiles
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;toProfiles(Ljava/util/List;)Ljava/util/List;
-
getPassthroughPackProvider
- Mappings:
Namespace Name Mixin selector official a
Lghc;a()Lapv;
intermediary method_55514
Lnet/minecraft/class_1066;method_55514()Lnet/minecraft/class_3285;
named getPassthroughPackProvider
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getPassthroughPackProvider()Lnet/minecraft/resource/ResourcePackProvider;
-
getPackProvider
- Mappings:
Namespace Name Mixin selector official b
Lghc;b(Ljava/util/List;)Lapv;
intermediary method_55531
Lnet/minecraft/class_1066;method_55531(Ljava/util/List;)Lnet/minecraft/class_3285;
named getPackProvider
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getPackProvider(Ljava/util/List;)Lnet/minecraft/resource/ResourcePackProvider;
-
reload
- Mappings:
Namespace Name Mixin selector official a
Lghc;a(Lghf$a;)V
intermediary method_55517
Lnet/minecraft/class_1066;method_55517(Lnet/minecraft/class_9041$class_9042;)V
named reload
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;reload(Lnet/minecraft/client/resource/server/ReloadScheduler$ReloadContext;)V
-
onReloadFailure
public void onReloadFailure()- Mappings:
Namespace Name Mixin selector official b
Lghc;b()V
intermediary method_55530
Lnet/minecraft/class_1066;method_55530()V
named onReloadFailure
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;onReloadFailure()V
-
onForcedReloadFailure
public void onForcedReloadFailure()- Mappings:
Namespace Name Mixin selector official c
Lghc;c()V
intermediary method_55535
Lnet/minecraft/class_1066;method_55535()V
named onForcedReloadFailure
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;onForcedReloadFailure()V
-
onReloadSuccess
public void onReloadSuccess()- Mappings:
Namespace Name Mixin selector official d
Lghc;d()V
intermediary method_55536
Lnet/minecraft/class_1066;method_55536()V
named onReloadSuccess
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;onReloadSuccess()V
-
toHashCode
- Mappings:
Namespace Name Mixin selector official a
Lghc;a(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;
named toHashCode
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;toHashCode(Ljava/lang/String;)Lcom/google/common/hash/HashCode;
-
addResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lghc;a(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
named addResourcePack
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;addResourcePack(Ljava/util/UUID;Ljava/net/URL;Ljava/lang/String;)V
-
addResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lghc;a(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
named addResourcePack
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;addResourcePack(Ljava/util/UUID;Ljava/nio/file/Path;)V
-
remove
- Mappings:
Namespace Name Mixin selector official a
Lghc;a(Ljava/util/UUID;)V
intermediary method_55520
Lnet/minecraft/class_1066;method_55520(Ljava/util/UUID;)V
named remove
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;remove(Ljava/util/UUID;)V
-
removeAll
public void removeAll()- Mappings:
Namespace Name Mixin selector official e
Lghc;e()V
intermediary method_55537
Lnet/minecraft/class_1066;method_55537()V
named removeAll
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;removeAll()V
-
getStateChangeCallback
- Mappings:
Namespace Name Mixin selector official a
Lghc;a(Lug;)Lghe;
intermediary method_55527
Lnet/minecraft/class_1066;method_55527(Lnet/minecraft/class_2535;)Lnet/minecraft/class_9039;
named getStateChangeCallback
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getStateChangeCallback(Lnet/minecraft/network/ClientConnection;)Lnet/minecraft/client/resource/server/PackStateChangeCallback;
-
init
public void init(ClientConnection connection, ServerResourcePackManager.AcceptanceStatus acceptanceStatus) - Mappings:
Namespace Name Mixin selector official a
Lghc;a(Lug;Lghg$c;)V
intermediary method_55528
Lnet/minecraft/class_1066;method_55528(Lnet/minecraft/class_2535;Lnet/minecraft/class_9044$class_9047;)V
named init
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;init(Lnet/minecraft/network/ClientConnection;Lnet/minecraft/client/resource/server/ServerResourcePackManager$AcceptanceStatus;)V
-
initWorldPack
public void initWorldPack()- Mappings:
Namespace Name Mixin selector official f
Lghc;f()V
intermediary method_55538
Lnet/minecraft/class_1066;method_55538()V
named initWorldPack
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;initWorldPack()V
-
acceptAll
public void acceptAll()- Mappings:
Namespace Name Mixin selector official g
Lghc;g()V
intermediary method_55539
Lnet/minecraft/class_1066;method_55539()V
named acceptAll
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;acceptAll()V
-
declineAll
public void declineAll()- Mappings:
Namespace Name Mixin selector official h
Lghc;h()V
intermediary method_55540
Lnet/minecraft/class_1066;method_55540()V
named declineAll
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;declineAll()V
-
getPackLoadFuture
- Mappings:
Namespace Name Mixin selector official b
Lghc;b(Ljava/util/UUID;)Ljava/util/concurrent/CompletableFuture;
intermediary method_55532
Lnet/minecraft/class_1066;method_55532(Ljava/util/UUID;)Ljava/util/concurrent/CompletableFuture;
named getPackLoadFuture
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;getPackLoadFuture(Ljava/util/UUID;)Ljava/util/concurrent/CompletableFuture;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official i
Lghc;i()V
intermediary method_55541
Lnet/minecraft/class_1066;method_55541()V
named clear
Lnet/minecraft/client/resource/server/ServerResourcePackLoader;clear()V
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-