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 DisconnectionDetails
createDisconnectionInfo
(Component p_342542_, Throwable p_342140_) default void
fillCrashReport
(CrashReport p_311292_) default void
fillListenerSpecificCrashDetails
(CrashReport p_343455_, CrashReportCategory p_310872_) flow()
boolean
void
onDisconnect
(DisconnectionDetails p_343684_) 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
-
createDisconnectionInfo
-
isAcceptingMessages
boolean isAcceptingMessages() -
shouldHandleMessage
-
fillCrashReport
-
fillListenerSpecificCrashDetails
-