Updated the api

This commit is contained in:
mhsjlw 2015-08-27 12:52:29 -04:00
parent d1cfcc7367
commit 64630e8fb6
2 changed files with 22 additions and 0 deletions

View file

@ -24,6 +24,9 @@
- [entity.equipment[5]](#entityequipment5)
- [entity.heldItem](#entityhelditem)
- [entity.metadata](#entitymetadata)
- [entity.healt](#entityhealt)
- [entity.food](#entityfood)
- [entity.player](#entityplayer)
- [MCServer](#mcserver)
- [CraftyJS.createMCServer(options)](#craftyjscreatemcserveroptions)
- [Properties](#properties)
@ -144,6 +147,15 @@ Equivalent to `entity.equipment[0]`.
See http://wiki.vg/Entities#Entity_Metadata_Format for more details.
#### entity.healt
The health of the player, default: 20
#### entity.food
The food of the player, default: 20
#### entity.player
The player
## MCServer
### CraftyJS.createMCServer(options)

View file

@ -0,0 +1,10 @@
module.exports=inject;
function inject(serv, player)
{
player._client.on("client_command", function(packet) {
if(packet.payload == 0) {
}
});
}