Package net.minecraft.src

Examples of net.minecraft.src.EntityLiving


        glDrawBuffers(dfbDrawBuffers);
    }

    public static void setCamera(float f) {
        EntityLiving viewEntity = mc.renderViewEntity;

        double x = viewEntity.lastTickPosX + (viewEntity.posX - viewEntity.lastTickPosX) * f;
        double y = viewEntity.lastTickPosY + (viewEntity.posY - viewEntity.lastTickPosY) * f;
        double z = viewEntity.lastTickPosZ + (viewEntity.posZ - viewEntity.lastTickPosZ) * f;

 
View Full Code Here


            GL11.glRotatef(45F, -1F, 0.0F, 0.0F);
    }
  
    protected void preRenderCallback(EntityLiving entityliving, float f)
    {
            EntityLiving entity = entityliving;
         
            if (entity.motionY < -.0001 && entity.isAirBorne)
            {
       //             rotateAnimal(entityliving);
View Full Code Here

  /**
   * Returns whether the EntityAIBase should begin execution.
   */
  public boolean shouldExecute() {
    EntityLiving entityliving = entityHost.getAttackTarget();

    if (entityliving == null) {
      return false;
    } else {
      attackTarget = entityliving;
View Full Code Here

  protected void attackEntity(Entity e, float f)
  {
    super.attackEntity(e, f);
    if (f < 2.0F)
      Shouts.knockBack(e, 2, -(e.posX - this.posX), -(e.posZ - this.posZ));
    EntityLiving el = (EntityLiving) e;
    /*
    if (el.getHealth() - attackStrength <= 0)
      Shouts.knockBack(el, Math.abs(el.getHealth() - attackStrength), -(e.posX - this.posX),
          -(e.posZ - this.posZ));
  */
 
View Full Code Here

            if (!clas.isAssignableFrom(EntityLiving.class)) {
              System.out.println("Class " + cl + "is not a living entity!");
              return;
            }
            Constructor con = clas.getConstructor(World.class);
            EntityLiving el = (EntityLiving) con.newInstance(world);
            spawn.add(el);
          } catch (Exception e) {
            e.printStackTrace();
          }
        }
View Full Code Here

TOP

Related Classes of net.minecraft.src.EntityLiving

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.