Class EntitySlime

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

    public class EntitySlime
    extends EntityLiving
    implements IMob
    + 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

      • squishAmount

        public float squishAmount
      • squishFactor

        public float squishFactor
      • prevSquishFactor

        public float prevSquishFactor
    • Constructor Detail

      • EntitySlime

        public EntitySlime​(World worldIn)
    • Method Detail

      • setSlimeSize

        protected void setSlimeSize​(int size)
      • getSlimeSize

        public int getSlimeSize()
        + Returns the size of the slime.
      • 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
      • getJumpSound

        protected java.lang.String getJumpSound()
        + Returns the name of the sound played when the slime jumps.
      • onUpdate

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

        protected void alterSquishAmount()
      • getJumpDelay

        protected int getJumpDelay()
        + Gets the amount of time the slime needs to wait between jumps.
      • createInstance

        protected EntitySlime createInstance()
      • applyEntityCollision

        public void applyEntityCollision​(Entity entity)
        + Applies a velocity to each of the entities pushing them away from each other. Args: entity
        Overrides:
        applyEntityCollision in class Entity
      • onCollideWithPlayer

        public void onCollideWithPlayer​(EntityPlayer entityplayer)
        + Called by a player entity when they collide with an entity
        Overrides:
        onCollideWithPlayer in class Entity
      • func_175451_e

        protected void func_175451_e​(EntityLivingBase parEntityLivingBase)
      • canDamagePlayer

        protected boolean canDamagePlayer()
        + Indicates weather the slime is able to damage the player (based upon the slime's size)
      • getAttackStrength

        protected int getAttackStrength()
        + Gets the amount of damage dealt to the player when "attacked" by the slime.
      • 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
      • getCanSpawnHere

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

        protected float getSoundVolume()
        + Returns the volume for the sounds this mob makes.
        Overrides:
        getSoundVolume in class EntityLivingBase
      • 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
      • makesSoundOnJump

        protected boolean makesSoundOnJump()
        + Returns true if the slime makes a sound when it jumps (based upon the slime's size)
      • makesSoundOnLand

        protected boolean makesSoundOnLand()
        + Returns true if the slime makes a sound when it lands after a jump (based upon the slime's size)
      • jump

        protected void jump()
        + Causes this entity to do an upwards motion (jumping).
        Overrides:
        jump in class EntityLivingBase
      • 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