Package net.minecraft

Class class_12116

All Implemented Interfaces:
ComponentsAccess, Attackable, DataTracked, EquipmentHolder, JumpingMount, Leashable, Mount, Tameable, Targeter, ScoreHolder, HeldItemContext, Nameable, DebugTrackable, EntityLike, UniquelyIdentifiable, ServerWaypoint, Waypoint
Direct Known Subclasses:
class_12117, class_12119

public abstract class class_12116 extends TameableEntity implements JumpingMount
Mappings:
Namespace Name
named net/minecraft/class_12116
intermediary net/minecraft/class_12116
official cvg
  • Field Details

    • field_63349

      public static final int field_63349
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63349 Lnet/minecraft/class_12116;field_63349:I
      intermediary field_63349 Lnet/minecraft/class_12116;field_63349:I
      official cz Lcvg;cz:I
    • field_63328

      public static final int field_63328
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63328 Lnet/minecraft/class_12116;field_63328:I
      intermediary field_63328 Lnet/minecraft/class_12116;field_63328:I
      official cA Lcvg;cA:I
    • field_63329

      public static final int field_63329
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63329 Lnet/minecraft/class_12116;field_63329:I
      intermediary field_63329 Lnet/minecraft/class_12116;field_63329:I
      official cB Lcvg;cB:I
    • field_63331

      private static final int field_63331
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63331 Lnet/minecraft/class_12116;field_63331:I
      intermediary field_63331 Lnet/minecraft/class_12116;field_63331:I
      official cD Lcvg;cD:I
    • field_63332

      private static final int field_63332
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63332 Lnet/minecraft/class_12116;field_63332:I
      intermediary field_63332 Lnet/minecraft/class_12116;field_63332:I
      official cE Lcvg;cE:I
    • field_63333

      private static final int field_63333
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63333 Lnet/minecraft/class_12116;field_63333:I
      intermediary field_63333 Lnet/minecraft/class_12116;field_63333:I
      official cF Lcvg;cF:I
    • field_63334

      private static final double field_63334
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63334 Lnet/minecraft/class_12116;field_63334:D
      intermediary field_63334 Lnet/minecraft/class_12116;field_63334:D
      official cG Lcvg;cG:D
    • field_63335

      private static final float field_63335
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63335 Lnet/minecraft/class_12116;field_63335:F
      intermediary field_63335 Lnet/minecraft/class_12116;field_63335:F
      official cH Lcvg;cH:F
    • field_63336

      private static final float field_63336
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63336 Lnet/minecraft/class_12116;field_63336:F
      intermediary field_63336 Lnet/minecraft/class_12116;field_63336:F
      official cI Lcvg;cI:F
    • field_63337

      private static final TrackedData<Boolean> field_63337
      Mappings:
      Namespace Name Mixin selector
      named field_63337 Lnet/minecraft/class_12116;field_63337:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_63337 Lnet/minecraft/class_12116;field_63337:Lnet/minecraft/class_2940;
      official cJ Lcvg;cJ:Lamb;
    • field_63338

      private static final int field_63338
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63338 Lnet/minecraft/class_12116;field_63338:I
      intermediary field_63338 Lnet/minecraft/class_12116;field_63338:I
      official cK Lcvg;cK:I
    • field_63339

      private static final int field_63339
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63339 Lnet/minecraft/class_12116;field_63339:I
      intermediary field_63339 Lnet/minecraft/class_12116;field_63339:I
      official cL Lcvg;cL:I
    • field_63340

      private static final float field_63340
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63340 Lnet/minecraft/class_12116;field_63340:F
      intermediary field_63340 Lnet/minecraft/class_12116;field_63340:F
      official cM Lcvg;cM:F
    • field_63341

      private static final float field_63341
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63341 Lnet/minecraft/class_12116;field_63341:F
      intermediary field_63341 Lnet/minecraft/class_12116;field_63341:F
      official cN Lcvg;cN:F
    • field_63343

      private static final double field_63343
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63343 Lnet/minecraft/class_12116;field_63343:D
      intermediary field_63343 Lnet/minecraft/class_12116;field_63343:D
      official cP Lcvg;cP:D
    • field_63344

      private static final double field_63344
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63344 Lnet/minecraft/class_12116;field_63344:D
      intermediary field_63344 Lnet/minecraft/class_12116;field_63344:D
      official cQ Lcvg;cQ:D
    • field_63345

      private static final double field_63345
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63345 Lnet/minecraft/class_12116;field_63345:D
      intermediary field_63345 Lnet/minecraft/class_12116;field_63345:D
      official cR Lcvg;cR:D
    • field_63346

      private static final double field_63346
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63346 Lnet/minecraft/class_12116;field_63346:D
      intermediary field_63346 Lnet/minecraft/class_12116;field_63346:D
      official cU Lcvg;cU:D
    • field_63347

      private static final float field_63347
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63347 Lnet/minecraft/class_12116;field_63347:F
      intermediary field_63347 Lnet/minecraft/class_12116;field_63347:F
      official cV Lcvg;cV:F
    • field_63348

      private static final float field_63348
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63348 Lnet/minecraft/class_12116;field_63348:F
      intermediary field_63348 Lnet/minecraft/class_12116;field_63348:F
      official cW Lcvg;cW:F
    • field_63342

      private int field_63342
      Mappings:
      Namespace Name Mixin selector
      named field_63342 Lnet/minecraft/class_12116;field_63342:I
      intermediary field_63342 Lnet/minecraft/class_12116;field_63342:I
      official cO Lcvg;cO:I
    • field_63330

      protected float field_63330
      Mappings:
      Namespace Name Mixin selector
      named field_63330 Lnet/minecraft/class_12116;field_63330:F
      intermediary field_63330 Lnet/minecraft/class_12116;field_63330:F
      official cC Lcvg;cC:F
  • Constructor Details

    • class_12116

      protected class_12116(EntityType<? extends class_12116> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lcfg;<init>(Lcfp;Ldtq;)V
  • Method Details

    • isBreedingItem

      public boolean isBreedingItem(ItemStack stack)
      Specified by:
      isBreedingItem in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      official i Lcsd;i(Ldji;)Z
    • eat

      protected void eat(PlayerEntity player, Hand hand, ItemStack stack)
      Overrides:
      eat in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named eat Lnet/minecraft/entity/mob/MobEntity;eat(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;)V
      intermediary method_6475 Lnet/minecraft/class_1308;method_6475(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)V
      official a Lcgj;a(Ldbe;Lccy;Ldji;)V
    • method_75156

      public static DefaultAttributeContainer.Builder method_75156()
      Mappings:
      Namespace Name Mixin selector
      named method_75156 Lnet/minecraft/class_12116;method_75156()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_75156 Lnet/minecraft/class_12116;method_75156()Lnet/minecraft/class_5132$class_5133;
      official gX Lcvg;gX()Lchm$a;
    • isPushedByFluids

      public boolean isPushedByFluids()
      Returns whether the entity is pushed by fluids.
      Overrides:
      isPushedByFluids in class Entity
      Returns:
      whether the entity is pushed by fluids
      API Note:
      Aquatic mobs should override this to return false. Players are not pushed by fluids if they can fly (e.g. because of game mode).
      Mappings:
      Namespace Name Mixin selector
      named isPushedByFluids Lnet/minecraft/entity/Entity;isPushedByFluids()Z
      intermediary method_5675 Lnet/minecraft/class_1297;method_5675()Z
      official cX Lcfg;cX()Z
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      official b Lcgj;b(Ldtq;)Lcpw;
    • getPathfindingFavor

      public float getPathfindingFavor(BlockPos pos, WorldView world)
      Overrides:
      getPathfindingFavor in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named getPathfindingFavor Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
      intermediary method_6144 Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
      official a Lcgp;a(Liz;Ldtt;)F
    • method_75154

      public static boolean method_75154(EntityType<? extends class_12116> entityType, WorldAccess worldAccess, SpawnReason spawnReason, BlockPos blockPos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named method_75154 Lnet/minecraft/class_12116;method_75154(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_75154 Lnet/minecraft/class_12116;method_75154(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official c Lcvg;c(Lcfp;Ldtr;Lcfo;Liz;Lbgs;)Z
    • canSpawn

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

      public int getMaxAir()
      Returns the maximum amount of air the entity can hold, in ticks.

      Most entities have the max air of 300 ticks, or 15 seconds. DolphinEntity has 4800 ticks or 4 minutes; AxolotlEntity has 6000 ticks or 5 minutes. Note that this does not include enchantments.

      Overrides:
      getMaxAir in class Entity
      Returns:
      the maximum amount of air the entity can hold, in ticks
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getMaxAir Lnet/minecraft/entity/Entity;getMaxAir()I
      intermediary method_5748 Lnet/minecraft/class_1297;method_5748()I
      official cF Lcfg;cF()I
    • method_75153

      protected void method_75153(ServerWorld serverWorld, int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_75153 Lnet/minecraft/class_12116;method_75153(Lnet/minecraft/server/world/ServerWorld;I)V
      intermediary method_75153 Lnet/minecraft/class_12116;method_75153(Lnet/minecraft/class_3218;I)V
      official a Lcvg;a(Laxm;I)V
    • baseTick

      public void baseTick()
      Overrides:
      baseTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named baseTick Lnet/minecraft/entity/Entity;baseTick()V
      intermediary method_5670 Lnet/minecraft/class_1297;method_5670()V
      official aH Lcfg;aH()V
    • canUseSlot

      public boolean canUseSlot(EquipmentSlot slot)
      Overrides:
      canUseSlot in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named canUseSlot Lnet/minecraft/entity/LivingEntity;canUseSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_56991 Lnet/minecraft/class_1309;method_56991(Lnet/minecraft/class_1304;)Z
      official e Lcgh;e(Lcfq;)Z
    • canAddPassenger

      protected boolean canAddPassenger(Entity passenger)
      Returns whether entity can ride this entity.

      Returning false causes other entities to be unable to ride this entity. For example, BoatEntity uses this to restrict how many passengers can ride the same boat (2 for normal, 1 for chest boat).

      This is the opposite of Entity.canStartRiding(net.minecraft.entity.Entity).

      Overrides:
      canAddPassenger in class Entity
      Returns:
      whether entity can ride this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named canAddPassenger Lnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
      intermediary method_5818 Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Z
      official s Lcfg;s(Lcfg;)Z
    • getControllingPassenger

      @Nullable public @Nullable LivingEntity getControllingPassenger()
      Returns the passenger in control of this entity, or null if there is none.

      Rideable entities should override this to return the entity. This is usually #getFirstPassenger.

      Overrides:
      getControllingPassenger in class MobEntity
      Returns:
      the passenger in control of this entity, or null if there is none
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getControllingPassenger Lnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
      intermediary method_5642 Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;
      official dh Lcfg;dh()Lcgh;
    • getControlledMovementInput

      protected Vec3d getControlledMovementInput(PlayerEntity controllingPlayer, Vec3d movementInput)
      Overrides:
      getControlledMovementInput in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getControlledMovementInput Lnet/minecraft/entity/LivingEntity;getControlledMovementInput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_49482 Lnet/minecraft/class_1309;method_49482(Lnet/minecraft/class_1657;Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
      official b Lcgh;b(Ldbe;Lfqj;)Lfqj;
    • method_75165

      protected Vec2f method_75165(LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      named method_75165 Lnet/minecraft/class_12116;method_75165(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec2f;
      intermediary method_75165 Lnet/minecraft/class_12116;method_75165(Lnet/minecraft/class_1309;)Lnet/minecraft/class_241;
      official k Lcvg;k(Lcgh;)Lfqi;
    • tickControlled

      protected void tickControlled(PlayerEntity controllingPlayer, Vec3d movementInput)
      Overrides:
      tickControlled in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named tickControlled Lnet/minecraft/entity/LivingEntity;tickControlled(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_49481 Lnet/minecraft/class_1309;method_49481(Lnet/minecraft/class_1657;Lnet/minecraft/class_243;)V
      official a Lcgh;a(Ldbe;Lfqj;)V
    • travel

      public void travel(Vec3d movementInput)
      Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.

      See vanilla examples of custom horse vehicle and

      invalid reference
      flying entities
      .
      Overrides:
      travel in class LivingEntity
      Parameters:
      movementInput - represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order
      Mappings:
      Namespace Name Mixin selector
      named travel Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_6091 Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
      official m Lcgh;m(Lfqj;)V
    • getSaddledSpeed

      protected float getSaddledSpeed(PlayerEntity controllingPlayer)
      Overrides:
      getSaddledSpeed in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getSaddledSpeed Lnet/minecraft/entity/LivingEntity;getSaddledSpeed(Lnet/minecraft/entity/player/PlayerEntity;)F
      intermediary method_49485 Lnet/minecraft/class_1309;method_49485(Lnet/minecraft/class_1657;)F
      official f Lcgh;f(Ldbe;)F
    • method_75163

      protected void method_75163(PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      named method_75163 Lnet/minecraft/class_12116;method_75163(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_75163 Lnet/minecraft/class_12116;method_75163(Lnet/minecraft/class_1657;)V
      official i Lcvg;i(Ldbe;)V
    • method_75161

      private int method_75161()
      Mappings:
      Namespace Name Mixin selector
      named method_75161 Lnet/minecraft/class_12116;method_75161()I
      intermediary method_75161 Lnet/minecraft/class_12116;method_75161()I
      official hc Lcvg;hc()I
    • method_75157

      protected void method_75157()
      Mappings:
      Namespace Name Mixin selector
      named method_75157 Lnet/minecraft/class_12116;method_75157()V
      intermediary method_75157 Lnet/minecraft/class_12116;method_75157()V
      official gY Lcvg;gY()V
    • mobTick

      protected void mobTick(ServerWorld world)
      Overrides:
      mobTick in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958(Lnet/minecraft/class_3218;)V
      official a Lcgj;a(Laxm;)V
    • method_75155

      private void method_75155(World world)
      Mappings:
      Namespace Name Mixin selector
      named method_75155 Lnet/minecraft/class_12116;method_75155(Lnet/minecraft/world/World;)V
      intermediary method_75155 Lnet/minecraft/class_12116;method_75155(Lnet/minecraft/class_1937;)V
      official c Lcvg;c(Ldtq;)V
    • method_75162

      private void method_75162()
      Mappings:
      Namespace Name Mixin selector
      named method_75162 Lnet/minecraft/class_12116;method_75162()V
      intermediary method_75162 Lnet/minecraft/class_12116;method_75162()V
      official hd Lcvg;hd()V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official g Lcfg;g()V
    • canJump

      public boolean canJump()
      Specified by:
      canJump in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named canJump Lnet/minecraft/entity/JumpingMount;canJump()Z
      intermediary method_6153 Lnet/minecraft/class_1316;method_6153()Z
      official a Lcgr;a()Z
    • setJumpStrength

      public void setJumpStrength(int strength)
      Specified by:
      setJumpStrength in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named setJumpStrength Lnet/minecraft/entity/JumpingMount;setJumpStrength(I)V
      intermediary method_6154 Lnet/minecraft/class_1316;method_6154(I)V
      official b Lcgr;b(I)V
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class TameableEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lcfg;a(Lamf$a;)V
    • method_75158

      public boolean method_75158()
      Mappings:
      Namespace Name Mixin selector
      named method_75158 Lnet/minecraft/class_12116;method_75158()Z
      intermediary method_75158 Lnet/minecraft/class_12116;method_75158()Z
      official gZ Lcvg;gZ()Z
    • method_75151

      public void method_75151(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_75151 Lnet/minecraft/class_12116;method_75151(Z)V
      intermediary method_75151 Lnet/minecraft/class_12116;method_75151(Z)V
      official A Lcvg;A(Z)V
    • method_75152

      protected void method_75152(float float2, PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      named method_75152 Lnet/minecraft/class_12116;method_75152(FLnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_75152 Lnet/minecraft/class_12116;method_75152(FLnet/minecraft/class_1657;)V
      official a Lcvg;a(FLdbe;)V
    • startJumping

      public void startJumping(int height)
      Specified by:
      startJumping in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named startJumping Lnet/minecraft/entity/JumpingMount;startJumping(I)V
      intermediary method_6155 Lnet/minecraft/class_1316;method_6155(I)V
      official c Lcgr;c(I)V
    • getJumpCooldown

      public int getJumpCooldown()
      Specified by:
      getJumpCooldown in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named getJumpCooldown Lnet/minecraft/entity/JumpingMount;getJumpCooldown()I
      intermediary method_45327 Lnet/minecraft/class_1316;method_45327()I
      official c Lcgr;c()I
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Specified by:
      onTrackedDataSet in interface DataTracked
      Overrides:
      onTrackedDataSet in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named onTrackedDataSet Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
      intermediary method_5674 Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
      official a Lame;a(Lamb;)V
    • stopJumping

      public void stopJumping()
      Specified by:
      stopJumping in interface JumpingMount
      Mappings:
      Namespace Name Mixin selector
      named stopJumping Lnet/minecraft/entity/JumpingMount;stopJumping()V
      intermediary method_6156 Lnet/minecraft/class_1316;method_6156()V
      official b Lcgr;b()V
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official b Lcfg;b(Liz;Leln;)V
    • method_75159

      @Nullable protected @Nullable SoundEvent method_75159()
      Mappings:
      Namespace Name Mixin selector
      named method_75159 Lnet/minecraft/class_12116;method_75159()Lnet/minecraft/sound/SoundEvent;
      intermediary method_75159 Lnet/minecraft/class_12116;method_75159()Lnet/minecraft/class_3414;
      official ha Lcvg;ha()Lbde;
    • method_75160

      @Nullable protected @Nullable SoundEvent method_75160()
      Mappings:
      Namespace Name Mixin selector
      named method_75160 Lnet/minecraft/class_12116;method_75160()Lnet/minecraft/sound/SoundEvent;
      intermediary method_75160 Lnet/minecraft/class_12116;method_75160()Lnet/minecraft/class_3414;
      official hb Lcvg;hb()Lbde;
    • interactMob

      public ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official b Lcgj;b(Ldbe;Lccy;)Lccz;
    • method_75164

      private void method_75164(PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      named method_75164 Lnet/minecraft/class_12116;method_75164(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_75164 Lnet/minecraft/class_12116;method_75164(Lnet/minecraft/class_1657;)V
      official j Lcvg;j(Ldbe;)V
    • cannotDespawn

      public boolean cannotDespawn()
      Overrides:
      cannotDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named cannotDespawn Lnet/minecraft/entity/mob/MobEntity;cannotDespawn()Z
      intermediary method_17326 Lnet/minecraft/class_1308;method_17326()Z
      official af Lcgj;af()Z
    • damage

      public boolean damage(ServerWorld world, DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      LivingEntity has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like ItemEntity also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class LivingEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_64397 Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
      official a Lcfg;a(Laxm;Lcdt;F)Z
    • canHaveStatusEffect

      public boolean canHaveStatusEffect(StatusEffectInstance effect)
      Overrides:
      canHaveStatusEffect in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named canHaveStatusEffect Lnet/minecraft/entity/LivingEntity;canHaveStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;)Z
      intermediary method_6049 Lnet/minecraft/class_1309;method_6049(Lnet/minecraft/class_1293;)Z
      official b Lcgh;b(Lcei;)Z
    • initialize

      public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      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/entity/EntityData;
      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_1315;
      official a Lcgj;a(Ldui;Lccx;Lcfo;Lcgz;)Lcgz;