Class EntityWolf

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

    public class EntityWolf
    extends EntityTameable
    + 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

      • EntityWolf

        public EntityWolf​(World worldIn)
    • Method Detail

      • 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
      • getSoundVolume

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

        public void onUpdate()
        + Called to update the entity's position/logic.
        Overrides:
        onUpdate in class EntityLivingBase
      • isWolfWet

        public boolean isWolfWet()
        + True if the wolf is wet
      • getShadingWhileWet

        public float getShadingWhileWet​(float parFloat1)
        + Used when calculating the amount of shading to apply while the wolf is wet.
      • getShakeAngle

        public float getShakeAngle​(float parFloat1,
                                   float parFloat2)
      • getInterestedAngle

        public float getInterestedAngle​(float parFloat1)
      • getVerticalFaceSpeed

        public int getVerticalFaceSpeed()
        + The speed it takes to move the entityliving's rotationPitch through the faceEntity method. This is only currently use in wolves.
        Overrides:
        getVerticalFaceSpeed in class EntityLiving
      • 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
      • getTailRotation

        public float getTailRotation()
      • isBreedingItem

        public boolean isBreedingItem​(ItemStack itemstack)
        + Checks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)
        Overrides:
        isBreedingItem in class EntityAnimal
      • getMaxSpawnedInChunk

        public int getMaxSpawnedInChunk()
        + Will return how many at most can spawn in a chunk at once.
        Overrides:
        getMaxSpawnedInChunk in class EntityLiving
      • isAngry

        public boolean isAngry()
        + Determines whether this wolf is angry or not.
      • setAngry

        public void setAngry​(boolean angry)
        + Sets whether this wolf is angry or not.
      • setCollarColor

        public void setCollarColor​(EnumDyeColor collarcolor)
      • setBegging

        public void setBegging​(boolean beg)
      • canMateWith

        public boolean canMateWith​(EntityAnimal entityanimal)
        + Returns true if the mob is currently able to mate with the specified mob.
        Overrides:
        canMateWith in class EntityAnimal
      • isBegging

        public boolean isBegging()
      • canDespawn

        protected boolean canDespawn()
        + Determines if an entity can be despawned, used on idle far away entities
        Overrides:
        canDespawn in class EntityAnimal