22w24a misc stuff (#3217)

* 22w24a misc stuff

* Update mappings/net/minecraft/SharedConstants.mapping

* Forgot to commit this
This commit is contained in:
apple502j 2022-06-19 21:58:19 +09:00 committed by GitHub
parent cdd3db74fb
commit 48e25ce929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 46 additions and 3 deletions

View File

@ -30,6 +30,7 @@ CLASS net/minecraft/class_155 net/minecraft/SharedConstants
METHOD method_34872 setGameVersion (Lnet/minecraft/class_6489;)V
ARG 0 gameVersion
METHOD method_36208 createGameVersion ()V
METHOD method_43250 enableDataFixerOptimization ()V
METHOD method_643 isValidChar (C)Z
COMMENT {@return true if the character is not {@linkplain
COMMENT net.minecraft.util.Formatting#FORMATTING_CODE_PREFIX the formatting code

View File

@ -11,3 +11,6 @@ CLASS net/minecraft/client/main/Main
ARG 0 i
METHOD method_38752 toOptional (Ljava/lang/String;)Ljava/util/Optional;
ARG 0 string
METHOD method_44604 main ([Ljava/lang/String;Z)V
ARG 0 args
ARG 1 optimizeDataFixer

View File

@ -20,6 +20,8 @@ CLASS net/minecraft/class_1066 net/minecraft/client/resource/ClientBuiltinResour
ARG 2 index
METHOD method_16048 getProgrammerArtResourcePackFromZipFile (Ljava/io/File;)Lnet/minecraft/class_3262;
ARG 0 zipFile
METHOD method_19436 (Ljava/io/File;Lnet/minecraft/class_310;Ljava/lang/Throwable;)Ljava/util/concurrent/CompletionStage;
ARG 3 throwable
METHOD method_19437 delete (Ljava/io/File;)V
ARG 0 file
METHOD method_25453 getProgrammerArtResourcePackProfile (Lnet/minecraft/class_3288$class_5351;Ljava/util/function/Supplier;)Lnet/minecraft/class_3288;
@ -29,10 +31,16 @@ CLASS net/minecraft/class_1066 net/minecraft/client/resource/ClientBuiltinResour
ARG 1 factory
METHOD method_25455 getProgrammerArtResourcePackFromDirectory (Ljava/io/File;)Lnet/minecraft/class_3259;
ARG 0 packDirectory
METHOD method_36323 (Lnet/minecraft/class_310;Ljava/lang/Void;)V
ARG 1 void_
METHOD method_36324 (Lnet/minecraft/class_310;Z)V
ARG 1 confirmed
METHOD method_43339 loadServerPack (Lnet/minecraft/class_32$class_5143;)Ljava/util/concurrent/CompletableFuture;
ARG 1 session
METHOD method_44602 (Ljava/lang/Throwable;Ljava/io/File;Ljava/lang/Void;)V
ARG 2 void_
METHOD method_44603 (Ljava/lang/Void;)V
ARG 1 void_
METHOD method_4633 getPack ()Lnet/minecraft/class_3268;
METHOD method_4636 getDownloadHeaders ()Ljava/util/Map;
METHOD method_4638 loadServerPack (Ljava/io/File;Lnet/minecraft/class_5352;)Ljava/util/concurrent/CompletableFuture;

View File

@ -0,0 +1,17 @@
CLASS net/minecraft/class_7526 net/minecraft/client/util/ExponentialBackoff
COMMENT An implementation of an exponential backoff algorithm with the upper limit
COMMENT on delay. The implementation does not require a specific time unit (such as ticks,
COMMENT seconds, etc); the only requirement is that {@link #run} method is called
COMMENT periodically.
FIELD field_39487 LOGGER Lorg/slf4j/Logger;
FIELD field_39488 runner Lnet/minecraft/class_7526$class_7527;
FIELD field_39489 maxSkippableRuns I
FIELD field_39490 runsToSkip I
FIELD field_39491 skippedRuns I
METHOD <init> (Lnet/minecraft/class_7526$class_7527;I)V
ARG 1 runner
ARG 2 maxSkippableRuns
CLASS class_7527 Runner
COMMENT A runner for the exponential backoff. This can raise any exceptions, and
COMMENT such exceptions are caught and treated as failure for the purpose of
COMMENT exponential backoff.

View File

@ -74,6 +74,7 @@ CLASS net/minecraft/class_2556 net/minecraft/network/message/MessageType
COMMENT The registry key for the tellraw command message type, used by {@linkplain
COMMENT net.minecraft.server.command.TellRawCommand /tellraw}. This message type
COMMENT does not have a decoration.
FIELD field_39677 CHAT_TEXT_DECORATION Lnet/minecraft/class_7463;
METHOD method_43843 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App;
ARG 0 instance
METHOD method_43844 initialize (Lnet/minecraft/class_2378;)Lnet/minecraft/class_6880;

View File

@ -409,6 +409,7 @@ CLASS net/minecraft/server/MinecraftServer
METHOD method_43614 logChatMessage (Lnet/minecraft/class_7436;Lnet/minecraft/class_2561;Lnet/minecraft/class_5321;)V
ARG 1 sender
ARG 2 message
ARG 3 typeKey
METHOD method_43659 getResourcePackProperties ()Ljava/util/Optional;
METHOD method_43824 getHostProfile ()Lcom/mojang/authlib/GameProfile;
METHOD method_43825 setHostProfile (Lcom/mojang/authlib/GameProfile;)V
@ -419,6 +420,8 @@ CLASS net/minecraft/server/MinecraftServer
COMMENT
COMMENT @see MessageDecorator
METHOD method_44301 getServicesSignatureVerifier ()Lnet/minecraft/class_7500;
METHOD method_44605 (Lnet/minecraft/class_5321;Lnet/minecraft/class_2378;)Lnet/minecraft/class_2556;
ARG 1 registry
METHOD method_5387 isMainThread ()Z
CLASS class_6414 DebugStart
FIELD field_33980 time J

View File

@ -115,6 +115,7 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
METHOD method_31285 (Lnet/minecraft/class_2877;Ljava/util/List;)V
ARG 2 texts
METHOD method_31286 handleMessage (Lnet/minecraft/class_2797;Lnet/minecraft/class_5837;)V
ARG 1 packet
ARG 2 message
METHOD method_33562 requestTeleportAndDismount (DDDFF)V
ARG 1 x
@ -185,9 +186,9 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
COMMENT {@return whether {@code message}, sent at {@code timestamp}, should be accepted}
COMMENT
COMMENT @implNote This returns {@code false} if the message arrives in {@linkplain
COMMENT #isInProperOrder improper order} or if {@linkplain #checkChatDisabled chat is disabled}.
COMMENT This also logs a warning when the message is {@linkplain #isExpired expired}, but
COMMENT the message is still accepted in this case.
COMMENT #isInProperOrder improper order} or if chat is disabled. This also logs a warning
COMMENT when the message is {@linkplain #isExpired expired}, but the message is still
COMMENT accepted in this case.
ARG 1 message
ARG 2 timestamp
CLASS 1

View File

@ -321,3 +321,8 @@ CLASS net/minecraft/class_4516 net/minecraft/test/TestContext
ARG 1 type
ARG 2 pos
ARG 3 radius
METHOD method_44606 expectEntitiesAround (Lnet/minecraft/class_1299;Lnet/minecraft/class_2338;ID)V
ARG 1 type
ARG 2 pos
ARG 3 amount
ARG 4 radius

View File

@ -25,5 +25,9 @@ CLASS net/minecraft/class_5309 net/minecraft/world/gen/chunk/GenerationShapeConf
ARG 3 verticalSize
METHOD method_32995 checkHeight (Lnet/minecraft/class_5309;)Lcom/mojang/serialization/DataResult;
ARG 0 config
METHOD method_32996 (Lcom/mojang/serialization/DataResult$PartialResult;)V
ARG 0 result
METHOD method_39545 verticalBlockSize ()I
METHOD method_39546 horizontalBlockSize ()I
METHOD method_42368 trimHeight (Lnet/minecraft/class_5539;)Lnet/minecraft/class_5309;
ARG 1 world