Class EntityFlying

Direct Known Subclasses:
EntityGhast

public abstract class EntityFlying extends EntityLiving
  • Constructor Details

    • EntityFlying

      public EntityFlying(World par1World)
  • Method Details

    • fall

      protected void fall(float par1)
      Called when the mob is falling. Calculates and applies fall damage.
      Overrides:
      fall in class EntityLivingBase
    • updateFallState

      protected void updateFallState(double par1, boolean par3)
      Takes in the distance the entity has fallen this tick and whether its on the ground to update the fall distance and deal fall damage if landing on the ground. Args: distanceFallenThisTick, onGround
      Overrides:
      updateFallState in class EntityLivingBase
    • moveEntityWithHeading

      public void moveEntityWithHeading(float par1, float par2)
      Moves the entity based on the specified heading. Args: strafe, forward
      Overrides:
      moveEntityWithHeading in class EntityLivingBase
    • isOnLadder

      public boolean isOnLadder()
      returns true if this entity is by a ladder, false otherwise
      Overrides:
      isOnLadder in class EntityLivingBase