Package net.minecraft.network
Class PacketCallbacks
java.lang.Object
net.minecraft.network.PacketCallbacks
A set of callbacks for sending a packet.
- Mappings:
Namespace Name named net/minecraft/network/PacketCallbacks
intermediary net/minecraft/class_7648
official wt
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelFutureListener
Returns a callback that always runsrunnable
.static ChannelFutureListener
Returns a callback that sendsfailurePacket
when failed.
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/network/PacketCallbacks;LOGGER:Lorg/slf4j/Logger;
intermediary field_61040
Lnet/minecraft/class_7648;field_61040:Lorg/slf4j/Logger;
official a
Lwt;a:Lorg/slf4j/Logger;
-
-
Constructor Details
-
PacketCallbacks
public PacketCallbacks()
-
-
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;)Lio/netty/channel/ChannelFutureListener;
intermediary method_45084
Lnet/minecraft/class_7648;method_45084(Ljava/lang/Runnable;)Lio/netty/channel/ChannelFutureListener;
official a
Lwt;a(Ljava/lang/Runnable;)Lio/netty/channel/ChannelFutureListener;
-
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;)Lio/netty/channel/ChannelFutureListener;
intermediary method_45085
Lnet/minecraft/class_7648;method_45085(Ljava/util/function/Supplier;)Lio/netty/channel/ChannelFutureListener;
official a
Lwt;a(Ljava/util/function/Supplier;)Lio/netty/channel/ChannelFutureListener;
-