Package net.minecraft.server.v1_7_R1

Examples of net.minecraft.server.v1_7_R1.EntityLiving.e()


  public boolean update()
  {
    EntityLiving entity = this.getEntityHandle();
    NMSUtil.getControllerLook(this.getEntityHandle()).a(this.m_target, 30, 30);
    double minDist = entity.width * entity.width * 4;
    double dist = entity.e(this.m_target.locX, this.m_target.boundingBox.b, this.m_target.locZ);
    float speed = 0.23F;

    if(dist > minDist && dist < 16)
      speed = 0.4F;
    else if(dist < 255)
View Full Code Here


      this.getRemoteEntity().move((LivingEntity)this.m_target.getBukkitEntity(), this.getRemoteEntity().getSpeed());
    }

    this.m_attackTick = Math.max(this.m_attackTick - 1, 0);
    double minDist = entity.width * 2 * entity.width * 2;
    if(this.m_attackTick <= 0 && entity.e(this.m_target.locX, this.m_target.boundingBox.b, this.m_target.locZ) <= minDist)
    {
      this.m_attackTick = 20;
      if(entity.be() != null)
        this.getEntityHandle().aR();

View Full Code Here

      while(it.hasNext())
      {
        EntityVillager villager = (EntityVillager)it.next();
        if(villager != this.m_villager && !villager.bZ() && villager.getAge() < 0)
        {
          double dist = villager.e(this.m_villager);

          if(dist <= minDist)
          {
            minDist = dist;
            this.m_friend = villager;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.