mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-10-01 07:00:34 -04:00
Updated to protocol 60 (1.5.0)
This commit is contained in:
parent
72fec007fc
commit
5f6abad700
@ -307,6 +307,17 @@ var packets = {
|
||||
{ name: "global", type: "bool" }
|
||||
],
|
||||
0x3e: [
|
||||
{ name: "particleName", type: "string" },
|
||||
{ name: "x", type: "float" },
|
||||
{ name: "y", type: "float" },
|
||||
{ name: "z", type: "float" },
|
||||
{ name: "offsetX", type: "float" },
|
||||
{ name: "offsetY", type: "float" },
|
||||
{ name: "offsetZ", type: "float" },
|
||||
{ name: "particleSpeed", type: "float" },
|
||||
{ name: "particles", type: "int" }
|
||||
],
|
||||
0x3f: [
|
||||
{ name: "soundName", type: "string" },
|
||||
{ name: "x", type: "int" },
|
||||
{ name: "y", type: "int" },
|
||||
@ -329,7 +340,8 @@ var packets = {
|
||||
{ name: "windowId", type: "byte" },
|
||||
{ name: "inventoryType", type: "byte" },
|
||||
{ name: "windowTitle", type: "string" },
|
||||
{ name: "slotCount", type: "byte" }
|
||||
{ name: "slotCount", type: "byte" },
|
||||
{ name: "useProvidedTitle", type: "bool" }
|
||||
],
|
||||
0x65: [
|
||||
{ name: "windowId", type: "byte" }
|
||||
@ -417,6 +429,30 @@ var packets = {
|
||||
0xcd: [
|
||||
{ name: "payload", type: "byte" }
|
||||
],
|
||||
0xce: [
|
||||
{ name: "name", type: "string" },
|
||||
{ name: "displayText", type: "string" },
|
||||
{ name: "create", type: "bool" }
|
||||
],
|
||||
0xcf: [
|
||||
{ name: "itemName", type: "string" },
|
||||
{ name: "remove", type: "bool" },
|
||||
{ name: "scoreName", type: "string" },
|
||||
{ name: "value", type: "int" }
|
||||
],
|
||||
0xd0: [
|
||||
{ name: "position", type: "byte" },
|
||||
{ name: "name", type: "string" }
|
||||
],
|
||||
0xd1: [
|
||||
{ name: "team", type: "string" },
|
||||
{ name: "mode", type: "byte" },
|
||||
{ name: "name", type: "string" },
|
||||
{ name: "prefix", type: "string" },
|
||||
{ name: "suffix", type: "string" },
|
||||
{ name: "friendlyFire", type: "bool" },
|
||||
{ name: "players", type: "stringArray" }
|
||||
],
|
||||
0xfa: [
|
||||
{ name: "channel", type: "string" },
|
||||
{ name: "data", type: "byteArray16" }
|
||||
@ -1241,8 +1277,8 @@ function parsePacket(buffer, isServer) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
version: 51,
|
||||
minecraftVersion: '1.4.7',
|
||||
version: 60,
|
||||
minecraftVersion: '1.5.0',
|
||||
sessionVersion: 13,
|
||||
parsePacket: parsePacket,
|
||||
createPacketBuffer: createPacketBuffer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user