How to set Max Health on EntityZombie

Discussion in 'Plugin Development' started by Acer_Mortem, Aug 30, 2014.

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

    Acer_Mortem

    I currently have a class extending EntityZombie. How can I edit the maxHealth of the entity? Here's an example:

    Code:
            World mcWorld = ((CraftWorld) l.getWorld()).getHandle();
            Marauder customEntity = new Marauder(mcWorld, elite, level);
            customEntity.setLocation(l.getX(), l.getY(), l.getZ(), l.getYaw(), l.getPitch());
            mcWorld.addEntity(customEntity, SpawnReason.CUSTOM);
            customEntity.setCustomName(makeCustomName(level, elite, MonsterTypes.MARAUDER, false));
            customEntity.setMaxHealth() //????
     
  2. Offline

    Gater12

  3. Offline

    Acer_Mortem

    setMaxHealth is not a method for EntityZombie.
     
  4. Offline

    Gater12

Thread Status:
Not open for further replies.

Share This Page