Class EntityOcelot

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

    public class EntityOcelot
    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

      • EntityOcelot

        public EntityOcelot​(World worldIn)
    • Method Detail

      • canDespawn

        protected boolean canDespawn()
        + Determines if an entity can be despawned, used on idle far away entities
        Overrides:
        canDespawn 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
      • getSoundVolume

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

        protected void dropFewItems​(boolean var1,
                                    int var2)
        + Drop 0-2 items of this living's type
        Overrides:
        dropFewItems in class EntityLiving
      • 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
      • 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
      • getTameSkin

        public int getTameSkin()
      • setTameSkin

        public void setTameSkin​(int skinId)
      • getCanSpawnHere

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

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

        public java.lang.String getName()
        + Gets the name of this command sender (usually username, but possibly "Rcon")
        Overrides:
        getName 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