mirror of https://github.com/FabricMC/yarn.git
13 lines
695 B
Plaintext
13 lines
695 B
Plaintext
CLASS net/minecraft/class_7648 net/minecraft/network/PacketCallbacks
|
|
COMMENT A set of callbacks for sending a packet.
|
|
METHOD method_45083 onSuccess ()V
|
|
COMMENT Called when packet is sent successfully.
|
|
METHOD method_45084 always (Ljava/lang/Runnable;)Lnet/minecraft/class_7648;
|
|
COMMENT {@return a callback that always runs {@code runnable}}
|
|
ARG 0 runnable
|
|
METHOD method_45085 of (Ljava/util/function/Supplier;)Lnet/minecraft/class_7648;
|
|
COMMENT {@return a callback that sends {@code failurePacket} when failed}
|
|
ARG 0 failurePacket
|
|
METHOD method_45086 getFailurePacket ()Lnet/minecraft/class_2596;
|
|
COMMENT {@return the packet to send on failure, or {@code null} if there is none}
|