Package net.minecraft.src

Examples of net.minecraft.src.EntityTameable


            y + (world.rand.nextDouble() * 3.0) * (world.rand.nextBoolean() ? -1 : 1),
            z + (world.rand.nextDouble() * 3.0) * (world.rand.nextBoolean() ? -1 : 1),
            0, 0, 0);
      try {
        Constructor<? extends EntityTameable> c = creature.getConstructor(World.class);
        EntityTameable en = c.newInstance(world);
        en.setPosition(x, y, z);
        if (owner instanceof EntityPlayer)
          en.setOwner(((EntityPlayer) owner).username);
        en.setTamed(true);
        world.spawnEntityInWorld(en);
        new Thread(new Watcher(en, duration)).start();
      } catch (Exception e) {
        e.printStackTrace();
        return;
View Full Code Here

TOP

Related Classes of net.minecraft.src.EntityTameable

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.