Package net.minecraft.network
Interface PacketListener
- All Known Subinterfaces:
ClientboundPacketListener
,ClientCommonPacketListener
,ClientConfigurationPacketListener
,ClientCookiePacketListener
,ClientGamePacketListener
,ClientLoginPacketListener
,ClientPongPacketListener
,ClientStatusPacketListener
,ServerboundPacketListener
,ServerCommonPacketListener
,ServerConfigurationPacketListener
,ServerCookiePacketListener
,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 TypeMethodDescriptiondefault void
fillCrashReport
(CrashReport p_311292_) default void
flow()
boolean
void
onDisconnect
(Component p_130552_) default void
onPacketError
(Packet p_330857_, Exception p_328275_) protocol()
default boolean
shouldHandleMessage
(Packet<?> p_299735_)
-
Method Details
-
flow
PacketFlow flow() -
protocol
ConnectionProtocol protocol() -
onDisconnect
-
onPacketError
- Throws:
ReportedException
-
isAcceptingMessages
boolean isAcceptingMessages() -
shouldHandleMessage
-
fillCrashReport
-
fillListenerSpecificCrashDetails
-