mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
add type values to packetTest (#1023)
* add varlong value to packetTest * add command_node type value in packetTest
This commit is contained in:
parent
446d1d9a85
commit
92fd00d40d
1 changed files with 25 additions and 1 deletions
|
@ -40,6 +40,7 @@ const values = {
|
|||
i16: -123,
|
||||
u16: 123,
|
||||
varint: 1,
|
||||
varlong: -10,
|
||||
i8: -10,
|
||||
u8: 8,
|
||||
string: 'hi hi this is my client string',
|
||||
|
@ -176,7 +177,30 @@ const values = {
|
|||
tags: [{ tagName: 'hi', entries: [1, 2, 3, 4, 5] }],
|
||||
ingredient: [slotValue],
|
||||
particleData: null,
|
||||
chunkBlockEntity: { x: 10, y: 11, z: 12, type: 25 }
|
||||
chunkBlockEntity: { x: 10, y: 11, z: 12, type: 25 },
|
||||
command_node: {
|
||||
flags: {
|
||||
has_custom_suggestions: 1,
|
||||
has_redirect_node: 1,
|
||||
has_command: 1,
|
||||
command_node_type: 2
|
||||
},
|
||||
children: [23, 29],
|
||||
redirectNode: 83,
|
||||
extraNodeData: {
|
||||
name: 'command_node name',
|
||||
parser: 'brigadier:double',
|
||||
properties: {
|
||||
flags: {
|
||||
max_present: 1,
|
||||
min_present: 1
|
||||
},
|
||||
min: -5.0,
|
||||
max: 256.0
|
||||
},
|
||||
suggestionType: 'minecraft:summonable_entities'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getValue (_type, packet) {
|
||||
|
|
Loading…
Reference in a new issue