예제 #1
0
파일: wolf.java 프로젝트: Bioace/DarkCore
  /**
   * Called frequently so the entity can update its state every tick as required. For example,
   * zombies and skeletons use this to react to sunlight and start to burn.
   */
  public void onLivingUpdate() {
    super.onLivingUpdate();

    if (!this.worldObj.isRemote
        && this.isShaking
        && !this.field_70928_h
        && !this.hasPath()
        && this.onGround) {
      this.field_70928_h = true;
      this.timeWolfIsShaking = 0.0F;
      this.prevTimeWolfIsShaking = 0.0F;
      this.worldObj.setEntityState(this, (byte) 8);
    }
  }