接口 IServerCommonPacketListenerExtension
- 所有超级接口:
ICommonPacketListener
,PacketListener
- 所有已知子接口:
IServerConfigurationPacketListenerExtension
,IServerGamePacketListenerExtension
,ServerCommonPacketListener
,ServerConfigurationPacketListener
,ServerGamePacketListener
- 所有已知实现类:
FakePlayer.FakePlayerNetHandler
,ServerCommonPacketListenerImpl
,ServerConfigurationPacketListenerImpl
,ServerGamePacketListenerImpl
Extension interface for
ServerCommonPacketListener
-
方法概要
修饰符和类型方法说明default void
send
(CustomPacketPayload payload) Sends a payload to the target of this listener.default void
send
(CustomPacketPayload payload, @Nullable io.netty.channel.ChannelFutureListener listener) Sends a payload to the client of this listener.void
Sends a packet to the client of this listener.从接口继承的方法 net.neoforged.neoforge.common.extensions.ICommonPacketListener
disconnect, 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
-
send
Sends a packet to the client of this listener.- 参数:
listener
- An optional callback for when the payload is sent
-
send
default void send(CustomPacketPayload payload, @Nullable @Nullable io.netty.channel.ChannelFutureListener listener) Sends a payload to the client of this listener.- 参数:
listener
- An optional callback for when the payload is sent
-