packets

Supported packets.

Cast a packet: PacketType variableName = (PacketType) packet;

This must be done to be able to access the data stored in the packet.

C0APacketAnimation

new C0A();

C0BPacketEntityAction

new C0B(String action, int horsePower);
C0B entityAction = (C0B) packet;
property
description
type

action

START_SNEAKING STOP_SNEAKING STOP_SLEEPING START_SPRINTING STOP_SPRINTING RIDING_JUMP OPEN_INVENTORY START_FALL_FLYING

String

horsePower

Horse jump power, 0-100

int

C0DPacketCloseWindow

new C0D(int windowId);
C0D closeWindow = (C0D) packet;
property
description
type

windowId

The ID of the window

int

C0EPacketClickWindow

new C0E(int windowId, int slot, int button, int mode, ItemStack itemStack);
C0E clickWindow = (C0E) packet;
property
description
type

windowId

window id

int

slot

inventory slot

int

button

button pressed

int

mode

button mode

int

itemStack

item stack

ItemStack

C0FPacketConfirmTransaction

new C0F(int windowId, short uid);
C0F confirmTransaction = (C0F) packet;
property
description
type

windowId

The ID of the window

int

uid

Unique identifier for packet

short

C01PacketChatMessage

new C01(String message);
C01 chatMessage = (C01) packet;
property
description
type

message

Chat message

String

C02PacketUseEntity

new C02(Entity entity, String action, Vec3 hitVec);
C02 useEntity = (C02) packet;
property
description
type

entity

Entity

Entity

action

ATTACK

INTERACT

INTERACT_AT

String

hitVec

Hit Vector

Vec3

C03PacketPlayer

new C03(boolean ground);
C03 playerGround = (C03) packet;
property
description
type

ground

If player is on ground or not

boolean

C04PacketPlayerPosition

new C03(Vec3 position, boolean ground);
C03 playerPosition = (C03) packet;
property
description
type

position

Player's position

Vec3

ground

If player is on ground or not

boolean

C05PacketPlayerLook

new C03(float yaw, float pitch, boolean ground);
C03 playerLook = (C03) packet;
property
description
type

yaw

Player's yaw

float

pitch

Player's pitch

float

ground

If player is on ground or not

boolean

C06PacketPlayerPosLook

new C03(Vec3 position, float yaw, float pitch, boolean ground);
C03 playerPosLook = (C03) packet;
property
description
type

position

Player's position

Vec3

yaw

Player's yaw

float

pitch

Player's pitch

float

ground

If player is on ground or not

boolean

C07PacketPlayerDigging

new C07(Vec3 position, String status, String facing);
C07 playerDigging = (C07) packet;
property
description
type

position

Block placement position

Vec3

status

START_DESTROY_BLOCK STOP_DESTROY_BLOCK ABORT_DESTROY_BLOCK DROP_ALL_ITEMS DROP_ITEM RELEASE_USE_ITEM

String

facing

UP DOWN NORTH SOUTH EAST WEST

String

C08PacketPlayerBlockPlacement

new C08(ItemStack itemStack, Vec3 position, int direction, Vec3 offset);
C08 playerBlockPlacement = (C08) packet;
property
description
type

itemStack

Player's current item

ItemStack

position

Block placement position

Vec3

direction

Block placement direction

int

offset

Block placement offset

Vec3

C09PacketHeldItemChange

new C09(int slot);
C09 heldItemChange = (C09) packet;
property
description
type

slot

Player's held item slot

int

C10PacketCreativeInventoryAction

new C10(int slot, ItemStack itemStack);
C10 creativeInventoryAction = (C10) packet;
property
description
type

slot

Player's held item slot

int

itemStack

Item being affected

ItemStack

C13PacketPlayerAbilities

new C13(boolean invulnerable, boolean flying, boolean allowFlying, boolean creativeMode, float flySpeed, float walkSpeed);
C13 playerAbilities = (C13) packet;
property
description
type

invulnerable

True if the player is invulnerable

boolean

flying

True if the player is flying

boolean

allowFlying

True if the player is allowed to fly

boolean

creativeMode

True if the player is in creative

boolean

flySpeed

Flying speed of the player

float

walkSpeed

Walking speed of the player

float

C16PacketClientStatus

new C16(String status);
C16 clientStatus = (C16) packet;
property
description
type

status

PERFORM_RESPAWN

REQUEST_STATS

OPEN_INVENTORY_ACHIEVEMENT

String

S02PacketChat

new S02(byte type, String message);
S02 s02 = (S02) packet;
property
description
type

type

The type of message

byte

message

The message displayed

String

S08PacketPlayerPosLook

new S08(Vec3 position, float yaw, float pitch);
S08 s08 = (S08) packet;
property
description
type

position

Entity's position

Vec3

yaw

Entity's yaw

float

pitch

Entity's pitch

float

S12PacketEntityVelocity

new S12(int entityId, Vec3 motion);
S12 s12 = (S12) packet;
property
description
type

entityId

Entity ID packet is applied to

int

motion

Entity's new motion

Vec3

S23PacketBlockChange

new S23(Vec3 position, Block block);
S23 s23 = (S23) packet;
property
description
type

position

Position of the block

Vec3

block

Block that was changed

Block

S27PacketExplosion

new S27(float strength, Vec3 position, Vec3 motion);
S27 s27 = (S27) packet;
property
description
type

strength

Explosion's strength

float

position

Position of the explosion

Vec3

motion

Applied motion from the explosion

Vec3

S45PacketTitle

new S45(String type, String message, int fadeInTime, int displayTime, int fadeOutTime);
S45 s45 = (S45) packet;
property
description
type

type

Type of title

String

message

The message displayed

String

fadeInTime

Fade in time in ticks

int

displayTime

Display time in ticks

int

fadeOutTime

Fade out time in ticks

int

S2APacketParticles

new S2A(String type, Vec3 position, Vec3 offset, Vec3 speed, int count, int[] args);
S2A s2a = (S2A) packet;
property
description
type

type

Packet identifier

String

position

Position of the particle

Vec3

offset

Random offset of the particle

Vec3

speed

Velocity of the particle

Vec3

count

Amount of particles

int

args

Arguments

int[]

S3EPacketPlayOutScoreboardTeam

new S3E(String name, String displayName, String prefix, String suffix, String nametagVisibility, Collection<String> playerList, int action, int friendlyFlags, int color);
S3E s3e = (S3E) packet;
property
description
type

name

Unique team identifier

String

displayName

Display name for players

String

prefix

String before player names

String

suffix

String after player names

String

nametagVisibility

Controls nametag visibility

String

playerList

List of player names on the team

Collection<String>

action

Specifies packet action

int

friendlyFlags

Flags for team behavior

int

color

Team color

int

Last updated