zhuowei/MCPELauncher — pull request #103 by PnDong (2014-03-08 18:18:38+00:00)
Title: new method & function

getAllEntity() returns array of the all entities!

var entityArr=new Array();
var senseRange=10; //max distance
function entityAddedHook(e)
{
entityArr.push(e);
}
function entityRemovedHook(e)
{
var entityArrLength = entityArr.length;
for(var c=0;c