Class EntitySquid

All Implemented Interfaces:
IAnimals

public class EntitySquid extends EntityWaterMob
  • Field Details

    • squidPitch

      public float squidPitch
    • prevSquidPitch

      public float prevSquidPitch
    • squidYaw

      public float squidYaw
    • prevSquidYaw

      public float prevSquidYaw
    • squidRotation

      public float squidRotation
      appears to be rotation in radians; we already have pitch and yaw, so this completes the triumvirate.
    • prevSquidRotation

      public float prevSquidRotation
      previous squidRotation in radians.
    • tentacleAngle

      public float tentacleAngle
      angle of the tentacles in radians
    • prevTentacleAngle

      public float prevTentacleAngle
      the last calculated angle of the tentacles in radians
  • Constructor Details

    • EntitySquid

      public EntitySquid(World par1World)
  • Method Details

    • applyEntityAttributes

      protected void applyEntityAttributes()
      Overrides:
      applyEntityAttributes in class EntityLiving
    • getLivingSound

      protected String getLivingSound()
      Returns the sound this mob makes while it's alive.
      Overrides:
      getLivingSound in class EntityLiving
    • getHurtSound

      protected String getHurtSound()
      Returns the sound this mob makes when it is hurt.
      Overrides:
      getHurtSound in class EntityLivingBase
    • getDeathSound

      protected String getDeathSound()
      Returns the sound this mob makes on death.
      Overrides:
      getDeathSound in class EntityLivingBase
    • getSoundVolume

      protected float getSoundVolume()
      Returns the volume for the sounds this mob makes.
      Overrides:
      getSoundVolume in class EntityLivingBase
    • getDropItemId

      protected int getDropItemId()
      Returns the item ID for the item the mob drops on death.
      Overrides:
      getDropItemId in class EntityLiving
    • canTriggerWalking

      protected boolean canTriggerWalking()
      returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to prevent them from trampling crops
      Overrides:
      canTriggerWalking in class Entity
    • dropFewItems

      protected void dropFewItems(boolean par1, int par2)
      Drop 0-2 items of this living's type. @param par1 - Whether this entity has recently been hit by a player. @param par2 - Level of Looting used to kill this mob.
      Overrides:
      dropFewItems in class EntityLiving
    • isInWater

      public boolean isInWater()
      Checks if this entity is inside water (if inWater field is true as a result of handleWaterMovement() returning true)
      Overrides:
      isInWater in class Entity
    • onLivingUpdate

      public void onLivingUpdate()
      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.
      Overrides:
      onLivingUpdate in class EntityLiving
    • moveEntityWithHeading

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

      protected void updateEntityActionState()
      Overrides:
      updateEntityActionState in class EntityCreature
    • getCanSpawnHere

      public boolean getCanSpawnHere()
      Checks if the entity's current position is a valid location to spawn this entity.
      Overrides:
      getCanSpawnHere in class EntityWaterMob