Package de.ellpeck.rockbottom.api.net
Interface IPacketContext
public interface IPacketContext
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelHandlerContextRetrieves the channel context passed to the packet handler.
-
Method Details
-
getChannelContext
io.netty.channel.ChannelHandlerContext getChannelContext()Retrieves the channel context passed to the packet handler. -
getSender
AbstractPlayerEntity getSender()- Returns:
- The player on the server that has sent the packet
- Throws:
UnsupportedOperationException- on the client.
-