Can somone tell me whats wrong with this?

Discussion in 'Plugin Development' started by unforgiven5232, May 8, 2013.

Thread Status:
Not open for further replies.
  1. Offline


    public void onPlayerInteract(PlayerInteractEvent evt) {
          if(evt.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {
              //get block and spawn a zombie there.
              Block b = evt.getClickedBlock();
              Entity zombie = b.getWorld().spawnEntity(b.getLocation(), EntityType.ZOMBIE);
              //the new location, change as necessary..
              Location to = new Location(b.getWorld(), b.getX() + 10, b.getY(), b.getZ() + 10);
              //set the new destination
              EntityCreature ec = ((CraftCreature)zombie).getHandle();
              PathEntity pf = ((CraftWorld)to.getWorld()).getHandle().a(ec, to.getX(), to.getY(), to.getZ(), 16.0f, true, false, false, true);
    So the "a.()" gives me an error, can anyone help?
  2. Offline


    The name of the method was likely changed in a recent update.
  3. Offline


    U got any idea of what to?
  4. Offline


    devilquak likes this.
Thread Status:
Not open for further replies.

Share This Page