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;
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;
windowId
The ID of the window
int
C0EPacketClickWindow
new C0E(int windowId, int slot, int button, int mode, ItemStack itemStack);
C0E clickWindow = (C0E) packet;
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;
windowId
The ID of the window
int
uid
Unique identifier for packet
short
C01PacketChatMessage
new C01(String message);
C01 chatMessage = (C01) packet;
message
Chat message
String
C02PacketUseEntity
new C02(Entity entity, String action, Vec3 hitVec);
C02 useEntity = (C02) packet;
entity
Entity
Entity
action
ATTACK
INTERACT
INTERACT_AT
String
hitVec
Hit Vector
Vec3
C03PacketPlayer
new C03(boolean ground);
C03 playerGround = (C03) packet;
ground
If player is on ground or not
boolean
C04PacketPlayerPosition
new C03(Vec3 position, boolean ground);
C03 playerPosition = (C03) packet;
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;
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;
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;
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;
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;
slot
Player's held item slot
int
C10PacketCreativeInventoryAction
new C10(int slot, ItemStack itemStack);
C10 creativeInventoryAction = (C10) packet;
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;
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;
status
PERFORM_RESPAWN
REQUEST_STATS
OPEN_INVENTORY_ACHIEVEMENT
String
S02PacketChat
new S02(byte type, String message);
S02 s02 = (S02) packet;
type
The type of message
byte
message
The message displayed
String
S08PacketPlayerPosLook
new S08(Vec3 position, float yaw, float pitch);
S08 s08 = (S08) packet;
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;
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;
position
Position of the block
Vec3
block
Block that was changed
Block
S25PacketBlockBreakAnim
new S25(int entityId, Block block, int progress);
S25 s25 = (S25) packet;
entityId
Entity id
int
block
Block being animated
Block
progress
Breaking animation progress
int
S27PacketExplosion
new S27(float strength, Vec3 position, Vec3 motion);
S27 s27 = (S27) packet;
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;
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;
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;
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