From 717de0d409a888624b52a44db2f0222262637c44 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Thu, 8 Oct 2015 22:56:56 +0200 Subject: [PATCH] update api.md --- doc/api.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/api.md b/doc/api.md index 28e021c..8fe4b2f 100644 --- a/doc/api.md +++ b/doc/api.md @@ -34,6 +34,7 @@ - [Properties](#properties-1) - [player.entity](#playerentity) - [player.username](#playerusername) + - [player.view](#playerview) - [Events](#events-1) - ["connected"](#connected) - ["spawned"](#spawned) @@ -41,6 +42,7 @@ - ["error" (error)](#error-error-1) - ["chat" (message)](#chat-message) - ["kicked" (kicker,reason)](#kicked-kickerreason) + - ["positionChanged"](#positionchanged) - [Methods](#methods-1) - [player.login()](#playerlogin) - [player.ban(reason)](#playerbanreason) @@ -184,6 +186,10 @@ The entity of the player, of type `Flying-squid.Entity` The username of the player +#### player.view + +The view size of the player, for example 8 for 16x16 + ### Events #### "connected" @@ -210,6 +216,10 @@ Fires when the player says `message`. `kicker` kick the player with `reason` +#### "positionChanged" + +fires when the position changed + ### Methods #### player.login()