Class EntityZombie

  • All Implemented Interfaces:
    IMob, IAnimals, org.teavm.jso.JSObject
    Direct Known Subclasses:
    EntityPigZombie

    public class EntityZombie
    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)
    • Field Detail

      • reinforcementChance

        protected static final IAttribute reinforcementChance
        + The attribute which determines the chance that this mob will spawn reinforcements
    • Constructor Detail

      • EntityZombie

        public EntityZombie​(World worldIn)
    • Method Detail

      • getTotalArmorValue

        public int getTotalArmorValue()
        + Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue
        Overrides:
        getTotalArmorValue in class EntityLivingBase
      • isBreakDoorsTaskSet

        public boolean isBreakDoorsTaskSet()
      • isChild

        public boolean isChild()
        + If Animal, checks if the age timer is negative
        Overrides:
        isChild in class EntityLivingBase
      • setChild

        public void setChild​(boolean childZombie)
        + Set whether this zombie is a child.
      • isVillager

        public boolean isVillager()
        + Return whether this zombie is a villager.
      • setVillager

        public void setVillager​(boolean villager)
        + Set whether this zombie is a villager.
      • 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
      • addRandomDrop

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

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

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

        public void onKillEntity​(EntityLivingBase entitylivingbase)
        + This method gets called when the entity kills another one.
        Overrides:
        onKillEntity in class Entity
      • 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
      • 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 EntityLiving
      • startConversion

        protected void startConversion​(int ticks)
        + Starts converting this zombie into a villager. The zombie converts into a villager after the specified time in ticks.
      • canDespawn

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

        public boolean isConverting()
        + Returns whether this zombie is in the process of converting to a villager
      • convertToVillager

        protected void convertToVillager()
        + Convert this zombie into a villager.
      • getConversionTimeBoost

        protected int getConversionTimeBoost()
        + Return the amount of time decremented from conversionTime every tick.
      • setChildSize

        public void setChildSize​(boolean isChild)
        + sets the size of the entity to be half of its current size if true.
      • setSize

        protected final void setSize​(float f,
                                     float f1)
        + Sets the width and height of the entity. Args: width, height
        Overrides:
        setSize in class Entity
      • multiplySize

        protected final void multiplySize​(float size)
        + Multiplies the height and width by the provided float.
      • getYOffset

        public double getYOffset()
        + Returns the Y Offset of this entity.
        Overrides:
        getYOffset in class Entity