-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.20.3-pre1 server resource pack (#3736)
- Loading branch information
Showing
22 changed files
with
323 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
mappings/net/minecraft/client/resource/ServerResourcePackProvider.mapping
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
mappings/net/minecraft/client/resource/server/DownloadQueuer.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CLASS net/minecraft/class_9038 net/minecraft/client/resource/server/DownloadQueuer | ||
METHOD method_55546 enqueue (Ljava/util/Map;Ljava/util/function/Consumer;)V | ||
ARG 1 entries | ||
ARG 2 callback |
5 changes: 5 additions & 0 deletions
5
mappings/net/minecraft/client/resource/server/PackStateChangeCallback.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CLASS net/minecraft/class_9039 net/minecraft/client/resource/server/PackStateChangeCallback | ||
METHOD sendResponse (Ljava/util/UUID;Lnet/minecraft/class_9039$class_9040;)V | ||
ARG 1 id | ||
ARG 2 state | ||
CLASS class_9040 State |
9 changes: 9 additions & 0 deletions
9
mappings/net/minecraft/client/resource/server/ReloadScheduler.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CLASS net/minecraft/class_9041 net/minecraft/client/resource/server/ReloadScheduler | ||
METHOD scheduleReload (Lnet/minecraft/class_9041$class_9042;)V | ||
ARG 1 context | ||
CLASS class_9042 ReloadContext | ||
METHOD method_55549 onSuccess ()V | ||
METHOD method_55550 onFailure (Z)V | ||
ARG 1 force | ||
METHOD method_55551 getPacks ()Ljava/util/List; | ||
CLASS class_9043 PackInfo |
93 changes: 93 additions & 0 deletions
93
mappings/net/minecraft/client/resource/server/ServerResourcePackLoader.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
CLASS net/minecraft/class_1066 net/minecraft/client/resource/server/ServerResourcePackLoader | ||
FIELD field_40562 SERVER_NAME_TEXT Lnet/minecraft/class_2561; | ||
FIELD field_47593 NOOP_PROVIDER Lnet/minecraft/class_3285; | ||
FIELD field_47594 DEBUG_PACK_STATE_CHANGE_CALLBACK Lnet/minecraft/class_9039; | ||
FIELD field_47595 client Lnet/minecraft/class_310; | ||
FIELD field_47596 packProvider Lnet/minecraft/class_3285; | ||
FIELD field_47597 reloadContext Lnet/minecraft/class_9041$class_9042; | ||
FIELD field_47598 manager Lnet/minecraft/class_9044; | ||
FIELD field_47599 downloader Lnet/minecraft/class_9028; | ||
FIELD field_47600 packSource Lnet/minecraft/class_5352; | ||
FIELD field_47601 packStateChangeCallback Lnet/minecraft/class_9039; | ||
FIELD field_5296 SHA1_PATTERN Ljava/util/regex/Pattern; | ||
FIELD field_5298 LOGGER Lorg/slf4j/Logger; | ||
METHOD <init> (Lnet/minecraft/class_310;Ljava/nio/file/Path;Lnet/minecraft/class_542$class_547;)V | ||
ARG 1 client | ||
ARG 2 downloadsDirectory | ||
ARG 3 runArgs | ||
METHOD method_55514 getPassthroughPackProvider ()Lnet/minecraft/class_3285; | ||
METHOD method_55515 createListener (I)Lnet/minecraft/class_3521$class_9034; | ||
ARG 1 entryCount | ||
METHOD method_55516 createDownloadQueuer (Lnet/minecraft/class_9028;Ljava/util/concurrent/Executor;Lnet/minecraft/class_320;Ljava/net/Proxy;)Lnet/minecraft/class_9038; | ||
ARG 1 downloader | ||
ARG 2 executor | ||
ARG 3 session | ||
ARG 4 proxy | ||
METHOD method_55517 reload (Lnet/minecraft/class_9041$class_9042;)V | ||
ARG 1 context | ||
METHOD method_55518 toHashCode (Ljava/lang/String;)Lcom/google/common/hash/HashCode; | ||
ARG 0 hash | ||
METHOD method_55519 toProfiles (Ljava/util/List;)Ljava/util/List; | ||
ARG 1 packs | ||
METHOD method_55520 remove (Ljava/util/UUID;)V | ||
ARG 1 id | ||
METHOD method_55521 (Ljava/util/UUID;Lnet/minecraft/class_9039$class_9040;)V | ||
ARG 1 id | ||
ARG 2 state | ||
METHOD method_55522 (Ljava/util/UUID;Lnet/minecraft/class_9039;Ljava/util/concurrent/CompletableFuture;Ljava/util/UUID;Lnet/minecraft/class_9039$class_9040;)V | ||
ARG 4 id | ||
ARG 5 state | ||
METHOD method_55523 addResourcePack (Ljava/util/UUID;Ljava/net/URL;Ljava/lang/String;)V | ||
ARG 1 id | ||
ARG 2 url | ||
ARG 3 hash | ||
METHOD method_55524 addResourcePack (Ljava/util/UUID;Ljava/nio/file/Path;)V | ||
ARG 1 id | ||
ARG 2 path | ||
METHOD method_55525 createPackChangeCallback (Ljava/util/concurrent/Executor;)Ljava/lang/Runnable; | ||
ARG 1 executor | ||
METHOD method_55526 (Ljava/util/function/Consumer;)V | ||
ARG 1 packAdder | ||
METHOD method_55527 getStateChangeCallback (Lnet/minecraft/class_2535;)Lnet/minecraft/class_9039; | ||
ARG 0 connection | ||
METHOD method_55528 init (Lnet/minecraft/class_2535;Lnet/minecraft/class_9044$class_9047;)V | ||
ARG 1 connection | ||
ARG 2 acceptanceStatus | ||
METHOD method_55529 (Lnet/minecraft/class_2535;Ljava/util/UUID;Lnet/minecraft/class_9039$class_9040;)V | ||
ARG 1 id | ||
ARG 2 state | ||
METHOD method_55530 onReloadFailure ()V | ||
METHOD method_55531 getPackProvider (Ljava/util/List;)Lnet/minecraft/class_3285; | ||
ARG 0 serverPacks | ||
METHOD method_55532 getPackLoadFuture (Ljava/util/UUID;)Ljava/util/concurrent/CompletableFuture; | ||
ARG 1 expectedId | ||
METHOD method_55533 (Ljava/util/UUID;Lnet/minecraft/class_9039$class_9040;)V | ||
ARG 0 id | ||
ARG 1 state | ||
METHOD method_55534 (Ljava/util/function/Consumer;)V | ||
ARG 0 profileAdder | ||
METHOD method_55535 onForcedReloadFailure ()V | ||
METHOD method_55536 onReloadSuccess ()V | ||
METHOD method_55537 removeAll ()V | ||
METHOD method_55538 initWorldPack ()V | ||
METHOD method_55539 acceptAll ()V | ||
METHOD method_55540 declineAll ()V | ||
METHOD method_55541 clear ()V | ||
METHOD method_55542 getReloadScheduler ()Lnet/minecraft/class_9041; | ||
CLASS 1 | ||
FIELD field_47604 toastType Lnet/minecraft/class_370$class_9037; | ||
FIELD field_47605 toastTitle Lnet/minecraft/class_2561; | ||
FIELD field_47606 toastDescription Lnet/minecraft/class_2561; | ||
FIELD field_47607 current I | ||
FIELD field_47608 contentLength Ljava/util/OptionalLong; | ||
METHOD method_55543 showProgress (J)V | ||
ARG 1 writtenBytes | ||
METHOD method_55544 showToast ()V | ||
CLASS 2 | ||
FIELD field_47614 MAX_BYTES I | ||
FIELD field_47615 SHA1 Lcom/google/common/hash/HashFunction; | ||
METHOD method_55545 getHeaders ()Ljava/util/Map; | ||
CLASS 3 | ||
FIELD field_47618 currentlyRunning Z | ||
FIELD field_47619 shouldKeepRunning Z | ||
METHOD method_55547 runOnExecutor ()V |
73 changes: 73 additions & 0 deletions
73
mappings/net/minecraft/client/resource/server/ServerResourcePackManager.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
CLASS net/minecraft/class_9044 net/minecraft/client/resource/server/ServerResourcePackManager | ||
FIELD field_47629 queuer Lnet/minecraft/class_9038; | ||
FIELD field_47630 stateChangeCallback Lnet/minecraft/class_9039; | ||
FIELD field_47631 reloadScheduler Lnet/minecraft/class_9041; | ||
FIELD field_47632 packChangeCallback Ljava/lang/Runnable; | ||
FIELD field_47633 acceptanceStatus Lnet/minecraft/class_9044$class_9047; | ||
FIELD field_47634 packs Ljava/util/List; | ||
METHOD <init> (Lnet/minecraft/class_9038;Lnet/minecraft/class_9039;Lnet/minecraft/class_9041;Ljava/lang/Runnable;Lnet/minecraft/class_9044$class_9047;)V | ||
ARG 1 queuer | ||
ARG 2 stateChangeCallback | ||
ARG 3 reloadScheduler | ||
ARG 4 packChangeCallback | ||
ARG 5 acceptanceStatus | ||
METHOD method_55552 removeAll ()V | ||
METHOD method_55553 accept (Lnet/minecraft/class_9044$class_9049;)V | ||
ARG 1 pack | ||
METHOD method_55554 onDownload (Ljava/util/Collection;Lnet/minecraft/class_9028$class_9030;)V | ||
ARG 1 packs | ||
ARG 2 result | ||
METHOD method_55555 (Ljava/util/List;Lnet/minecraft/class_9028$class_9030;)V | ||
ARG 2 result | ||
METHOD method_55556 remove (Ljava/util/UUID;)V | ||
ARG 1 id | ||
METHOD method_55557 onAdd (Ljava/util/UUID;Lnet/minecraft/class_9044$class_9049;)V | ||
ARG 1 id | ||
ARG 2 pack | ||
METHOD method_55558 addResourcePack (Ljava/util/UUID;Ljava/net/URL;Lcom/google/common/hash/HashCode;)V | ||
ARG 1 id | ||
ARG 2 url | ||
ARG 3 hashCode | ||
METHOD method_55559 addResourcePack (Ljava/util/UUID;Ljava/nio/file/Path;)V | ||
ARG 1 id | ||
ARG 2 path | ||
METHOD method_55560 acceptAll ()V | ||
METHOD method_55561 (Lnet/minecraft/class_9044$class_9049;)Z | ||
ARG 1 pack | ||
METHOD method_55562 markReplaced (Ljava/util/UUID;)V | ||
ARG 1 id | ||
METHOD method_55563 declineAll ()V | ||
METHOD method_55564 get (Ljava/util/UUID;)Lnet/minecraft/class_9044$class_9049; | ||
ARG 1 id | ||
METHOD method_55565 resetAcceptanceStatus ()V | ||
METHOD method_55566 update ()V | ||
METHOD method_55567 onPackChanged ()V | ||
METHOD method_55568 removeInactivePacks ()V | ||
METHOD method_55569 enqueueDownloads ()Z | ||
METHOD method_55570 applyDownloadedPacks ()V | ||
CLASS 1 | ||
METHOD method_55571 (Lnet/minecraft/class_9044$class_9049;)Lnet/minecraft/class_9041$class_9043; | ||
ARG 0 pack | ||
CLASS class_9045 Status | ||
CLASS class_9046 LoadStatus | ||
CLASS class_9047 AcceptanceStatus | ||
CLASS class_9048 DiscardReason | ||
FIELD field_47657 state Lnet/minecraft/class_9039$class_9040; | ||
METHOD <init> (Ljava/lang/String;ILnet/minecraft/class_9039$class_9040;)V | ||
ARG 3 state | ||
CLASS class_9049 PackEntry | ||
FIELD field_47659 id Ljava/util/UUID; | ||
FIELD field_47660 url Ljava/net/URL; | ||
FIELD field_47661 hashCode Lcom/google/common/hash/HashCode; | ||
FIELD field_47662 path Ljava/nio/file/Path; | ||
FIELD field_47663 discardReason Lnet/minecraft/class_9044$class_9048; | ||
FIELD field_47664 loadStatus Lnet/minecraft/class_9044$class_9046; | ||
FIELD field_47665 status Lnet/minecraft/class_9044$class_9045; | ||
FIELD field_47666 accepted Z | ||
METHOD <init> (Ljava/util/UUID;Ljava/net/URL;Lcom/google/common/hash/HashCode;)V | ||
ARG 1 id | ||
ARG 2 url | ||
ARG 3 hashCode | ||
METHOD method_55576 isDiscarded ()Z | ||
METHOD method_55577 discard (Lnet/minecraft/class_9044$class_9048;)V | ||
ARG 1 reason |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
mappings/net/minecraft/network/packet/s2c/common/ResourcePackRemoveS2CPacket.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CLASS net/minecraft/class_9053 net/minecraft/network/packet/s2c/common/ResourcePackRemoveS2CPacket | ||
METHOD <init> (Lnet/minecraft/class_2540;)V | ||
ARG 1 buf |
8 changes: 0 additions & 8 deletions
8
mappings/net/minecraft/network/packet/s2c/common/ResourcePackSendS2CPacket.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
CLASS net/minecraft/class_2720 net/minecraft/network/packet/s2c/common/ResourcePackSendS2CPacket | ||
FIELD comp_2159 url Ljava/lang/String; | ||
FIELD comp_2160 hash Ljava/lang/String; | ||
FIELD comp_2161 required Z | ||
FIELD comp_2162 prompt Lnet/minecraft/class_2561; | ||
FIELD field_33340 MAX_HASH_LENGTH I | ||
METHOD <init> (Lnet/minecraft/class_2540;)V | ||
ARG 1 buf | ||
METHOD comp_2159 url ()Ljava/lang/String; | ||
METHOD comp_2160 hash ()Ljava/lang/String; | ||
METHOD comp_2161 required ()Z | ||
METHOD comp_2162 prompt ()Lnet/minecraft/class_2561; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
mappings/net/minecraft/server/command/ServerPackCommand.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
CLASS net/minecraft/class_9027 net/minecraft/server/command/ServerPackCommand | ||
METHOD method_55474 register (Lcom/mojang/brigadier/CommandDispatcher;)V | ||
ARG 0 dispatcher | ||
METHOD method_55475 (Lcom/mojang/brigadier/context/CommandContext;)I | ||
ARG 0 context | ||
METHOD method_55476 (Lnet/minecraft/class_2168;)Z | ||
ARG 0 source | ||
METHOD method_55477 executePush (Lnet/minecraft/class_2168;Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;)I | ||
ARG 0 source | ||
ARG 1 url | ||
ARG 2 uuid | ||
ARG 3 hash | ||
METHOD method_55478 executePop (Lnet/minecraft/class_2168;Ljava/util/UUID;)I | ||
ARG 0 source | ||
ARG 1 uuid | ||
METHOD method_55479 sendToAll (Lnet/minecraft/class_2168;Lnet/minecraft/class_2596;)V | ||
ARG 0 source | ||
ARG 1 packet | ||
METHOD method_55481 (Lnet/minecraft/class_2596;Lnet/minecraft/class_2535;)V | ||
ARG 1 connection | ||
METHOD method_55482 (Lcom/mojang/brigadier/context/CommandContext;)I | ||
ARG 0 context | ||
METHOD method_55483 (Lcom/mojang/brigadier/context/CommandContext;)I | ||
ARG 0 context | ||
METHOD method_55484 (Lcom/mojang/brigadier/context/CommandContext;)I | ||
ARG 0 context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
CLASS net/minecraft/class_9028 net/minecraft/util/Downloader | ||
FIELD field_47572 LOGGER Lorg/slf4j/Logger; | ||
FIELD field_47573 directory Ljava/nio/file/Path; | ||
FIELD field_47574 logWriter Lnet/minecraft/class_7935; | ||
FIELD field_47575 executor Lnet/minecraft/class_3846; | ||
METHOD <init> (Ljava/nio/file/Path;)V | ||
ARG 1 directory | ||
METHOD method_55485 (Lnet/minecraft/class_9028$class_9029;Lnet/minecraft/class_9028$class_9030;Ljava/util/UUID;Lnet/minecraft/class_9028$class_9031;)V | ||
ARG 3 id | ||
ARG 4 entry | ||
METHOD method_55486 downloadAsync (Lnet/minecraft/class_9028$class_9029;Ljava/util/Map;)Ljava/util/concurrent/CompletableFuture; | ||
ARG 1 config | ||
ARG 2 entries | ||
METHOD method_55487 getFileInfo (Ljava/nio/file/Path;)Lcom/mojang/datafixers/util/Either; | ||
ARG 1 path | ||
METHOD method_55488 download (Lnet/minecraft/class_9028$class_9029;Ljava/util/Map;)Lnet/minecraft/class_9028$class_9030; | ||
ARG 1 config | ||
ARG 2 entries | ||
CLASS class_9029 Config | ||
CLASS class_9030 DownloadResult | ||
CLASS class_9031 DownloadEntry | ||
CLASS class_9032 FileInfo | ||
FIELD field_47576 CODEC Lcom/mojang/serialization/Codec; | ||
METHOD method_55490 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App; | ||
ARG 0 instance | ||
CLASS class_9033 LogEntry | ||
FIELD field_47577 CODEC Lcom/mojang/serialization/Codec; | ||
METHOD method_55491 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App; | ||
ARG 0 instance |
Oops, something went wrong.