Class OcelotEntity

All Implemented Interfaces:
Attackable, Targeter, CommandOutput, Nameable, EntityLike

public class OcelotEntity extends AnimalEntity
Mappings:
Namespace Name
official brx
intermediary net/minecraft/class_3701
named net/minecraft/entity/passive/OcelotEntity
  • Field Details

    • CROUCHING_SPEED

      public static final double CROUCHING_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bT Lbrx;bT:D
      intermediary field_30340 Lnet/minecraft/class_3701;field_30340:D
      named CROUCHING_SPEED Lnet/minecraft/entity/passive/OcelotEntity;CROUCHING_SPEED:D
    • NORMAL_SPEED

      public static final double NORMAL_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bU Lbrx;bU:D
      intermediary field_30341 Lnet/minecraft/class_3701;field_30341:D
      named NORMAL_SPEED Lnet/minecraft/entity/passive/OcelotEntity;NORMAL_SPEED:D
    • SPRINTING_SPEED

      public static final double SPRINTING_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bW Lbrx;bW:D
      intermediary field_30342 Lnet/minecraft/class_3701;field_30342:D
      named SPRINTING_SPEED Lnet/minecraft/entity/passive/OcelotEntity;SPRINTING_SPEED:D
    • TAMING_INGREDIENT

      private static final Ingredient TAMING_INGREDIENT
      Mappings:
      Namespace Name Mixin selector
      official bX Lbrx;bX:Lcix;
      intermediary field_16299 Lnet/minecraft/class_3701;field_16299:Lnet/minecraft/class_1856;
      named TAMING_INGREDIENT Lnet/minecraft/entity/passive/OcelotEntity;TAMING_INGREDIENT:Lnet/minecraft/recipe/Ingredient;
    • TRUSTING

      private static final TrackedData<Boolean> TRUSTING
      Mappings:
      Namespace Name Mixin selector
      official bY Lbrx;bY:Laby;
      intermediary field_16301 Lnet/minecraft/class_3701;field_16301:Lnet/minecraft/class_2940;
      named TRUSTING Lnet/minecraft/entity/passive/OcelotEntity;TRUSTING:Lnet/minecraft/entity/data/TrackedData;
    • fleeGoal

      Mappings:
      Namespace Name Mixin selector
      official bZ Lbrx;bZ:Lbrx$a;
      intermediary field_16300 Lnet/minecraft/class_3701;field_16300:Lnet/minecraft/class_3701$class_3702;
      named fleeGoal Lnet/minecraft/entity/passive/OcelotEntity;fleeGoal:Lnet/minecraft/entity/passive/OcelotEntity$FleeGoal;
    • temptGoal

      Mappings:
      Namespace Name Mixin selector
      official ca Lbrx;ca:Lbrx$b;
      intermediary field_16302 Lnet/minecraft/class_3701;field_16302:Lnet/minecraft/class_3701$class_3703;
      named temptGoal Lnet/minecraft/entity/passive/OcelotEntity;temptGoal:Lnet/minecraft/entity/passive/OcelotEntity$OcelotTemptGoal;
  • Constructor Details

    • OcelotEntity

      public OcelotEntity(EntityType<? extends OcelotEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfh;<init>(Lbfl;Lcmk;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
  • Method Details

    • isTrusting

      boolean isTrusting()
      Mappings:
      Namespace Name Mixin selector
      official t Lbrx;t()Z
      intermediary method_16099 Lnet/minecraft/class_3701;method_16099()Z
      named isTrusting Lnet/minecraft/entity/passive/OcelotEntity;isTrusting()Z
    • setTrusting

      private void setTrusting(boolean trusting)
      Mappings:
      Namespace Name Mixin selector
      official x Lbrx;x(Z)V
      intermediary method_16102 Lnet/minecraft/class_3701;method_16102(Z)V
      named setTrusting Lnet/minecraft/entity/passive/OcelotEntity;setTrusting(Z)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Overrides:
      writeCustomDataToNbt in class AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbfh;b(Lqr;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readCustomDataFromNbt in class AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfh;a(Lqr;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbfh;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official w Lbfz;w()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
    • mobTick

      public void mobTick()
      Overrides:
      mobTick in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official V Lbfz;V()V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official h Lbfz;h(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
    • createOcelotAttributes

      public static DefaultAttributeContainer.Builder createOcelotAttributes()
      Mappings:
      Namespace Name Mixin selector
      official p Lbrx;p()Lbhd$a;
      intermediary method_26887 Lnet/minecraft/class_3701;method_26887()Lnet/minecraft/class_5132$class_5133;
      named createOcelotAttributes Lnet/minecraft/entity/passive/OcelotEntity;createOcelotAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • getAmbientSound

      @Nullable protected @Nullable SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official r Lbfz;r()Lamg;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
    • getMinAmbientSoundDelay

      public int getMinAmbientSoundDelay()
      Overrides:
      getMinAmbientSoundDelay in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official L Lbfz;L()I
      intermediary method_5970 Lnet/minecraft/class_1308;method_5970()I
      named getMinAmbientSoundDelay Lnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official d Lbfx;d(Lbem;)Lamg;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official g_ Lbfx;g_()Lamg;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • getAttackDamage

      private float getAttackDamage()
      Mappings:
      Namespace Name Mixin selector
      official fX Lbrx;fX()F
      intermediary method_22329 Lnet/minecraft/class_3701;method_22329()F
      named getAttackDamage Lnet/minecraft/entity/passive/OcelotEntity;getAttackDamage()F
    • tryAttack

      public boolean tryAttack(Entity target)
      Overrides:
      tryAttack in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official z Lbfx;z(Lbfh;)Z
      intermediary method_6121 Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_1297;)Z
      named tryAttack Lnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/entity/Entity;)Z
    • interactMob

      public ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbfz;b(Lbym;Lbdv;)Lbdw;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbfh;b(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
    • showEmoteParticle

      private void showEmoteParticle(boolean positive)
      Mappings:
      Namespace Name Mixin selector
      official y Lbrx;y(Z)V
      intermediary method_16100 Lnet/minecraft/class_3701;method_16100(Z)V
      named showEmoteParticle Lnet/minecraft/entity/passive/OcelotEntity;showEmoteParticle(Z)V
    • updateFleeing

      protected void updateFleeing()
      Mappings:
      Namespace Name Mixin selector
      official q Lbrx;q()V
      intermediary method_16103 Lnet/minecraft/class_3701;method_16103()V
      named updateFleeing Lnet/minecraft/entity/passive/OcelotEntity;updateFleeing()V
    • createChild

      @Nullable public @Nullable OcelotEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbrx;b(Laif;Lbfc;)Lbrx;
      intermediary method_16104 Lnet/minecraft/class_3701;method_16104(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_3701;
      named createChild Lnet/minecraft/entity/passive/OcelotEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/OcelotEntity;
    • isBreedingItem

      public boolean isBreedingItem(ItemStack stack)
      Overrides:
      isBreedingItem in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official m Lbrj;m(Lcfx;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
    • canSpawn

      public static boolean canSpawn(EntityType<OcelotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official c Lbrx;c(Lbfl;Lcml;Lbgb;Lgu;Lapf;)Z
      intermediary method_20666 Lnet/minecraft/class_3701;method_20666(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      named canSpawn Lnet/minecraft/entity/passive/OcelotEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
    • canSpawn

      public boolean canSpawn(WorldView world)
      Overrides:
      canSpawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfz;a(Lcmn;)Z
      intermediary method_5957 Lnet/minecraft/class_1308;method_5957(Lnet/minecraft/class_4538;)Z
      named canSpawn Lnet/minecraft/entity/mob/MobEntity;canSpawn(Lnet/minecraft/world/WorldView;)Z
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt)
      Overrides:
      initialize in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfz;a(Lcmz;Lbdu;Lbgb;Lbgr;Lqr;)Lbgr;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1315;
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
    • getLeashOffset

      public Vec3d getLeashOffset()
      Returns the offset from the entity's position where the leash is attached to.

      This is different from Entity.getLeashPos(float); this method is called on the entity which a leash is attached to.

      Overrides:
      getLeashOffset in class Entity
      Returns:
      the offset from the entity's position where the leash is attached to
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cG Lbfh;cG()Leea;
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
    • bypassesSteppingEffects

      public boolean bypassesSteppingEffects()
      Returns whether the entity should bypass effects caused by stepping.

      This returns Entity.isSneaking() by default.

      Overrides:
      bypassesSteppingEffects in class Entity
      Returns:
      whether the entity should bypass effects caused by stepping
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bQ Lbfh;bQ()Z
      intermediary method_21749 Lnet/minecraft/class_1297;method_21749()Z
      named bypassesSteppingEffects Lnet/minecraft/entity/Entity;bypassesSteppingEffects()Z