Interface IServerGamePacketListenerExtension
- All Superinterfaces:
ICommonPacketListener,IServerCommonPacketListenerExtension,PacketListener
- All Known Subinterfaces:
ServerGamePacketListener
- All Known Implementing Classes:
FakePlayer.FakePlayerNetHandler,ServerGamePacketListenerImpl
Extension class for
ServerGamePacketListener-
Method Summary
Modifier and TypeMethodDescriptionprivate ServerGamePacketListenerself()Returns the listener this extension is attached to.default voidsendBundled(Iterable<CustomPacketPayload> payloads) Sends all given payloads as a bundle to the client.default voidsendBundled(CustomPacketPayload... payloads) Sends all given payloads as a bundle to the client.Methods inherited from interface net.neoforged.neoforge.common.extensions.ICommonPacketListener
disconnect, getConnection, getConnectionType, getMainThreadEventLoop, hasChannel, hasChannel, hasChannel, sendMethods inherited from interface net.neoforged.neoforge.common.extensions.IServerCommonPacketListenerExtension
send, send, sendMethods inherited from interface net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, flow, isAcceptingMessages, onDisconnect, onPacketError, protocol, shouldHandleMessage
-
Method Details
-
self
Returns the listener this extension is attached to.- Returns:
- the listener this extension is attached to
-
sendBundled
Sends all given payloads as a bundle to the client.- Parameters:
payloads- the payloads to send
-
sendBundled
Sends all given payloads as a bundle to the client.- Parameters:
payloads- the payloads to send
-