接口 IServerGamePacketListenerExtension
- 所有已知子接口:
ServerGamePacketListener
Extension class for
ServerGamePacketListener
-
方法概要
修饰符和类型方法说明private ServerGamePacketListener
self()
返回 the listener this extension is attached to。default void
sendBundled
(Iterable<CustomPacketPayload> payloads) Sends all given payloads as a bundle to the client.default void
sendBundled
(CustomPacketPayload... payloads) Sends all given payloads as a bundle to the client.从接口继承的方法 net.neoforged.neoforge.common.extensions.ICommonPacketListener
disconnect, getConnection, getConnectionType, getMainThreadEventLoop, hasChannel, hasChannel, hasChannel, send
从接口继承的方法 net.neoforged.neoforge.common.extensions.IServerCommonPacketListenerExtension
send, send, send
从接口继承的方法 net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, flow, isAcceptingMessages, onDisconnect, onPacketError, protocol, shouldHandleMessage
-
方法详细资料
-
self
返回 the listener this extension is attached to。- 返回:
- the listener this extension is attached to
-
sendBundled
Sends all given payloads as a bundle to the client.- 参数:
payloads
- the payloads to send
-
sendBundled
Sends all given payloads as a bundle to the client.- 参数:
payloads
- the payloads to send
-