Package net.minecraft.network
Interface PacketListener
- All Known Subinterfaces:
ClientboundPacketListener
,ClientCommonPacketListener
,ClientConfigurationPacketListener
,ClientGamePacketListener
,ClientLoginPacketListener
,ClientPongPacketListener
,ClientStatusPacketListener
,ServerboundPacketListener
,ServerCommonPacketListener
,ServerConfigurationPacketListener
,ServerGamePacketListener
,ServerHandshakePacketListener
,ServerLoginPacketListener
,ServerPacketListener
,ServerPingPacketListener
,ServerStatusPacketListener
,TickablePacketListener
- All Known Implementing Classes:
ClientCommonPacketListenerImpl
,ClientConfigurationPacketListenerImpl
,ClientHandshakePacketListenerImpl
,ClientPacketListener
,MemoryServerHandshakePacketListenerImpl
,ServerCommonPacketListenerImpl
,ServerConfigurationPacketListenerImpl
,ServerGamePacketListenerImpl
,ServerHandshakePacketListenerImpl
,ServerLoginPacketListenerImpl
,ServerStatusPacketListenerImpl
public interface PacketListener
-
Method Summary
Modifier and TypeMethodDescriptionflow()
boolean
void
onDisconnect
(Component p_130552_) protocol()
default boolean
shouldHandleMessage
(Packet<?> p_299735_) default boolean
-
Method Details
-
flow
PacketFlow flow() -
protocol
ConnectionProtocol protocol() -
onDisconnect
-
isAcceptingMessages
boolean isAcceptingMessages() -
shouldHandleMessage
-
shouldPropagateHandlingExceptions
default boolean shouldPropagateHandlingExceptions()
-