Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Getting The EntityPlayer List

Recommended Posts

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.



Link to post
Share on other sites
This topic is now closed to further replies.

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.