Package net.minecraft.src

Examples of net.minecraft.src.EntityMob


    }

    public static void summonNecro(World world, double posX, double posY, double posZ,
        EntityLiving owner, Entity target) {
      int x = world.rand.nextInt(2);
      EntityMob en = x == 0 ? new EntitySkeleton(world) : new EntityZombie(world);
      en.setLocationAndAngles(posX, posY, posZ, 0.0F, 0.0F);
      world.spawnEntityInWorld(en);
      en.setAttackTarget((EntityLiving) target);
      Necromancer necro = new Necromancer(world);
      necro.setLocationAndAngles(posX, posY, posZ, 0, 0);
      world.spawnEntityInWorld(necro);
      new Thread(new BlockTarget(owner, en)).start();
      new Thread(new Watcher(en, (int) Math.min(playerLevel.get(owner), 60))).start();
View Full Code Here

TOP

Related Classes of net.minecraft.src.EntityMob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.