# Sending packet events
Events called by packets being sent to the server by the client.
sendpacketanimation
preventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketentityaction
entityID
: IntegerauxData
: Integeraction
: StringpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketinput
strafeSpeed
: NumberforwardSpeed
: Numberjumping
: Booleansneaking
: BooleanpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketclosewindow
windowId
: IntegerpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketclickwindow
windowId
: IntegerslotId
: IntegerusedButton
: IntegeractionNumber
: Shortmode
: IntegerclickedItem
: ItemStackDatapreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketconfirmtransaction
windowId
: Integeraccepted
: Booleanuid
: ShortpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketkeepalive
key
: IntegerpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketchatmessage
message
: StringpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketuseentity
entityId
: Integeraction
: String- Can be one of:
INTERACT
,ATTACK
,INTERACT_AT
- Can be one of:
hitVec
: Vec3preventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketplayerposition
x
: Numbery
: Numberz
: Numberyaw
: Numberpitch
: NumberonGround
: Booleanmoving
: Booleanrotating
: BooleanpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketplayerlook
x
: Numbery
: Numberz
: Numberyaw
: Numberpitch
: NumberonGround
: Booleanmoving
: Booleanrotating
: BooleanpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketplayerposlook
x
: Numbery
: Numberz
: Numberyaw
: Numberpitch
: NumberonGround
: Booleanmoving
: Booleanrotating
: BooleanpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketplayer
x
: Numbery
: Numberz
: Numberyaw
: Numberpitch
: NumberonGround
: Booleanmoving
: Booleanrotating
: BooleanpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketplayerdigging
position
: BlockPosfacing
: String- Can be one of:
UP
,DOWN
,NORTH
,SOUTH
,EAST
,WEST
- Can be one of:
status
: String- Can be one of:
START_DESTROY_BLOCK
,ABORT_DESTROY_BLOCK
,STOP_DESTROY_BLOCK
,DROP_ALL_ITEMS
,DROP_ITEM
orRELEASE_USE_ITEM
- Can be one of:
preventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketplayerdigging
position
: BlockPosfacing
: String- Can be one of:
UP
,DOWN
,NORTH
,SOUTH
,EAST
,WEST
- Can be one of:
status
: String- Can be one of:
START_DESTROY_BLOCK
,ABORT_DESTROY_BLOCK
,STOP_DESTROY_BLOCK
,DROP_ALL_ITEMS
,DROP_ITEM
orRELEASE_USE_ITEM
- Can be one of:
preventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketplayerblockplacement
position
: BlockPosplacedBlockDirection
: IntegerfacingX
: NumberfacingY
: NumberfacingZ
: Numberstack
: ItemStackDatapreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpackethelditemchange
slotId
: IntegerpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketcreativeinventoryaction
slotId
: Integerstack
: ItemStackDatapreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketenchantitem
windowId
: Integerbutton
: IntegerpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketupdatesign
pos
: BlockPoslines
: String[] [change-length]preventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketplayerabilities
invulnerable
: Booleanflying
: BooleanallowFlying
: BooleancreativeMode
: BooleanflySpeed
: NumberwalkSpeed
: NumberpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpackettabcomplete
message
: StringtargetBlock
: BlockPospreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketclientsettings
lang
: Stringview
: IntegerchatVisibility
: String- Can be one of:
FULL
,SYSTEM
orHIDDEN
- Can be one of:
enableColors
: BooleanmodelPartFlags
: IntegerpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketclientstatus
status
: String- Can be one of:
PERFORM_RESPAWN
,REQUEST_STATS
orOPEN_INVENTORY_ACHIEVEMENT
- Can be one of:
preventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketcustompayload
channel
: StringpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketspectate
id
: StringpreventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.
sendpacketresourcepackstatus
hash
: Stringstatus
: String- Can be one of:
SUCCESSFULLY_LOADED
,DECLINED
,FAILED_DOWNLOAD
,ACCEPTED
- Can be one of:
preventDefault
: Boolean representing whether or not to cancel processing the packet. Default isfalse
.