getPlayer

abstract PlayerEntity getPlayer()

Get the player associated with the packet.

On the client side, this always returns the client-side player instance.On the server side, it returns the player belonging to the client thispacket was sent by.

Return

The player associated with the packet.

Sources

jvm source
Link copied to clipboard