-
Notifications
You must be signed in to change notification settings - Fork 0
ParsedPacket.default
ParsedPacket.default
• new default(packet)
| Name | Type |
|---|---|
packet |
default |
• Readonly id: null | number
• Readonly length: null | number
• Readonly packet: default
• Private Readonly packetData: number[]
• Private get packetBuffer(): Buffer
Buffer
▸ getBoolean(index?): null | boolean
Parse Boolean After parsing, the buffer will be sliced
| Name | Type | Default value | Description |
|---|---|---|---|
index? |
number |
0 |
Index in the packet |
null | boolean
▸ getString(index?): null | string
Parse String (n) After parsing, the buffer will be sliced
| Name | Type | Default value | Description |
|---|---|---|---|
index? |
number |
0 |
Index in the packet |
null | string
▸ getUShort(index?): null | number
Parse Unsigned Short After parsing, the buffer will be sliced
| Name | Type | Default value | Description |
|---|---|---|---|
index? |
number |
0 |
Index in the packet |
null | number
▸ getUUID(index?): null | string
Parse UUID After parsing, the buffer will be sliced
| Name | Type | Default value | Description |
|---|---|---|---|
index? |
number |
0 |
Index in the packet |
null | string
▸ getVarInt(index?): null | number
Parse VarInt After parsing, the buffer will be sliced
| Name | Type | Default value | Description |
|---|---|---|---|
index? |
number |
0 |
Index in the packet |
null | number
▸ Private isOutOfRange(index): boolean
Check if buffer index is out of range
| Name | Type |
|---|---|
index |
number |
boolean