类 HorseEntity

    • 字段详细资料

      • HORSE_ARMOR_BONUS_ID

        private static final UUID HORSE_ARMOR_BONUS_ID
        Mappings:
        Namespace Name Mixin selector
        official bV Lbem;bV:Ljava/util/UUID;
        intermediary field_6985 Lnet/minecraft/class_1498;field_6985:Ljava/util/UUID;
        named HORSE_ARMOR_BONUS_ID Lnet/minecraft/entity/passive/HorseEntity;HORSE_ARMOR_BONUS_ID:Ljava/util/UUID;
      • VARIANT

        private static final TrackedData<Integer> VARIANT
        Mappings:
        Namespace Name Mixin selector
        official cl Lbem;cl:Lvy;
        intermediary field_6990 Lnet/minecraft/class_1498;field_6990:Lnet/minecraft/class_2940;
        named VARIANT Lnet/minecraft/entity/passive/HorseEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;
    • 构造器详细资料

      • HorseEntity

        public HorseEntity​(EntityType<? extends HorseEntity> type,
                           World world)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lasl;<init>(Lasp;Lbvr;)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
    • 方法详细资料

      • initAttributes

        protected void initAttributes()
        覆盖:
        initAttributes 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official o Lbek;o()V
        intermediary method_6001 Lnet/minecraft/class_1496;method_6001()V
        named initAttributes Lnet/minecraft/entity/passive/HorseBaseEntity;initAttributes()V
      • initDataTracker

        protected void initDataTracker()
        覆盖:
        initDataTracker 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official e Lasl;e()V
        intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
        named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
      • writeCustomDataToNbt

        public void writeCustomDataToNbt​(CompoundTag nbt)
        覆盖:
        writeCustomDataToNbt 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official b Lasl;b(Lmv;)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/CompoundTag;)V
      • getArmorType

        public ItemStack getArmorType()
        Mappings:
        Namespace Name Mixin selector
        official s Lbem;s()Lbpr;
        intermediary method_6786 Lnet/minecraft/class_1498;method_6786()Lnet/minecraft/class_1799;
        named getArmorType Lnet/minecraft/entity/passive/HorseEntity;getArmorType()Lnet/minecraft/item/ItemStack;
      • equipArmor

        private void equipArmor​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official m Lbem;m(Lbpr;)V
        intermediary method_18445 Lnet/minecraft/class_1498;method_18445(Lnet/minecraft/class_1799;)V
        named equipArmor Lnet/minecraft/entity/passive/HorseEntity;equipArmor(Lnet/minecraft/item/ItemStack;)V
      • readCustomDataFromNbt

        public void readCustomDataFromNbt​(CompoundTag nbt)
        覆盖:
        readCustomDataFromNbt 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Lmv;)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/CompoundTag;)V
      • setVariant

        private void setVariant​(int variant)
        Mappings:
        Namespace Name Mixin selector
        official x Lbem;x(I)V
        intermediary method_6783 Lnet/minecraft/class_1498;method_6783(I)V
        named setVariant Lnet/minecraft/entity/passive/HorseEntity;setVariant(I)V
      • getVariant

        private int getVariant()
        Mappings:
        Namespace Name Mixin selector
        official fw Lbem;fw()I
        intermediary method_6788 Lnet/minecraft/class_1498;method_6788()I
        named getVariant Lnet/minecraft/entity/passive/HorseEntity;getVariant()I
      • setVariant

        private void setVariant​(HorseColor color,
                                HorseMarking marking)
        Mappings:
        Namespace Name Mixin selector
        official a Lbem;a(Lbet;Lbeo;)V
        intermediary method_27076 Lnet/minecraft/class_1498;method_27076(Lnet/minecraft/class_5149;Lnet/minecraft/class_5148;)V
        named setVariant Lnet/minecraft/entity/passive/HorseEntity;setVariant(Lnet/minecraft/entity/passive/HorseColor;Lnet/minecraft/entity/passive/HorseMarking;)V
      • getColor

        public HorseColor getColor()
        Mappings:
        Namespace Name Mixin selector
        official fo Lbem;fo()Lbet;
        intermediary method_27077 Lnet/minecraft/class_1498;method_27077()Lnet/minecraft/class_5149;
        named getColor Lnet/minecraft/entity/passive/HorseEntity;getColor()Lnet/minecraft/entity/passive/HorseColor;
      • getMarking

        public HorseMarking getMarking()
        Mappings:
        Namespace Name Mixin selector
        official fq Lbem;fq()Lbeo;
        intermediary method_27078 Lnet/minecraft/class_1498;method_27078()Lnet/minecraft/class_5148;
        named getMarking Lnet/minecraft/entity/passive/HorseEntity;getMarking()Lnet/minecraft/entity/passive/HorseMarking;
      • updateSaddle

        protected void updateSaddle()
        覆盖:
        updateSaddle 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official fG Lbek;fG()V
        intermediary method_6731 Lnet/minecraft/class_1496;method_6731()V
        named updateSaddle Lnet/minecraft/entity/passive/HorseBaseEntity;updateSaddle()V
      • setArmorTypeFromStack

        private void setArmorTypeFromStack​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official n Lbem;n(Lbpr;)V
        intermediary method_6790 Lnet/minecraft/class_1498;method_6790(Lnet/minecraft/class_1799;)V
        named setArmorTypeFromStack Lnet/minecraft/entity/passive/HorseEntity;setArmorTypeFromStack(Lnet/minecraft/item/ItemStack;)V
      • onInventoryChanged

        public void onInventoryChanged​(Inventory sender)
        指定者:
        onInventoryChanged 在接口中 InventoryChangedListener
        覆盖:
        onInventoryChanged 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official a Larb;a(Laqz;)V
        intermediary method_5453 Lnet/minecraft/class_1265;method_5453(Lnet/minecraft/class_1263;)V
        named onInventoryChanged Lnet/minecraft/inventory/InventoryChangedListener;onInventoryChanged(Lnet/minecraft/inventory/Inventory;)V
      • playWalkSound

        protected void playWalkSound​(BlockSoundGroup group)
        覆盖:
        playWalkSound 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lbek;a(Lcfe;)V
        intermediary method_6761 Lnet/minecraft/class_1496;method_6761(Lnet/minecraft/class_2498;)V
        named playWalkSound Lnet/minecraft/entity/passive/HorseBaseEntity;playWalkSound(Lnet/minecraft/sound/BlockSoundGroup;)V
      • getAmbientSound

        protected SoundEvent getAmbientSound()
        覆盖:
        getAmbientSound 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official p Lasz;p()Laev;
        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;
      • getDeathSound

        protected SoundEvent getDeathSound()
        覆盖:
        getDeathSound 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official q Lasy;q()Laev;
        intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
        named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      • getEatSound

        @Nullable
        protected @Nullable SoundEvent getEatSound()
        覆盖:
        getEatSound 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official fI Lbek;fI()Laev;
        intermediary method_28368 Lnet/minecraft/class_1496;method_28368()Lnet/minecraft/class_3414;
        named getEatSound Lnet/minecraft/entity/passive/HorseBaseEntity;getEatSound()Lnet/minecraft/sound/SoundEvent;
      • getHurtSound

        protected SoundEvent getHurtSound​(DamageSource source)
        覆盖:
        getHurtSound 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official c Lasy;c(Larv;)Laev;
        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;
      • getAngrySound

        protected SoundEvent getAngrySound()
        覆盖:
        getAngrySound 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official fJ Lbek;fJ()Laev;
        intermediary method_6747 Lnet/minecraft/class_1496;method_6747()Lnet/minecraft/class_3414;
        named getAngrySound Lnet/minecraft/entity/passive/HorseBaseEntity;getAngrySound()Lnet/minecraft/sound/SoundEvent;
      • interactMob

        public ActionResult interactMob​(PlayerEntity player,
                                        Hand hand)
        覆盖:
        interactMob 在类中 AnimalEntity
        Mappings:
        Namespace Name Mixin selector
        official b Lasz;b(Lbjf;Larf;)Larg;
        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;
      • canBreedWith

        public boolean canBreedWith​(AnimalEntity other)
        覆盖:
        canBreedWith 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lbcz;a(Lbcz;)Z
        intermediary method_6474 Lnet/minecraft/class_1429;method_6474(Lnet/minecraft/class_1429;)Z
        named canBreedWith Lnet/minecraft/entity/passive/AnimalEntity;canBreedWith(Lnet/minecraft/entity/passive/AnimalEntity;)Z
      • createChild

        public PassiveEntity createChild​(ServerWorld world,
                                         PassiveEntity entity)
        覆盖:
        createChild 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasj;a(Labj;Lasj;)Lasj;
        intermediary method_5613 Lnet/minecraft/class_1296;method_5613(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1296;
        named createChild Lnet/minecraft/entity/passive/PassiveEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PassiveEntity;
      • hasArmorSlot

        public boolean hasArmorSlot()
        Whether this horse has a slot for custom equipment besides a saddle.

        In the item slot argument type, the slot is referred to as horse.armor. In this horse's screen, it appears in the middle of the left side, and right below the saddle slot if this horse has a saddle slot.

        This is used by horse armors and llama carpets, but can be refitted to any purpose.

        覆盖:
        hasArmorSlot 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official fU Lbek;fU()Z
        intermediary method_6735 Lnet/minecraft/class_1496;method_6735()Z
        named hasArmorSlot Lnet/minecraft/entity/passive/HorseBaseEntity;hasArmorSlot()Z
      • isHorseArmor

        public boolean isHorseArmor​(ItemStack item)
        Whether the given item stack is valid for this horse's armor slot.
        覆盖:
        isHorseArmor 在类中 HorseBaseEntity
        另请参阅:
        HorseBaseEntity.hasArmorSlot()
        Mappings:
        Namespace Name Mixin selector
        official k Lbek;k(Lbpr;)Z
        intermediary method_6773 Lnet/minecraft/class_1496;method_6773(Lnet/minecraft/class_1799;)Z
        named isHorseArmor Lnet/minecraft/entity/passive/HorseBaseEntity;isHorseArmor(Lnet/minecraft/item/ItemStack;)Z
      • initialize

        @Nullable
        public @Nullable EntityData initialize​(ServerWorldAccess world,
                                               LocalDifficulty difficulty,
                                               SpawnReason spawnReason,
                                               @Nullable
                                               @Nullable EntityData entityData,
                                               @Nullable
                                               @Nullable CompoundTag entityNbt)
        覆盖:
        initialize 在类中 HorseBaseEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasz;a(Lbwf;Lare;Latb;Latp;Lmv;)Latp;
        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/CompoundTag;)Lnet/minecraft/entity/EntityData;