public AbstractClientPlayer getAbstractPlayerFromId(int id) {
if (getHandle().thePlayer.entityId == id) {
return getHandle().thePlayer;
}
WorldClient world = (WorldClient)getHandle().theWorld;
Entity e = world.getEntityByID(id);
if (e instanceof AbstractClientPlayer) {
return (AbstractClientPlayer) e;
}
return null;
}