Class AbstractHorseEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, JumpingMount, Leashable, Mount, RideableInventory, Saddleable, Tameable, Targeter, InventoryChangedListener, ScoreHolder, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
AbstractDonkeyEntity, CamelEntity, HorseEntity, SkeletonHorseEntity, ZombieHorseEntity

public abstract class AbstractHorseEntity extends AnimalEntity implements InventoryChangedListener, RideableInventory, Tameable, JumpingMount, Saddleable
Mappings:
Namespace Name
named net/minecraft/entity/passive/AbstractHorseEntity
intermediary net/minecraft/class_1496
official chi
  • Field Details Link icon

    • field_30413 Link icon

      public static final int field_30413
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30413 Lnet/minecraft/entity/passive/AbstractHorseEntity;field_30413:I
      intermediary field_30413 Lnet/minecraft/class_1496;field_30413:I
      official cn Lchi;cn:I
    • field_30414 Link icon

      public static final int field_30414
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30414 Lnet/minecraft/entity/passive/AbstractHorseEntity;field_30414:I
      intermediary field_30414 Lnet/minecraft/class_1496;field_30414:I
      official co Lchi;co:I
    • field_30415 Link icon

      public static final int field_30415
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30415 Lnet/minecraft/entity/passive/AbstractHorseEntity;field_30415:I
      intermediary field_30415 Lnet/minecraft/class_1496;field_30415:I
      official cp Lchi;cp:I
    • field_42647 Link icon

      public static final double field_42647
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_42647 Lnet/minecraft/entity/passive/AbstractHorseEntity;field_42647:D
      intermediary field_42647 Lnet/minecraft/class_1496;field_42647:D
      official cq Lchi;cq:D
    • MIN_MOVEMENT_SPEED_BONUS Link icon

      private static final float MIN_MOVEMENT_SPEED_BONUS
      Mappings:
      Namespace Name Mixin selector
      named MIN_MOVEMENT_SPEED_BONUS Lnet/minecraft/entity/passive/AbstractHorseEntity;MIN_MOVEMENT_SPEED_BONUS:F
      intermediary field_42641 Lnet/minecraft/class_1496;field_42641:F
      official cc Lchi;cc:F
    • MAX_MOVEMENT_SPEED_BONUS Link icon

      private static final float MAX_MOVEMENT_SPEED_BONUS
      Mappings:
      Namespace Name Mixin selector
      named MAX_MOVEMENT_SPEED_BONUS Lnet/minecraft/entity/passive/AbstractHorseEntity;MAX_MOVEMENT_SPEED_BONUS:F
      intermediary field_42642 Lnet/minecraft/class_1496;field_42642:F
      official cd Lchi;cd:F
    • MIN_JUMP_STRENGTH_BONUS Link icon

      private static final float MIN_JUMP_STRENGTH_BONUS
      Mappings:
      Namespace Name Mixin selector
      named MIN_JUMP_STRENGTH_BONUS Lnet/minecraft/entity/passive/AbstractHorseEntity;MIN_JUMP_STRENGTH_BONUS:F
      intermediary field_42643 Lnet/minecraft/class_1496;field_42643:F
      official ce Lchi;ce:F
    • MAX_JUMP_STRENGTH_BONUS Link icon

      private static final float MAX_JUMP_STRENGTH_BONUS
      Mappings:
      Namespace Name Mixin selector
      named MAX_JUMP_STRENGTH_BONUS Lnet/minecraft/entity/passive/AbstractHorseEntity;MAX_JUMP_STRENGTH_BONUS:F
      intermediary field_42644 Lnet/minecraft/class_1496;field_42644:F
      official cg Lchi;cg:F
    • MIN_HEALTH_BONUS Link icon

      private static final float MIN_HEALTH_BONUS
      Mappings:
      Namespace Name Mixin selector
      named MIN_HEALTH_BONUS Lnet/minecraft/entity/passive/AbstractHorseEntity;MIN_HEALTH_BONUS:F
      intermediary field_42645 Lnet/minecraft/class_1496;field_42645:F
      official ch Lchi;ch:F
    • MAX_HEALTH_BONUS Link icon

      private static final float MAX_HEALTH_BONUS
      Mappings:
      Namespace Name Mixin selector
      named MAX_HEALTH_BONUS Lnet/minecraft/entity/passive/AbstractHorseEntity;MAX_HEALTH_BONUS:F
      intermediary field_42646 Lnet/minecraft/class_1496;field_42646:F
      official ci Lchi;ci:F
    • field_42979 Link icon

      private static final float field_42979
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_42979 Lnet/minecraft/entity/passive/AbstractHorseEntity;field_42979:F
      intermediary field_42979 Lnet/minecraft/class_1496;field_42979:F
      official cj Lchi;cj:F
    • field_42980 Link icon

      private static final float field_42980
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_42980 Lnet/minecraft/entity/passive/AbstractHorseEntity;field_42980:F
      intermediary field_42980 Lnet/minecraft/class_1496;field_42980:F
      official ck Lchi;ck:F
    • IS_BRED_HORSE Link icon

      private static final Predicate<LivingEntity> IS_BRED_HORSE
      Mappings:
      Namespace Name Mixin selector
      named IS_BRED_HORSE Lnet/minecraft/entity/passive/AbstractHorseEntity;IS_BRED_HORSE:Ljava/util/function/Predicate;
      intermediary field_6956 Lnet/minecraft/class_1496;field_6956:Ljava/util/function/Predicate;
      official cl Lchi;cl:Ljava/util/function/Predicate;
    • PARENT_HORSE_PREDICATE Link icon

      private static final TargetPredicate PARENT_HORSE_PREDICATE
      Mappings:
      Namespace Name Mixin selector
      named PARENT_HORSE_PREDICATE Lnet/minecraft/entity/passive/AbstractHorseEntity;PARENT_HORSE_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
      intermediary field_18118 Lnet/minecraft/class_1496;field_18118:Lnet/minecraft/class_4051;
      official cm Lchi;cm:Lcef;
    • HORSE_FLAGS Link icon

      private static final TrackedData<Byte> HORSE_FLAGS
      Mappings:
      Namespace Name Mixin selector
      named HORSE_FLAGS Lnet/minecraft/entity/passive/AbstractHorseEntity;HORSE_FLAGS:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_6959 Lnet/minecraft/class_1496;field_6959:Lnet/minecraft/class_2940;
      official cD Lchi;cD:Lajw;
    • TAMED_FLAG Link icon

      private static final int TAMED_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TAMED_FLAG Lnet/minecraft/entity/passive/AbstractHorseEntity;TAMED_FLAG:I
      intermediary field_30419 Lnet/minecraft/class_1496;field_30419:I
      official cE Lchi;cE:I
    • SADDLED_FLAG Link icon

      private static final int SADDLED_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SADDLED_FLAG Lnet/minecraft/entity/passive/AbstractHorseEntity;SADDLED_FLAG:I
      intermediary field_30420 Lnet/minecraft/class_1496;field_30420:I
      official cF Lchi;cF:I
    • BRED_FLAG Link icon

      private static final int BRED_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BRED_FLAG Lnet/minecraft/entity/passive/AbstractHorseEntity;BRED_FLAG:I
      intermediary field_30421 Lnet/minecraft/class_1496;field_30421:I
      official cG Lchi;cG:I
    • EATING_GRASS_FLAG Link icon

      private static final int EATING_GRASS_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named EATING_GRASS_FLAG Lnet/minecraft/entity/passive/AbstractHorseEntity;EATING_GRASS_FLAG:I
      intermediary field_30422 Lnet/minecraft/class_1496;field_30422:I
      official cH Lchi;cH:I
    • ANGRY_FLAG Link icon

      private static final int ANGRY_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ANGRY_FLAG Lnet/minecraft/entity/passive/AbstractHorseEntity;ANGRY_FLAG:I
      intermediary field_30423 Lnet/minecraft/class_1496;field_30423:I
      official cI Lchi;cI:I
    • EATING_FLAG Link icon

      private static final int EATING_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named EATING_FLAG Lnet/minecraft/entity/passive/AbstractHorseEntity;EATING_FLAG:I
      intermediary field_30424 Lnet/minecraft/class_1496;field_30424:I
      official cJ Lchi;cJ:I
    • field_30416 Link icon

      public static final int field_30416
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30416 Lnet/minecraft/entity/passive/AbstractHorseEntity;field_30416:I
      intermediary field_30416 Lnet/minecraft/class_1496;field_30416:I
      official cr Lchi;cr:I
    • field_30418 Link icon

      public static final int field_30418
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30418 Lnet/minecraft/entity/passive/AbstractHorseEntity;field_30418:I
      intermediary field_30418 Lnet/minecraft/class_1496;field_30418:I
      official cs Lchi;cs:I
    • eatingGrassTicks Link icon

      private int eatingGrassTicks
      Mappings:
      Namespace Name Mixin selector
      named eatingGrassTicks Lnet/minecraft/entity/passive/AbstractHorseEntity;eatingGrassTicks:I
      intermediary field_6971 Lnet/minecraft/class_1496;field_6971:I
      official cK Lchi;cK:I
    • eatingTicks Link icon

      private int eatingTicks
      Mappings:
      Namespace Name Mixin selector
      named eatingTicks Lnet/minecraft/entity/passive/AbstractHorseEntity;eatingTicks:I
      intermediary field_6973 Lnet/minecraft/class_1496;field_6973:I
      official cL Lchi;cL:I
    • angryTicks Link icon

      private int angryTicks
      Mappings:
      Namespace Name Mixin selector
      named angryTicks Lnet/minecraft/entity/passive/AbstractHorseEntity;angryTicks:I
      intermediary field_6970 Lnet/minecraft/class_1496;field_6970:I
      official cM Lchi;cM:I
    • tailWagTicks Link icon

      public int tailWagTicks
      Mappings:
      Namespace Name Mixin selector
      named tailWagTicks Lnet/minecraft/entity/passive/AbstractHorseEntity;tailWagTicks:I
      intermediary field_6957 Lnet/minecraft/class_1496;field_6957:I
      official ct Lchi;ct:I
    • field_6958 Link icon

      public int field_6958
      Mappings:
      Namespace Name Mixin selector
      named field_6958 Lnet/minecraft/entity/passive/AbstractHorseEntity;field_6958:I
      intermediary field_6958 Lnet/minecraft/class_1496;field_6958:I
      official cu Lchi;cu:I
    • inAir Link icon

      protected boolean inAir
      Mappings:
      Namespace Name Mixin selector
      named inAir Lnet/minecraft/entity/passive/AbstractHorseEntity;inAir:Z
      intermediary field_6968 Lnet/minecraft/class_1496;field_6968:Z
      official cv Lchi;cv:Z
    • items Link icon

      protected SimpleInventory items
      Mappings:
      Namespace Name Mixin selector
      named items Lnet/minecraft/entity/passive/AbstractHorseEntity;items:Lnet/minecraft/inventory/SimpleInventory;
      intermediary field_6962 Lnet/minecraft/class_1496;field_6962:Lnet/minecraft/class_1277;
      official cw Lchi;cw:Lbra;
    • temper Link icon

      protected int temper
      Mappings:
      Namespace Name Mixin selector
      named temper Lnet/minecraft/entity/passive/AbstractHorseEntity;temper:I
      intermediary field_6955 Lnet/minecraft/class_1496;field_6955:I
      official cx Lchi;cx:I
    • jumpStrength Link icon

      protected float jumpStrength
      Mappings:
      Namespace Name Mixin selector
      named jumpStrength Lnet/minecraft/entity/passive/AbstractHorseEntity;jumpStrength:F
      intermediary field_6976 Lnet/minecraft/class_1496;field_6976:F
      official cy Lchi;cy:F
    • jumping Link icon

      protected boolean jumping
      Mappings:
      Namespace Name Mixin selector
      named jumping Lnet/minecraft/entity/passive/AbstractHorseEntity;jumping:Z
      intermediary field_6960 Lnet/minecraft/class_1496;field_6960:Z
      official cz Lchi;cz:Z
    • eatingGrassAnimationProgress Link icon

      private float eatingGrassAnimationProgress
      Mappings:
      Namespace Name Mixin selector
      named eatingGrassAnimationProgress Lnet/minecraft/entity/passive/AbstractHorseEntity;eatingGrassAnimationProgress:F
      intermediary field_6969 Lnet/minecraft/class_1496;field_6969:F
      official cN Lchi;cN:F
    • lastEatingGrassAnimationProgress Link icon

      private float lastEatingGrassAnimationProgress
      Mappings:
      Namespace Name Mixin selector
      named lastEatingGrassAnimationProgress Lnet/minecraft/entity/passive/AbstractHorseEntity;lastEatingGrassAnimationProgress:F
      intermediary field_6966 Lnet/minecraft/class_1496;field_6966:F
      official cO Lchi;cO:F
    • angryAnimationProgress Link icon

      private float angryAnimationProgress
      Mappings:
      Namespace Name Mixin selector
      named angryAnimationProgress Lnet/minecraft/entity/passive/AbstractHorseEntity;angryAnimationProgress:F
      intermediary field_6967 Lnet/minecraft/class_1496;field_6967:F
      official cP Lchi;cP:F
    • lastAngryAnimationProgress Link icon

      private float lastAngryAnimationProgress
      Mappings:
      Namespace Name Mixin selector
      named lastAngryAnimationProgress Lnet/minecraft/entity/passive/AbstractHorseEntity;lastAngryAnimationProgress:F
      intermediary field_6963 Lnet/minecraft/class_1496;field_6963:F
      official cQ Lchi;cQ:F
    • eatingAnimationProgress Link icon

      private float eatingAnimationProgress
      Mappings:
      Namespace Name Mixin selector
      named eatingAnimationProgress Lnet/minecraft/entity/passive/AbstractHorseEntity;eatingAnimationProgress:F
      intermediary field_6965 Lnet/minecraft/class_1496;field_6965:F
      official cR Lchi;cR:F
    • lastEatingAnimationProgress Link icon

      private float lastEatingAnimationProgress
      Mappings:
      Namespace Name Mixin selector
      named lastEatingAnimationProgress Lnet/minecraft/entity/passive/AbstractHorseEntity;lastEatingAnimationProgress:F
      intermediary field_6961 Lnet/minecraft/class_1496;field_6961:F
      official cS Lchi;cS:F
    • playExtraHorseSounds Link icon

      protected boolean playExtraHorseSounds
      Mappings:
      Namespace Name Mixin selector
      named playExtraHorseSounds Lnet/minecraft/entity/passive/AbstractHorseEntity;playExtraHorseSounds:Z
      intermediary field_6964 Lnet/minecraft/class_1496;field_6964:Z
      official cA Lchi;cA:Z
    • soundTicks Link icon

      protected int soundTicks
      Mappings:
      Namespace Name Mixin selector
      named soundTicks Lnet/minecraft/entity/passive/AbstractHorseEntity;soundTicks:I
      intermediary field_6975 Lnet/minecraft/class_1496;field_6975:I
      official cB Lchi;cB:I
    • ownerUuid Link icon

      @Nullable private @Nullable UUID ownerUuid
      Mappings:
      Namespace Name Mixin selector
      named ownerUuid Lnet/minecraft/entity/passive/AbstractHorseEntity;ownerUuid:Ljava/util/UUID;
      intermediary field_42462 Lnet/minecraft/class_1496;field_42462:Ljava/util/UUID;
      official cT Lchi;cT:Ljava/util/UUID;
    • inventory Link icon

      private final Inventory inventory
      Mappings:
      Namespace Name Mixin selector
      named inventory Lnet/minecraft/entity/passive/AbstractHorseEntity;inventory:Lnet/minecraft/inventory/Inventory;
      intermediary field_48830 Lnet/minecraft/class_1496;field_48830:Lnet/minecraft/class_1263;
      official cU Lchi;cU:Lbqk;
  • Constructor Details Link icon

    • AbstractHorseEntity Link icon

      protected AbstractHorseEntity(EntityType<? extends AbstractHorseEntity> 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> Lbsr;<init>(Lbsx;Ldcw;)V
  • Method Details Link icon

    • initGoals Link icon

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official B Lbtp;B()V
    • initCustomGoals Link icon

      protected void initCustomGoals()
      Mappings:
      Namespace Name Mixin selector
      named initCustomGoals Lnet/minecraft/entity/passive/AbstractHorseEntity;initCustomGoals()V
      intermediary method_6764 Lnet/minecraft/class_1496;method_6764()V
      official gA Lchi;gA()V
    • initDataTracker Link icon

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class PassiveEntity
      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 Lbsr;a(Laka$a;)V
    • getHorseFlag Link icon

      protected boolean getHorseFlag(int bitmask)
      Mappings:
      Namespace Name Mixin selector
      named getHorseFlag Lnet/minecraft/entity/passive/AbstractHorseEntity;getHorseFlag(I)Z
      intermediary method_6730 Lnet/minecraft/class_1496;method_6730(I)Z
      official t Lchi;t(I)Z
    • setHorseFlag Link icon

      protected void setHorseFlag(int bitmask, boolean flag)
      Mappings:
      Namespace Name Mixin selector
      named setHorseFlag Lnet/minecraft/entity/passive/AbstractHorseEntity;setHorseFlag(IZ)V
      intermediary method_6769 Lnet/minecraft/class_1496;method_6769(IZ)V
      official d Lchi;d(IZ)V
    • isTame Link icon

      public boolean isTame()
      Mappings:
      Namespace Name Mixin selector
      named isTame Lnet/minecraft/entity/passive/AbstractHorseEntity;isTame()Z
      intermediary method_6727 Lnet/minecraft/class_1496;method_6727()Z
      official gz Lchi;gz()Z
    • getOwnerUuid Link icon

      @Nullable public @Nullable UUID getOwnerUuid()
      Specified by:
      getOwnerUuid in interface Tameable
      Mappings:
      Namespace Name Mixin selector
      named getOwnerUuid Lnet/minecraft/entity/Tameable;getOwnerUuid()Ljava/util/UUID;
      intermediary method_6139 Lnet/minecraft/class_6025;method_6139()Ljava/util/UUID;
      official aa_ Lbtv;aa_()Ljava/util/UUID;
    • setOwnerUuid Link icon

      public void setOwnerUuid(@Nullable @Nullable UUID ownerUuid)
      Mappings:
      Namespace Name Mixin selector
      named setOwnerUuid Lnet/minecraft/entity/passive/AbstractHorseEntity;setOwnerUuid(Ljava/util/UUID;)V
      intermediary method_6732 Lnet/minecraft/class_1496;method_6732(Ljava/util/UUID;)V
      official b Lchi;b(Ljava/util/UUID;)V
    • isInAir Link icon

      public boolean isInAir()
      Mappings:
      Namespace Name Mixin selector
      named isInAir Lnet/minecraft/entity/passive/AbstractHorseEntity;isInAir()Z
      intermediary method_6763 Lnet/minecraft/class_1496;method_6763()Z
      official gB Lchi;gB()Z
    • setTame Link icon

      public void setTame(boolean tame)
      Mappings:
      Namespace Name Mixin selector
      named setTame Lnet/minecraft/entity/passive/AbstractHorseEntity;setTame(Z)V
      intermediary method_6766 Lnet/minecraft/class_1496;method_6766(Z)V
      official y Lchi;y(Z)V
    • setInAir Link icon

      public void setInAir(boolean inAir)
      Mappings:
      Namespace Name Mixin selector
      named setInAir Lnet/minecraft/entity/passive/AbstractHorseEntity;setInAir(Z)V
      intermediary method_6758 Lnet/minecraft/class_1496;method_6758(Z)V
      official z Lchi;z(Z)V
    • beforeLeashTick Link icon

      public boolean beforeLeashTick(Entity leashHolder, float distance)
      Called before the default leash-ticking logic. Subclasses can override this to add their own logic to it.

      Returns whether the default logic should run after this..

      Specified by:
      beforeLeashTick in interface Leashable
      Overrides:
      beforeLeashTick in class PathAwareEntity
      See Also:
      • invalid reference
        Leashable#tickLeash
      Mappings:
      Namespace Name Mixin selector
      named beforeLeashTick Lnet/minecraft/entity/Leashable;beforeLeashTick(Lnet/minecraft/entity/Entity;F)Z
      intermediary method_60956 Lnet/minecraft/class_9817;method_60956(Lnet/minecraft/class_1297;F)Z
      official a Lbtk;a(Lbsr;F)Z
    • isEatingGrass Link icon

      public boolean isEatingGrass()
      Mappings:
      Namespace Name Mixin selector
      named isEatingGrass Lnet/minecraft/entity/passive/AbstractHorseEntity;isEatingGrass()Z
      intermediary method_6724 Lnet/minecraft/class_1496;method_6724()Z
      official gC Lchi;gC()Z
    • isAngry Link icon

      public boolean isAngry()
      Mappings:
      Namespace Name Mixin selector
      named isAngry Lnet/minecraft/entity/passive/AbstractHorseEntity;isAngry()Z
      intermediary method_6736 Lnet/minecraft/class_1496;method_6736()Z
      official gD Lchi;gD()Z
    • isBred Link icon

      public boolean isBred()
      Mappings:
      Namespace Name Mixin selector
      named isBred Lnet/minecraft/entity/passive/AbstractHorseEntity;isBred()Z
      intermediary method_6744 Lnet/minecraft/class_1496;method_6744()Z
      official gE Lchi;gE()Z
    • setBred Link icon

      public void setBred(boolean bred)
      Mappings:
      Namespace Name Mixin selector
      named setBred Lnet/minecraft/entity/passive/AbstractHorseEntity;setBred(Z)V
      intermediary method_6751 Lnet/minecraft/class_1496;method_6751(Z)V
      official A Lchi;A(Z)V
    • canBeSaddled Link icon

      public boolean canBeSaddled()
      Specified by:
      canBeSaddled in interface Saddleable
      Mappings:
      Namespace Name Mixin selector
      named canBeSaddled Lnet/minecraft/entity/Saddleable;canBeSaddled()Z
      intermediary method_6765 Lnet/minecraft/class_5146;method_6765()Z
      official f Lbue;f()Z
    • saddle Link icon

      public void saddle(ItemStack stack, @Nullable @Nullable SoundCategory soundCategory)
      Specified by:
      saddle in interface Saddleable
      Mappings:
      Namespace Name Mixin selector
      named saddle Lnet/minecraft/entity/Saddleable;saddle(Lnet/minecraft/item/ItemStack;Lnet/minecraft/sound/SoundCategory;)V
      intermediary method_6576 Lnet/minecraft/class_5146;method_6576(Lnet/minecraft/class_1799;Lnet/minecraft/class_3419;)V
      official a Lbue;a(Lcuq;Lavq;)V
    • equipHorseArmor Link icon

      public void equipHorseArmor(PlayerEntity player, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named equipHorseArmor Lnet/minecraft/entity/passive/AbstractHorseEntity;equipHorseArmor(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
      intermediary method_45375 Lnet/minecraft/class_1496;method_45375(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
      official b Lchi;b(Lcmx;Lcuq;)V
    • isSaddled Link icon

      public boolean isSaddled()
      Specified by:
      isSaddled in interface Saddleable
      Mappings:
      Namespace Name Mixin selector
      named isSaddled Lnet/minecraft/entity/Saddleable;isSaddled()Z
      intermediary method_6725 Lnet/minecraft/class_5146;method_6725()Z
      official i Lbue;i()Z
    • getTemper Link icon

      public int getTemper()
      Mappings:
      Namespace Name Mixin selector
      named getTemper Lnet/minecraft/entity/passive/AbstractHorseEntity;getTemper()I
      intermediary method_6729 Lnet/minecraft/class_1496;method_6729()I
      official gF Lchi;gF()I
    • setTemper Link icon

      public void setTemper(int temper)
      Mappings:
      Namespace Name Mixin selector
      named setTemper Lnet/minecraft/entity/passive/AbstractHorseEntity;setTemper(I)V
      intermediary method_6749 Lnet/minecraft/class_1496;method_6749(I)V
      official u Lchi;u(I)V
    • addTemper Link icon

      public int addTemper(int difference)
      Mappings:
      Namespace Name Mixin selector
      named addTemper Lnet/minecraft/entity/passive/AbstractHorseEntity;addTemper(I)I
      intermediary method_6745 Lnet/minecraft/class_1496;method_6745(I)I
      official v Lchi;v(I)I
    • isPushable Link icon

      public boolean isPushable()
      Returns whether the entity can be pushed by other entities.
      Overrides:
      isPushable in class LivingEntity
      Returns:
      whether the entity can be pushed by other entities
      Mappings:
      Namespace Name Mixin selector
      named isPushable Lnet/minecraft/entity/Entity;isPushable()Z
      intermediary method_5810 Lnet/minecraft/class_1297;method_5810()Z
      official bB Lbsr;bB()Z
    • playEatingAnimation Link icon

      private void playEatingAnimation()
      Mappings:
      Namespace Name Mixin selector
      named playEatingAnimation Lnet/minecraft/entity/passive/AbstractHorseEntity;playEatingAnimation()V
      intermediary method_6733 Lnet/minecraft/class_1496;method_6733()V
      official s Lchi;s()V
    • handleFallDamage Link icon

      public boolean handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource)
      Called when an entity falls.

      Flying mobs and mobs immune to fall damage should override this to do nothing. Mobs with reduced fall damage should override this method to apply reduced damage instead. Some entities explode instead of applying fall damage, like TntMinecartEntity.

      Overrides:
      handleFallDamage in class LivingEntity
      Returns:
      whether to play the sound when falling on honey block; false for all entities except horses and llamas
      Mappings:
      Namespace Name Mixin selector
      named handleFallDamage Lnet/minecraft/entity/Entity;handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z
      intermediary method_5747 Lnet/minecraft/class_1297;method_5747(FFLnet/minecraft/class_1282;)Z
      official a Lbsr;a(FFLbrk;)Z
    • getInventorySize Link icon

      public final int getInventorySize()
      Mappings:
      Namespace Name Mixin selector
      named getInventorySize Lnet/minecraft/entity/passive/AbstractHorseEntity;getInventorySize()I
      intermediary method_6750 Lnet/minecraft/class_1496;method_6750()I
      official gG Lchi;gG()I
    • getInventorySize Link icon

      public static int getInventorySize(int columns)
      Mappings:
      Namespace Name Mixin selector
      named getInventorySize Lnet/minecraft/entity/passive/AbstractHorseEntity;getInventorySize(I)I
      intermediary method_60977 Lnet/minecraft/class_1496;method_60977(I)I
      official w Lchi;w(I)I
    • onChestedStatusChanged Link icon

      protected void onChestedStatusChanged()
      Mappings:
      Namespace Name Mixin selector
      named onChestedStatusChanged Lnet/minecraft/entity/passive/AbstractHorseEntity;onChestedStatusChanged()V
      intermediary method_6721 Lnet/minecraft/class_1496;method_6721()V
      official gH Lchi;gH()V
    • updateSaddledFlag Link icon

      protected void updateSaddledFlag()
      Mappings:
      Namespace Name Mixin selector
      named updateSaddledFlag Lnet/minecraft/entity/passive/AbstractHorseEntity;updateSaddledFlag()V
      intermediary method_56679 Lnet/minecraft/class_1496;method_56679()V
      official gI Lchi;gI()V
    • onInventoryChanged Link icon

      public void onInventoryChanged(Inventory sender)
      Specified by:
      onInventoryChanged in interface InventoryChangedListener
      Mappings:
      Namespace Name Mixin selector
      named onInventoryChanged Lnet/minecraft/inventory/InventoryChangedListener;onInventoryChanged(Lnet/minecraft/inventory/Inventory;)V
      intermediary method_5453 Lnet/minecraft/class_1265;method_5453(Lnet/minecraft/class_1263;)V
      official a Lbqm;a(Lbqk;)V
    • damage Link icon

      public boolean damage(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.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/entity/damage/DamageSource;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      official a Lbsr;a(Lbrk;F)Z
    • shouldAmbientStand Link icon

      protected boolean shouldAmbientStand()
      Mappings:
      Namespace Name Mixin selector
      named shouldAmbientStand Lnet/minecraft/entity/passive/AbstractHorseEntity;shouldAmbientStand()Z
      intermediary method_45349 Lnet/minecraft/class_1496;method_45349()Z
      official gl Lchi;gl()Z
    • getEatSound Link icon

      @Nullable protected @Nullable SoundEvent getEatSound()
      Mappings:
      Namespace Name Mixin selector
      named getEatSound Lnet/minecraft/entity/passive/AbstractHorseEntity;getEatSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_28368 Lnet/minecraft/class_1496;method_28368()Lnet/minecraft/class_3414;
      official gm Lchi;gm()Lavo;
    • getAngrySound Link icon

      @Nullable protected @Nullable SoundEvent getAngrySound()
      Mappings:
      Namespace Name Mixin selector
      named getAngrySound Lnet/minecraft/entity/passive/AbstractHorseEntity;getAngrySound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6747 Lnet/minecraft/class_1496;method_6747()Lnet/minecraft/class_3414;
      official gJ Lchi;gJ()Lavo;
    • playStepSound Link icon

      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 Lbsr;b(Ljd;Ldtc;)V
    • isWooden Link icon

      private boolean isWooden(BlockSoundGroup soundGroup)
      Mappings:
      Namespace Name Mixin selector
      named isWooden Lnet/minecraft/entity/passive/AbstractHorseEntity;isWooden(Lnet/minecraft/sound/BlockSoundGroup;)Z
      intermediary method_49996 Lnet/minecraft/class_1496;method_49996(Lnet/minecraft/class_2498;)Z
      official b Lchi;b(Ldnm;)Z
    • playWalkSound Link icon

      protected void playWalkSound(BlockSoundGroup group)
      Mappings:
      Namespace Name Mixin selector
      named playWalkSound Lnet/minecraft/entity/passive/AbstractHorseEntity;playWalkSound(Lnet/minecraft/sound/BlockSoundGroup;)V
      intermediary method_6761 Lnet/minecraft/class_1496;method_6761(Lnet/minecraft/class_2498;)V
      official a Lchi;a(Ldnm;)V
    • createBaseHorseAttributes Link icon

      public static DefaultAttributeContainer.Builder createBaseHorseAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createBaseHorseAttributes Lnet/minecraft/entity/passive/AbstractHorseEntity;createBaseHorseAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26899 Lnet/minecraft/class_1496;method_26899()Lnet/minecraft/class_5132$class_5133;
      official gK Lchi;gK()Lbuv$a;
    • getLimitPerChunk Link icon

      public int getLimitPerChunk()
      Overrides:
      getLimitPerChunk in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getLimitPerChunk Lnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
      intermediary method_5945 Lnet/minecraft/class_1308;method_5945()I
      official fN Lbtp;fN()I
    • getMaxTemper Link icon

      public int getMaxTemper()
      Mappings:
      Namespace Name Mixin selector
      named getMaxTemper Lnet/minecraft/entity/passive/AbstractHorseEntity;getMaxTemper()I
      intermediary method_6755 Lnet/minecraft/class_1496;method_6755()I
      official gL Lchi;gL()I
    • getSoundVolume Link icon

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getSoundVolume Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
      intermediary method_6107 Lnet/minecraft/class_1309;method_6107()F
      official fa Lbtn;fa()F
    • getMinAmbientSoundDelay Link icon

      public int getMinAmbientSoundDelay()
      Overrides:
      getMinAmbientSoundDelay in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named getMinAmbientSoundDelay Lnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
      intermediary method_5970 Lnet/minecraft/class_1308;method_5970()I
      official R Lbtp;R()I
    • openInventory Link icon

      public void openInventory(PlayerEntity player)
      Specified by:
      openInventory in interface RideableInventory
      Mappings:
      Namespace Name Mixin selector
      named openInventory Lnet/minecraft/entity/RideableInventory;openInventory(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_6722 Lnet/minecraft/class_7248;method_6722(Lnet/minecraft/class_1657;)V
      official b Lbtf;b(Lcmx;)V
    • interactHorse Link icon

      public ActionResult interactHorse(PlayerEntity player, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named interactHorse Lnet/minecraft/entity/passive/AbstractHorseEntity;interactHorse(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/ActionResult;
      intermediary method_30009 Lnet/minecraft/class_1496;method_30009(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269;
      official c Lchi;c(Lcmx;Lcuq;)Lbqr;
    • receiveFood Link icon

      protected boolean receiveFood(PlayerEntity player, ItemStack item)
      Mappings:
      Namespace Name Mixin selector
      named receiveFood Lnet/minecraft/entity/passive/AbstractHorseEntity;receiveFood(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_6742 Lnet/minecraft/class_1496;method_6742(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Z
      official a Lchi;a(Lcmx;Lcuq;)Z
    • putPlayerOnBack Link icon

      protected void putPlayerOnBack(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named putPlayerOnBack Lnet/minecraft/entity/passive/AbstractHorseEntity;putPlayerOnBack(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_6726 Lnet/minecraft/class_1496;method_6726(Lnet/minecraft/class_1657;)V
      official a Lchi;a(Lcmx;)V
    • isImmobile Link icon

      public boolean isImmobile()
      Overrides:
      isImmobile in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isImmobile Lnet/minecraft/entity/LivingEntity;isImmobile()Z
      intermediary method_6062 Lnet/minecraft/class_1309;method_6062()Z
      official fc Lbtn;fc()Z
    • isBreedingItem Link icon

      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 o Lcfe;o(Lcuq;)Z
    • wagTail Link icon

      private void wagTail()
      Mappings:
      Namespace Name Mixin selector
      named wagTail Lnet/minecraft/entity/passive/AbstractHorseEntity;wagTail()V
      intermediary method_6759 Lnet/minecraft/class_1496;method_6759()V
      official t Lchi;t()V
    • dropInventory Link icon

      protected void dropInventory()
      Overrides:
      dropInventory in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named dropInventory Lnet/minecraft/entity/LivingEntity;dropInventory()V
      intermediary method_16078 Lnet/minecraft/class_1309;method_16078()V
      official ez Lbtn;ez()V
    • tickMovement Link icon

      public void tickMovement()
      Overrides:
      tickMovement in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official m_ Lbtn;m_()V
    • walkToParent Link icon

      protected void walkToParent()
      Mappings:
      Namespace Name Mixin selector
      named walkToParent Lnet/minecraft/entity/passive/AbstractHorseEntity;walkToParent()V
      intermediary method_6746 Lnet/minecraft/class_1496;method_6746()V
      official gM Lchi;gM()V
    • eatsGrass Link icon

      public boolean eatsGrass()
      Mappings:
      Namespace Name Mixin selector
      named eatsGrass Lnet/minecraft/entity/passive/AbstractHorseEntity;eatsGrass()Z
      intermediary method_6762 Lnet/minecraft/class_1496;method_6762()Z
      official gN Lchi;gN()Z
    • tick Link icon

      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 MobEntity.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 l Lbsr;l()V
    • interactMob Link icon

      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 Lbtp;b(Lcmx;Lbqq;)Lbqr;
    • setEating Link icon

      private void setEating()
      Mappings:
      Namespace Name Mixin selector
      named setEating Lnet/minecraft/entity/passive/AbstractHorseEntity;setEating()V
      intermediary method_6738 Lnet/minecraft/class_1496;method_6738()V
      official x Lchi;x()V
    • setEatingGrass Link icon

      public void setEatingGrass(boolean eatingGrass)
      Mappings:
      Namespace Name Mixin selector
      named setEatingGrass Lnet/minecraft/entity/passive/AbstractHorseEntity;setEatingGrass(Z)V
      intermediary method_6740 Lnet/minecraft/class_1496;method_6740(Z)V
      official B Lchi;B(Z)V
    • setAngry Link icon

      public void setAngry(boolean angry)
      Mappings:
      Namespace Name Mixin selector
      named setAngry Lnet/minecraft/entity/passive/AbstractHorseEntity;setAngry(Z)V
      intermediary method_6737 Lnet/minecraft/class_1496;method_6737(Z)V
      official C Lchi;C(Z)V
    • getAmbientStandSound Link icon

      @Nullable public @Nullable SoundEvent getAmbientStandSound()
      Mappings:
      Namespace Name Mixin selector
      named getAmbientStandSound Lnet/minecraft/entity/passive/AbstractHorseEntity;getAmbientStandSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_45376 Lnet/minecraft/class_1496;method_45376()Lnet/minecraft/class_3414;
      official gO Lchi;gO()Lavo;
    • updateAnger Link icon

      public void updateAnger()
      Mappings:
      Namespace Name Mixin selector
      named updateAnger Lnet/minecraft/entity/passive/AbstractHorseEntity;updateAnger()V
      intermediary method_6748 Lnet/minecraft/class_1496;method_6748()V
      official gP Lchi;gP()V
    • playAngrySound Link icon

      public void playAngrySound()
      Mappings:
      Namespace Name Mixin selector
      named playAngrySound Lnet/minecraft/entity/passive/AbstractHorseEntity;playAngrySound()V
      intermediary method_6757 Lnet/minecraft/class_1496;method_6757()V
      official gQ Lchi;gQ()V
    • bondWithPlayer Link icon

      public boolean bondWithPlayer(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named bondWithPlayer Lnet/minecraft/entity/passive/AbstractHorseEntity;bondWithPlayer(Lnet/minecraft/entity/player/PlayerEntity;)Z
      intermediary method_6752 Lnet/minecraft/class_1496;method_6752(Lnet/minecraft/class_1657;)Z
      official g Lchi;g(Lcmx;)Z
    • tickControlled Link icon

      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 Lbtn;a(Lcmx;Lexc;)V
    • getControlledRotation Link icon

      protected Vec2f getControlledRotation(LivingEntity controllingPassenger)
      Mappings:
      Namespace Name Mixin selector
      named getControlledRotation Lnet/minecraft/entity/passive/AbstractHorseEntity;getControlledRotation(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec2f;
      intermediary method_49489 Lnet/minecraft/class_1496;method_49489(Lnet/minecraft/class_1309;)Lnet/minecraft/class_241;
      official j Lchi;j(Lbtn;)Lexb;
    • getControlledMovementInput Link icon

      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 Lbtn;b(Lcmx;Lexc;)Lexc;
    • getSaddledSpeed Link icon

      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 e Lbtn;e(Lcmx;)F
    • jump Link icon

      protected void jump(float strength, Vec3d movementInput)
      Mappings:
      Namespace Name Mixin selector
      named jump Lnet/minecraft/entity/passive/AbstractHorseEntity;jump(FLnet/minecraft/util/math/Vec3d;)V
      intermediary method_45343 Lnet/minecraft/class_1496;method_45343(FLnet/minecraft/class_243;)V
      official b Lchi;b(FLexc;)V
    • playJumpSound Link icon

      protected void playJumpSound()
      Mappings:
      Namespace Name Mixin selector
      named playJumpSound Lnet/minecraft/entity/passive/AbstractHorseEntity;playJumpSound()V
      intermediary method_6723 Lnet/minecraft/class_1496;method_6723()V
      official gR Lchi;gR()V
    • writeCustomDataToNbt Link icon

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have 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
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbsr;b(Lub;)V
    • readCustomDataFromNbt Link icon

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have 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
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbsr;a(Lub;)V
    • canBreedWith Link icon

      public boolean canBreedWith(AnimalEntity other)
      Overrides:
      canBreedWith in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named canBreedWith Lnet/minecraft/entity/passive/AnimalEntity;canBreedWith(Lnet/minecraft/entity/passive/AnimalEntity;)Z
      intermediary method_6474 Lnet/minecraft/class_1429;method_6474(Lnet/minecraft/class_1429;)Z
      official a Lcfe;a(Lcfe;)Z
    • canBreed Link icon

      protected boolean canBreed()
      Mappings:
      Namespace Name Mixin selector
      named canBreed Lnet/minecraft/entity/passive/AbstractHorseEntity;canBreed()Z
      intermediary method_6734 Lnet/minecraft/class_1496;method_6734()Z
      official gS Lchi;gS()Z
    • createChild Link icon

      @Nullable public @Nullable PassiveEntity createChild(ServerWorld world, PassiveEntity entity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named createChild Lnet/minecraft/entity/passive/PassiveEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PassiveEntity;
      intermediary method_5613 Lnet/minecraft/class_1296;method_5613(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1296;
      official a Lbsl;a(Laqu;Lbsl;)Lbsl;
    • setChildAttributes Link icon

      protected void setChildAttributes(PassiveEntity other, AbstractHorseEntity child)
      Mappings:
      Namespace Name Mixin selector
      named setChildAttributes Lnet/minecraft/entity/passive/AbstractHorseEntity;setChildAttributes(Lnet/minecraft/entity/passive/PassiveEntity;Lnet/minecraft/entity/passive/AbstractHorseEntity;)V
      intermediary method_6743 Lnet/minecraft/class_1496;method_6743(Lnet/minecraft/class_1296;Lnet/minecraft/class_1496;)V
      official a Lchi;a(Lbsl;Lchi;)V
    • setChildAttribute Link icon

      private void setChildAttribute(PassiveEntity other, AbstractHorseEntity child, RegistryEntry<EntityAttribute> attribute, double min, double max)
      Mappings:
      Namespace Name Mixin selector
      named setChildAttribute Lnet/minecraft/entity/passive/AbstractHorseEntity;setChildAttribute(Lnet/minecraft/entity/passive/PassiveEntity;Lnet/minecraft/entity/passive/AbstractHorseEntity;Lnet/minecraft/registry/entry/RegistryEntry;DD)V
      intermediary method_49124 Lnet/minecraft/class_1496;method_49124(Lnet/minecraft/class_1296;Lnet/minecraft/class_1496;Lnet/minecraft/class_6880;DD)V
      official a Lchi;a(Lbsl;Lchi;Ljm;DD)V
    • calculateAttributeBaseValue Link icon

      static double calculateAttributeBaseValue(double parentBase, double otherParentBase, double min, double max, Random random)
      Mappings:
      Namespace Name Mixin selector
      named calculateAttributeBaseValue Lnet/minecraft/entity/passive/AbstractHorseEntity;calculateAttributeBaseValue(DDDDLnet/minecraft/util/math/random/Random;)D
      intermediary method_49123 Lnet/minecraft/class_1496;method_49123(DDDDLnet/minecraft/class_5819;)D
      official a Lchi;a(DDDDLayw;)D
    • getEatingGrassAnimationProgress Link icon

      public float getEatingGrassAnimationProgress(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getEatingGrassAnimationProgress Lnet/minecraft/entity/passive/AbstractHorseEntity;getEatingGrassAnimationProgress(F)F
      intermediary method_6739 Lnet/minecraft/class_1496;method_6739(F)F
      official H Lchi;H(F)F
    • getAngryAnimationProgress Link icon

      public float getAngryAnimationProgress(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getAngryAnimationProgress Lnet/minecraft/entity/passive/AbstractHorseEntity;getAngryAnimationProgress(F)F
      intermediary method_6767 Lnet/minecraft/class_1496;method_6767(F)F
      official I Lchi;I(F)F
    • getEatingAnimationProgress Link icon

      public float getEatingAnimationProgress(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getEatingAnimationProgress Lnet/minecraft/entity/passive/AbstractHorseEntity;getEatingAnimationProgress(F)F
      intermediary method_6772 Lnet/minecraft/class_1496;method_6772(F)F
      official J Lchi;J(F)F
    • setJumpStrength Link icon

      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 Lbty;b(I)V
    • canJump Link icon

      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 Lbty;a()Z
    • startJumping Link icon

      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 Lbty;c(I)V
    • stopJumping Link icon

      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 Lbty;b()V
    • spawnPlayerReactionParticles Link icon

      protected void spawnPlayerReactionParticles(boolean positive)
      Mappings:
      Namespace Name Mixin selector
      named spawnPlayerReactionParticles Lnet/minecraft/entity/passive/AbstractHorseEntity;spawnPlayerReactionParticles(Z)V
      intermediary method_6760 Lnet/minecraft/class_1496;method_6760(Z)V
      official D Lchi;D(Z)V
    • handleStatus Link icon

      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:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      official b Lbsr;b(B)V
    • updatePassengerPosition Link icon

      protected void updatePassengerPosition(Entity passenger, Entity.PositionUpdater positionUpdater)
      Overrides:
      updatePassengerPosition in class Entity
      Mappings:
      Namespace Name Mixin selector
      named updatePassengerPosition Lnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity$PositionUpdater;)V
      intermediary method_5865 Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297$class_4738;)V
      official a Lbsr;a(Lbsr;Lbsr$a;)V
    • getChildHealthBonus Link icon

      protected static float getChildHealthBonus(IntUnaryOperator randomIntGetter)
      Mappings:
      Namespace Name Mixin selector
      named getChildHealthBonus Lnet/minecraft/entity/passive/AbstractHorseEntity;getChildHealthBonus(Ljava/util/function/IntUnaryOperator;)F
      intermediary method_6754 Lnet/minecraft/class_1496;method_6754(Ljava/util/function/IntUnaryOperator;)F
      official a Lchi;a(Ljava/util/function/IntUnaryOperator;)F
    • getChildJumpStrengthBonus Link icon

      protected static double getChildJumpStrengthBonus(DoubleSupplier randomDoubleGetter)
      Mappings:
      Namespace Name Mixin selector
      named getChildJumpStrengthBonus Lnet/minecraft/entity/passive/AbstractHorseEntity;getChildJumpStrengthBonus(Ljava/util/function/DoubleSupplier;)D
      intermediary method_6774 Lnet/minecraft/class_1496;method_6774(Ljava/util/function/DoubleSupplier;)D
      official a Lchi;a(Ljava/util/function/DoubleSupplier;)D
    • getChildMovementSpeedBonus Link icon

      protected static double getChildMovementSpeedBonus(DoubleSupplier randomDoubleGetter)
      Mappings:
      Namespace Name Mixin selector
      named getChildMovementSpeedBonus Lnet/minecraft/entity/passive/AbstractHorseEntity;getChildMovementSpeedBonus(Ljava/util/function/DoubleSupplier;)D
      intermediary method_6728 Lnet/minecraft/class_1496;method_6728(Ljava/util/function/DoubleSupplier;)D
      official b Lchi;b(Ljava/util/function/DoubleSupplier;)D
    • isClimbing Link icon

      public boolean isClimbing()
      Overrides:
      isClimbing in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isClimbing Lnet/minecraft/entity/LivingEntity;isClimbing()Z
      intermediary method_6101 Lnet/minecraft/class_1309;method_6101()Z
      official p_ Lbtn;p_()Z
    • getStackReference Link icon

      public StackReference getStackReference(int mappedIndex)
      Obtains a stack reference to be modified. Used by commands like /loot or /item.
      Overrides:
      getStackReference in class LivingEntity
      Parameters:
      mappedIndex - the mapped index as given by the item slot argument
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getStackReference Lnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;
      intermediary method_32318 Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;
      official a_ Lbsr;a_(I)Lbug;
    • getControllingPassenger Link icon

      @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 cQ Lbsr;cQ()Lbtn;
    • locateSafeDismountingPos Link icon

      @Nullable private @Nullable Vec3d locateSafeDismountingPos(Vec3d offset, LivingEntity passenger)
      Mappings:
      Namespace Name Mixin selector
      named locateSafeDismountingPos Lnet/minecraft/entity/passive/AbstractHorseEntity;locateSafeDismountingPos(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_27930 Lnet/minecraft/class_1496;method_27930(Lnet/minecraft/class_243;Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
      official a Lchi;a(Lexc;Lbtn;)Lexc;
    • updatePassengerForDismount Link icon

      public Vec3d updatePassengerForDismount(LivingEntity passenger)
      Returns the position of the dismounted passenger.

      Vehicles should override this to return a suitable dismounting position for the passenger. Check the implementation of the subclass for details.

      Overrides:
      updatePassengerForDismount in class Entity
      Returns:
      the position of the dismounted passenger
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named updatePassengerForDismount Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_24829 Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
      official b Lbsr;b(Lbtn;)Lexc;
    • initAttributes Link icon

      protected void initAttributes(Random random)
      Mappings:
      Namespace Name Mixin selector
      named initAttributes Lnet/minecraft/entity/passive/AbstractHorseEntity;initAttributes(Lnet/minecraft/util/math/random/Random;)V
      intermediary method_6001 Lnet/minecraft/class_1496;method_6001(Lnet/minecraft/class_5819;)V
      official a Lchi;a(Layw;)V
    • initialize Link icon

      @Nullable public @Nullable 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 Lbtp;a(Lddl;Lbqp;Lbtr;Lbuh;)Lbuh;
    • areInventoriesDifferent Link icon

      public boolean areInventoriesDifferent(Inventory inventory)
      Mappings:
      Namespace Name Mixin selector
      named areInventoriesDifferent Lnet/minecraft/entity/passive/AbstractHorseEntity;areInventoriesDifferent(Lnet/minecraft/inventory/Inventory;)Z
      intermediary method_33338 Lnet/minecraft/class_1496;method_33338(Lnet/minecraft/class_1263;)Z
      official b Lchi;b(Lbqk;)Z
    • getMinAmbientStandDelay Link icon

      public int getMinAmbientStandDelay()
      Mappings:
      Namespace Name Mixin selector
      named getMinAmbientStandDelay Lnet/minecraft/entity/passive/AbstractHorseEntity;getMinAmbientStandDelay()I
      intermediary method_45377 Lnet/minecraft/class_1496;method_45377()I
      official gT Lchi;gT()I
    • getPassengerAttachmentPos Link icon

      protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor)
      Overrides:
      getPassengerAttachmentPos in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getPassengerAttachmentPos Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;
      intermediary method_52533 Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;
      official a Lbsr;a(Lbsr;Lbsu;F)Lexc;
    • getInventory Link icon

      public final Inventory getInventory()
      Mappings:
      Namespace Name Mixin selector
      named getInventory Lnet/minecraft/entity/passive/AbstractHorseEntity;getInventory()Lnet/minecraft/inventory/Inventory;
      intermediary method_56680 Lnet/minecraft/class_1496;method_56680()Lnet/minecraft/class_1263;
      official gU Lchi;gU()Lbqk;
    • getInventoryColumns Link icon

      public int getInventoryColumns()
      Mappings:
      Namespace Name Mixin selector
      named getInventoryColumns Lnet/minecraft/entity/passive/AbstractHorseEntity;getInventoryColumns()I
      intermediary method_6702 Lnet/minecraft/class_1496;method_6702()I
      official af_ Lchi;af_()I