Play Serverbound

For more information on what these packets do, visit https://wiki.vg/index.php?title=Protocol&oldid=7368#Serverbound_2

C00PacketKeepAlive

TypeNameDescriptionSignature

field

key

Keep Alive ID

int

Instantiation:

new C00PacketKeepAlive(key);

C01PacketChatMessage

TypeNameDescriptionSignature

field

message

Message that was sent

string

Instantiation:

new C01PacketChatMessage(message);

C02PacketUseEntity

TypeNameDescriptionSignature

field

entityId

ID of the Entity used

int

field

action

Action that was performed, one of: interact, attack, interact_at

string

field

hitVec

Hit vector, only present if the action is interact_at

Vec3

Instantiation:

new C02PacketUseEntity(entity, hitVec);
new C02PacketUseEntity(entity, action);

C03PacketPlayer

TypeNameDescriptionSignature

field

x

Player's X position

double

field

y

Player's Y position

double

field

z

Player's Z position

double

field

yaw

Player's yaw rotation

float

field

pitch

Player's pitch rotation

float

field

onGround

Whether the player is on ground

boolean

field

moving

Whether the player's position is updated in this packet

boolean

field

rotating

Whether the player's rotation is updated in this packet

boolean

Instantiation:

new C03PacketPlayer(onGround);

C04PacketPlayerPosition

Inherits C03PacketPlayer. Instantiation:

new C04PacketPlayerPosition(xPos, yPos, zPos, onGround);

C05PacketPlayerLook

Inherits C03PacketPlayer. Instantiation:

new C05PacketPlayerLook(rotYaw, rotPitch, onGround);

C06PacketPlayerPosLook

Inherits C03PacketPlayer. Instantiation:

new C06PacketPlayerPosLook(xPos, yPos, zPos, rotYaw, rotPitch, onGround);

C07PacketPlayerDigging

TypeNameDescriptionSignature

field

facing

Block placement facing

EnumFacing

field

position

Block placement position

BlockPos

field

status

Digging Type, one of: start_destroy_block, abort_destroy_block, stop_destory_block, drop_all_items, drop_item, release_use_item

string

Instantiation:

new C07PacketPlayerDigging(status, position, facing);

C08PacketPlayerBlockPlacement

TypeNameDescriptionSignature

field

facingX

Block placement X facing

double

field

facingY

Block placement Y facing

double

field

facingZ

Block placement Z facing

double

field

placedBlockDIrection

Block placement direction

int

field

position

Block placement position

BlockPos

field

stack

Block ItemStack

ItemStack

Instantiation:

new C08PacketPlayerBlockPlacement(blockItemStack);
new C08PacketPlayerBlockPlacement(position, placedBlockDirection, blockItemStack, facingX, facingY, facingZ);

C09PacketHeldItemChange

TypeNameDescriptionSignature

field

slotId

Item slot ID

int

Instantiation:

new C09PacketHeldItemChange(slotId);

C0APacketAnimation

This Packet has no properties. Instantiation:

new C0APacketAnimation();

C0BPacketEntityAction

TypeNameDescriptionSignature

field

action

Entity Action, one of: start_sneaking, stop_sneaking, stop_sleeping, start_sprinting, stop_sprinting, riding_jump, open_inventory, start_fall_flying

string

field

entityID

Entity ID

int

field

auxData

Only used for Horse Jump, ranges from 0 to 100

int

Instantiation:

new C0BPacketEntityAction(entity /* Object Entity */, action);
new C0BPacketEntityAction(entity /* Object Entity */, action, auxData);

C0CPacketInput

TypeNameDescriptionSignature

field

forwardSpeed

Forward move speed

float

field

strafeSpeed

Strafe move speed

float

field

jumping

Whether the player is jumping

boolean

field

sneaking

Whether the player is sneaking

boolean

Instantiation:

new C0CPacketInput(strafeSpeed, forwardSpeed, jumping, sneaking);

C0DPacketCloseWindow

TypeNameDescriptionSignature

field

windowId

Closed window ID

int

Instantiation:

new C0DPacketCloseWindow(windowId);

C0EPacketClickWindow

TypeNameDescriptionSignature

field

clickedItem

Clicked Window Item

ItemStack

field

actionNumber

Number of action, used for transaction handling

int

field

slotId

Clicked Window Item's slot ID

int

field

mode

Inventory operation mode

int

field

usedButton

Used mouse button

int

field

windowId

ID of the Window

int

Instantiation:

new C0EPacketClickWindow(windowId, slotId, usedButton, mode, clickedItem, actionNumber);  

C0FPacketConfirmTransaction

TypeNameDescriptionSignature

field

accepted

Whether the request was accepted

boolean

field

uid

Unique number for the transaction

int

field

windowId

Window ID of the transaction

int

Instantiation:

new C0FPacketConfirmTransaction(windowId, uid, accepted);

C10PacketCreativeInventoryAction

TypeNameDescriptionSignature

field

slotId

Item slot ID

int

field

stack

Item Stack

ItemStack

Instantiation:

new C10PacketCreativeInventoryAction(slotId, stack);

C11PacketEnchantItem

TypeNameDescriptionSignature

field

windowId

Window ID of the enchantment table

int

field

button

Button that was pressed

int

Instantiation:

new C11PacketEnchantItem(windowId, button);

C12PacketUpdateSign

TypeNameDescriptionSignature

field

lines

Sign Lines

IChatComponent[]

field

pos

BlockPos of the Sign

BlockPos

Instantiation:

new C12PacketUpdateSign(lines, pos); 

C13PacketPlayerAbilities

TypeNameDescriptionSignature

field

allowFlying

Whether the player is allowed to fly

boolean

field

flying

Whether the player is flying

boolean

field

creativeMode

Whether the player is in creative mode

boolean

field

flySpeed

Player's flying speed

float

field

invulnerable

Whether the player is invulnerable

boolean

field

walkSpeed

Player's walking speed

float

Instantiation:

new C13PacketPlayerAbilities(flySpeed, walkSpeed, flying, allowFlying, creativeMode, invulnerable);

C14PacketTabComplete

TypeNameDescriptionSignature

field

message

Tab complete message

string

field

targetBlock

Tab complete block position

BlockPos

Instantiation:

new C14PacketTabComplete(message);
new C14PacketTabComplete(message, targetBlock);

C15PacketClientSettings

TypeNameDescriptionSignature

field

chatVisibility

Chat visibility mode, one of: full, system, hidden

string

field

enableColors

Whether the chat colors are enabled

boolean

field

lang

Game Language

string

field

modelPartFlags

Skin Layers flags

int

field

view

Render distance in chunks amount

int

Instantiation:

new C15PacketClientSettings(lang, view, chatVisibility, enableColors, modelPartFlags);

C16PacketClientStatus

TypeNameDescriptionSignature

field

status

Game state, one of: perform_respawn, request_stats, open_inventory_achievement

string

Instantiation:

new C16PacketClientStatus(status);

C17PacketCustomPayload

TypeNameDescriptionSignature

field

data

Byte Buffer of the data transmitted

PacketBuffer

field

channel

Payload Channel

string

Instantiation:

new C17PacketCustomPayload(channel, buffer);

C18PacketSpectate

TypeNameDescriptionSignature

field

id

UUID of the player being spectated

java.util.UUID

Instantiation:

new C18PacketSpectate(uuid);

C19PacketResourcePackStatus

TypeNameDescriptionSignature

field

hash

Hash of the resource pack file

string

field

status

Resource pack acceptance status, one of: successfully_loaded, declined, failed_download, accepted

string

Instantiation:

new C19PacketResourcePackStatus(hash, status);

Last updated