Class EntityMob

    • Constructor Detail

      • EntityMob

        public EntityMob​(World worldIn)
    • Method Detail

      • 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 EntityLivingBase
      • getSwimSound

        protected java.lang.String getSwimSound()
        Overrides:
        getSwimSound in class Entity
      • getSplashSound

        protected java.lang.String getSplashSound()
        Overrides:
        getSplashSound in class Entity
      • getHurtSound

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

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

        protected boolean isValidLightLevel()
        + Checks to make sure the light is not too bright where the mob is spawning
      • getCanSpawnHere

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

        protected boolean canDropLoot()
        + Entity won't drop items or experience points if this returns false
        Overrides:
        canDropLoot in class EntityLivingBase