Class EntitySheep

  • All Implemented Interfaces:
    IAnimals, org.teavm.jso.JSObject

    public class EntitySheep
    extends EntityAnimal
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Detail

      • EntitySheep

        public EntitySheep​(World worldIn)
    • Method Detail

      • func_175513_a

        public static float[] func_175513_a​(EnumDyeColor dyeColor)
      • 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 EntityAnimal
      • dropFewItems

        protected void dropFewItems​(boolean var1,
                                    int i)
        + Drop 0-2 items of this living's type
        Overrides:
        dropFewItems in class EntityLiving
      • getHeadRotationPointY

        public float getHeadRotationPointY​(float parFloat1)
      • getHeadRotationAngleX

        public float getHeadRotationAngleX​(float parFloat1)
      • interact

        public boolean interact​(EntityPlayer entityplayer)
        + Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.
        Overrides:
        interact in class EntityAnimal
      • writeEntityToNBT

        public void writeEntityToNBT​(NBTTagCompound nbttagcompound)
        + (abstract) Protected helper method to write subclass entity data to NBT.
        Overrides:
        writeEntityToNBT in class EntityAnimal
      • readEntityFromNBT

        public void readEntityFromNBT​(NBTTagCompound nbttagcompound)
        + (abstract) Protected helper method to read subclass entity data from NBT.
        Overrides:
        readEntityFromNBT in class EntityAnimal
      • getLivingSound

        protected java.lang.String getLivingSound()
        + Returns the sound this mob makes while it's alive.
        Overrides:
        getLivingSound in class EntityLiving
      • 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
      • getFleeceColor

        public EnumDyeColor getFleeceColor()
        + Gets the wool color of this sheep.
      • setFleeceColor

        public void setFleeceColor​(EnumDyeColor color)
        + Sets the wool color of this sheep
      • getSheared

        public boolean getSheared()
        + returns true if a sheeps wool has been sheared
      • setSheared

        public void setSheared​(boolean sheared)
        + make a sheep sheared if set to true
      • getRandomSheepColor

        public static EnumDyeColor getRandomSheepColor​(EaglercraftRandom random)
        + Chooses a "vanilla" sheep color based on the provided random.
      • eatGrassBonus

        public void eatGrassBonus()
        + This function applies the benefits of growing back wool and faster growing up to the acting entity. (This function is used in the AIEatGrass)
        Overrides:
        eatGrassBonus in class EntityLiving
      • onInitialSpawn

        public IEntityLivingData onInitialSpawn​(DifficultyInstance difficultyinstance,
                                                IEntityLivingData ientitylivingdata)
        + Called only once on an entity when first time spawned, via egg, mob spawner, natural spawning etc, but not called when entity is reloaded from nbt. Mainly used for initializing attributes and inventory
        Overrides:
        onInitialSpawn in class EntityLiving