From 8e06879cda0e947b2057020fda38a7241c7ded56 Mon Sep 17 00:00:00 2001 From: Xabier de Zuazo Date: Thu, 11 Jul 2013 12:09:10 +0200 Subject: [PATCH] README: added propertyArray example --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 09b6e90..00b72ba 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,26 @@ Value looks like this: Where the key is the numeric metadata key and the value is the value of the correct data type. +#### propertyArray + +Included inside *Entity Properties (0x2C)* packets. + +```js +[ + { key: 'generic.maxHealth', value: 20, elementList: [] }, + { key: 'generic.movementSpeed', value: 0.25, elementList: [] } +] +``` + +Where elementList is an array with the following structure: + +```js +[ + { uuid_msb: 123, uuid_lsb: 456, amount: 0.5, operation: 1 }, + ... +] +``` + ## Testing * Ensure your system has the `java` executable in `PATH`.