接口 IClientCommonPacketListenerExtension
- 所有超级接口:
ICommonPacketListener
,PacketListener
Extension interface for
ClientCommonPacketListener
-
方法概要
修饰符和类型方法说明default void
disconnect
(Component reason) Triggers a disconnection with the given reason.default void
send
(CustomPacketPayload payload) Sends a payload to the target of this listener.从接口继承的方法 net.neoforged.neoforge.common.extensions.ICommonPacketListener
getConnection, getConnectionType, getMainThreadEventLoop, hasChannel, hasChannel, hasChannel, send
从接口继承的方法 net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, flow, isAcceptingMessages, onDisconnect, onPacketError, protocol, shouldHandleMessage
-
方法详细资料
-
send
Sends a payload to the target of this listener.- 指定者:
send
在接口中ICommonPacketListener
-
disconnect
Triggers a disconnection with the given reason.- 指定者:
disconnect
在接口中ICommonPacketListener
- 参数:
reason
- The reason for the disconnection
-