Class EntityGuardian

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

    public class EntityGuardian
    extends EntityMob
    + 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

      • EntityGuardian

        public EntityGuardian​(World worldIn)
    • Method Detail

      • readEntityFromNBT

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

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

        public boolean func_175472_n()
      • func_175464_ck

        public int func_175464_ck()
      • isElder

        public boolean isElder()
      • setElder

        public void setElder​(boolean elder)
        + Sets this Guardian to be an elder or not.
      • setElder

        public void setElder()
        + Sets this Guardian to be an elder or not.
      • hasTargetedEntity

        public boolean hasTargetedEntity()
      • getTalkInterval

        public int getTalkInterval()
        + Get number of ticks, at least during which the living entity will be silent.
        Overrides:
        getTalkInterval in class EntityLiving
      • 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 EntityMob
      • getDeathSound

        protected java.lang.String getDeathSound()
        + Returns the sound this mob makes on death.
        Overrides:
        getDeathSound in class EntityMob
      • 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
      • 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 EntityMob
      • func_175471_a

        public float func_175471_a​(float parFloat1)
      • func_175469_o

        public float func_175469_o​(float parFloat1)
      • func_175477_p

        public float func_175477_p​(float parFloat1)
      • dropFewItems

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

        protected void addRandomDrop()
        + Causes this Entity to drop a random item.
        Overrides:
        addRandomDrop in class EntityLivingBase
      • isValidLightLevel

        protected boolean isValidLightLevel()
        + Checks to make sure the light is not too bright where the mob is spawning
        Overrides:
        isValidLightLevel in class EntityMob
      • isNotColliding

        public boolean isNotColliding()
        + Checks that the entity is not colliding with any blocks / liquids
        Overrides:
        isNotColliding in class EntityLiving
      • getCanSpawnHere

        public boolean getCanSpawnHere()
        + Checks if the entity's current position is a valid location to spawn this entity.
        Overrides:
        getCanSpawnHere in class EntityMob
      • 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
      • moveEntityWithHeading

        public void moveEntityWithHeading​(float f,
                                          float f1)
        + Moves the entity based on the specified heading. Args: strafe, forward
        Overrides:
        moveEntityWithHeading in class EntityLivingBase