public void Find() { Player player = getObjectsInRange(Player.class); if(player != null) { setLocation(0, 0); } }
public void Find() { Player player = getObjectsInRange(Player.class); if(player != null) { setLocation(0, 0); } }
public void Find() { Player player = getObjectsInRange(int range, Player.class); if(player != null) { setLocation(0, 0); } }
if (!getObjectsInRange(int range, Player.class).isEmpty()) { setLocation(0,0); }
Player player = getObjectsInRange(int range, Player.class);