mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
Added tests for new datatypes
This commit is contained in:
parent
e46a98a5a5
commit
1df9f9071f
2 changed files with 29 additions and 1 deletions
27
test/server/server.properties
Normal file
27
test/server/server.properties
Normal file
|
@ -0,0 +1,27 @@
|
|||
generator-settings=
|
||||
allow-nether=true
|
||||
level-name=world
|
||||
enable-query=false
|
||||
allow-flight=false
|
||||
server-port=25565
|
||||
level-type=DEFAULT
|
||||
enable-rcon=false
|
||||
level-seed=
|
||||
server-ip=
|
||||
max-build-height=256
|
||||
spawn-npcs=true
|
||||
white-list=false
|
||||
spawn-animals=true
|
||||
snooper-enabled=true
|
||||
hardcore=false
|
||||
texture-pack=
|
||||
online-mode=true
|
||||
pvp=true
|
||||
difficulty=1
|
||||
gamemode=0
|
||||
max-players=120
|
||||
spawn-monsters=true
|
||||
generate-structures=true
|
||||
view-distance=10
|
||||
spawn-protection=16
|
||||
motd=test1234
|
|
@ -72,6 +72,7 @@ var values = {
|
|||
nbtData: new Buffer(0),
|
||||
}],
|
||||
'stringArray': ['hello', 'dude'],
|
||||
'propertyArray': [{ key: 'generic.maxHealth', value: 1.5 }],
|
||||
'mapChunkBulk': {
|
||||
skyLightSent: true,
|
||||
compressedChunkData: new Buffer(1234),
|
||||
|
@ -99,7 +100,7 @@ var values = {
|
|||
'intArray8': [1, 2, 3, 4],
|
||||
'intVector': {x: 1, y: 2, z: 3},
|
||||
'byteVector': {x: 1, y: 2, z: 3},
|
||||
'byteVectorArray': [{x: 1, y: 2, z: 3}],
|
||||
'byteVectorArray': [{x: 1, y: 2, z: 3}]
|
||||
};
|
||||
|
||||
describe("packets", function() {
|
||||
|
|
Loading…
Reference in a new issue