Package foundry.veil.api.network.handler
Interface ClientPacketContext
- All Superinterfaces:
PacketContext
Context for client-side packet handling.
-
Method Summary
Methods inherited from interface foundry.veil.api.network.handler.PacketContext
createPacket, disconnect, level, sendPacket, sendPacket, sendPacket, sendPacket
-
Method Details
-
client
net.minecraft.client.Minecraft client()- Returns:
- The Minecraft client instance
-
player
@Nullable @Nullable net.minecraft.client.player.LocalPlayer player()- Specified by:
player
in interfacePacketContext
- Returns:
- The player that received the payload
-