World world = mc.world;
List<Entity> entities = world.loadedEntityList;
public void onTick(TickEvent.PlayerTickEvent e) {
int i = 0;
if (i < entities.size(); i++) {
if (entities.get(i) instanceof EntityPlayer) {
EntityPlayer targets = (EntityPlayer) entities.get(i);
}
}
}
Hi I am pretty new to mod development and am having some issues getting the (EntityList) of the players and i am getting errors in the following code i'm not sure about that i'm not sure about and if someone could help me out i would really appreciate it. Thanks.