Skip to content

Class

You can use the class via the callback function's argment, for example Example:

lua
OnSendPacket(function(SendPacket, Cancel)
    ID = SendPacket:GetID()
end)

Packet

GetID

Return: Int, MinecraftPacketIds

Retrieve the Packet ID.

Sources: MinecraftPacketIds

TextPacket

GetAuthor

Return: String

Retrieves the name of the player who sent the textpacket.

GetMessage

Return: String

Retrieve the message.

PlayerAuthInputPacket

Rot

Type: Vec2

Pos

Type: Vec3

YHeadRot

Type: Float

PosDelta

Type: Vec3

VehicleRot

Type: Vec2

AnalogMoveVector

Type: Vec2

Move

Type: Vec2

InteractRotation

Type: Vec2

CameraOrientation

Type: Vec3

RawMoveVector

Type: Vec2