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/PacketCallbacksintermediary net/minecraft/class_7648official wt
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelFutureListenerReturns a callback that always runsrunnable.static ChannelFutureListenerReturns a callback that sendsfailurePacketwhen failed. 
- 
Field Details
- 
LOGGER
- Mappings:
 Namespace Name Mixin selector named LOGGERLnet/minecraft/network/PacketCallbacks;LOGGER:Lorg/slf4j/Logger;intermediary field_61040Lnet/minecraft/class_7648;field_61040:Lorg/slf4j/Logger;official aLwt;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 alwaysLnet/minecraft/network/PacketCallbacks;always(Ljava/lang/Runnable;)Lio/netty/channel/ChannelFutureListener;intermediary method_45084Lnet/minecraft/class_7648;method_45084(Ljava/lang/Runnable;)Lio/netty/channel/ChannelFutureListener;official aLwt;a(Ljava/lang/Runnable;)Lio/netty/channel/ChannelFutureListener;
 - 
of
Returns a callback that sendsfailurePacketwhen failed.- Returns:
 - a callback that sends 
failurePacketwhen failed - Mappings:
 Namespace Name Mixin selector named ofLnet/minecraft/network/PacketCallbacks;of(Ljava/util/function/Supplier;)Lio/netty/channel/ChannelFutureListener;intermediary method_45085Lnet/minecraft/class_7648;method_45085(Ljava/util/function/Supplier;)Lio/netty/channel/ChannelFutureListener;official aLwt;a(Ljava/util/function/Supplier;)Lio/netty/channel/ChannelFutureListener;
 
 -