Jump to content

Recommended Posts

Posted
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.

 

Capture.PNG.5011c071bfcd64ee14070b745048368d.PNG

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.