Package net.minecraft.network
Interface PacketCallbacks
public interface PacketCallbacks
A set of callbacks for sending a packet.
- Mappings:
Namespace Name named net/minecraft/network/PacketCallbacks
intermediary net/minecraft/class_7648
official xc
-
Method Summary
Modifier and TypeMethodDescriptionstatic PacketCallbacks
Returns a callback that always runsrunnable
.Returns the packet to send on failure, ornull
if there is none.static PacketCallbacks
Returns a callback that sendsfailurePacket
when failed.default void
Called when packet is sent successfully.
-
Method Details
-
always
Returns a callback that always runsrunnable
.- Returns:
- a callback that always runs
runnable
- Mappings:
Namespace Name Mixin selector named always
Lnet/minecraft/network/PacketCallbacks;always(Ljava/lang/Runnable;)Lnet/minecraft/network/PacketCallbacks;
intermediary method_45084
Lnet/minecraft/class_7648;method_45084(Ljava/lang/Runnable;)Lnet/minecraft/class_7648;
official a
Lxc;a(Ljava/lang/Runnable;)Lxc;
-
of
Returns a callback that sendsfailurePacket
when failed.- Returns:
- a callback that sends
failurePacket
when failed - Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/network/PacketCallbacks;of(Ljava/util/function/Supplier;)Lnet/minecraft/network/PacketCallbacks;
intermediary method_45085
Lnet/minecraft/class_7648;method_45085(Ljava/util/function/Supplier;)Lnet/minecraft/class_7648;
official a
Lxc;a(Ljava/util/function/Supplier;)Lxc;
-
onSuccess
default void onSuccess()Called when packet is sent successfully.- Mappings:
Namespace Name Mixin selector named onSuccess
Lnet/minecraft/network/PacketCallbacks;onSuccess()V
intermediary method_45083
Lnet/minecraft/class_7648;method_45083()V
official a
Lxc;a()V
-
getFailurePacket
Returns the packet to send on failure, ornull
if there is none.- Returns:
- the packet to send on failure, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getFailurePacket
Lnet/minecraft/network/PacketCallbacks;getFailurePacket()Lnet/minecraft/network/packet/Packet;
intermediary method_45086
Lnet/minecraft/class_7648;method_45086()Lnet/minecraft/class_2596;
official b
Lxc;b()Laac;
-