类 PigEntity

    • 字段详细资料

      • SADDLED

        private static final TrackedData<Boolean> SADDLED
        Mappings:
        Namespace Name Mixin selector
        official bV Lbdo;bV:Lvy;
        intermediary field_6816 Lnet/minecraft/class_1452;field_6816:Lnet/minecraft/class_2940;
        named SADDLED Lnet/minecraft/entity/passive/PigEntity;SADDLED:Lnet/minecraft/entity/data/TrackedData;
      • BOOST_TIME

        private static final TrackedData<Integer> BOOST_TIME
        Mappings:
        Namespace Name Mixin selector
        official bW Lbdo;bW:Lvy;
        intermediary field_6815 Lnet/minecraft/class_1452;field_6815:Lnet/minecraft/class_2940;
        named BOOST_TIME Lnet/minecraft/entity/passive/PigEntity;BOOST_TIME:Lnet/minecraft/entity/data/TrackedData;
      • BREEDING_INGREDIENT

        private static final Ingredient BREEDING_INGREDIENT
        Mappings:
        Namespace Name Mixin selector
        official bY Lbdo;bY:Lbsg;
        intermediary field_6817 Lnet/minecraft/class_1452;field_6817:Lnet/minecraft/class_1856;
        named BREEDING_INGREDIENT Lnet/minecraft/entity/passive/PigEntity;BREEDING_INGREDIENT:Lnet/minecraft/recipe/Ingredient;
      • saddledComponent

        private final SaddledComponent saddledComponent
        Mappings:
        Namespace Name Mixin selector
        official bZ Lbdo;bZ:Lasv;
        intermediary field_23230 Lnet/minecraft/class_1452;field_23230:Lnet/minecraft/class_4980;
        named saddledComponent Lnet/minecraft/entity/passive/PigEntity;saddledComponent:Lnet/minecraft/entity/SaddledComponent;
    • 构造器详细资料

      • PigEntity

        public PigEntity​(EntityType<? extends PigEntity> 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
    • 方法详细资料

      • initGoals

        protected void initGoals()
        覆盖:
        initGoals 在类中 MobEntity
        Mappings:
        Namespace Name Mixin selector
        official u Lasz;u()V
        intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
        named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      • createPigAttributes

        public static DefaultAttributeContainer.Builder createPigAttributes()
        Mappings:
        Namespace Name Mixin selector
        official o Lbdo;o()Latx$a;
        intermediary method_26890 Lnet/minecraft/class_1452;method_26890()Lnet/minecraft/class_5132$class_5133;
        named createPigAttributes Lnet/minecraft/entity/passive/PigEntity;createPigAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      • getPrimaryPassenger

        @Nullable
        public @Nullable Entity getPrimaryPassenger()
        覆盖:
        getPrimaryPassenger 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official cv Lasl;cv()Lasl;
        intermediary method_5642 Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1297;
        named getPrimaryPassenger Lnet/minecraft/entity/Entity;getPrimaryPassenger()Lnet/minecraft/entity/Entity;
      • canBeControlledByRider

        public boolean canBeControlledByRider()
        覆盖:
        canBeControlledByRider 在类中 MobEntity
        Mappings:
        Namespace Name Mixin selector
        official eV Lasz;eV()Z
        intermediary method_5956 Lnet/minecraft/class_1308;method_5956()Z
        named canBeControlledByRider Lnet/minecraft/entity/mob/MobEntity;canBeControlledByRider()Z
      • onTrackedDataSet

        public void onTrackedDataSet​(TrackedData<?> data)
        覆盖:
        onTrackedDataSet 在类中 PassiveEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Lvy;)V
        intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
        named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
      • initDataTracker

        protected void initDataTracker()
        覆盖:
        initDataTracker 在类中 PassiveEntity
        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 在类中 AnimalEntity
        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
      • readCustomDataFromNbt

        public void readCustomDataFromNbt​(CompoundTag nbt)
        覆盖:
        readCustomDataFromNbt 在类中 AnimalEntity
        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
      • getAmbientSound

        protected SoundEvent getAmbientSound()
        覆盖:
        getAmbientSound 在类中 MobEntity
        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;
      • getHurtSound

        protected SoundEvent getHurtSound​(DamageSource source)
        覆盖:
        getHurtSound 在类中 LivingEntity
        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;
      • getDeathSound

        protected SoundEvent getDeathSound()
        覆盖:
        getDeathSound 在类中 LivingEntity
        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;
      • playStepSound

        protected void playStepSound​(BlockPos pos,
                                     BlockState state)
        覆盖:
        playStepSound 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official b Lasl;b(Lgb;Lcjr;)V
        intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
        named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      • 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;
      • canBeSaddled

        public boolean canBeSaddled()
        指定者:
        canBeSaddled 在接口中 Saddleable
        Mappings:
        Namespace Name Mixin selector
        official c Latm;c()Z
        intermediary method_6765 Lnet/minecraft/class_5146;method_6765()Z
        named canBeSaddled Lnet/minecraft/entity/Saddleable;canBeSaddled()Z
      • dropInventory

        protected void dropInventory()
        覆盖:
        dropInventory 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official dP Lasy;dP()V
        intermediary method_16078 Lnet/minecraft/class_1309;method_16078()V
        named dropInventory Lnet/minecraft/entity/LivingEntity;dropInventory()V
      • isSaddled

        public boolean isSaddled()
        指定者:
        isSaddled 在接口中 Saddleable
        Mappings:
        Namespace Name Mixin selector
        official O_ Latm;O_()Z
        intermediary method_6725 Lnet/minecraft/class_5146;method_6725()Z
        named isSaddled Lnet/minecraft/entity/Saddleable;isSaddled()Z
      • saddle

        public void saddle​(@Nullable
                           @Nullable SoundCategory sound)
        指定者:
        saddle 在接口中 Saddleable
        Mappings:
        Namespace Name Mixin selector
        official a Latm;a(Laex;)V
        intermediary method_6576 Lnet/minecraft/class_5146;method_6576(Lnet/minecraft/class_3419;)V
        named saddle Lnet/minecraft/entity/Saddleable;saddle(Lnet/minecraft/sound/SoundCategory;)V
      • updatePassengerForDismount

        public Vec3d updatePassengerForDismount​(LivingEntity passenger)
        覆盖:
        updatePassengerForDismount 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official b Lasl;b(Lasy;)Ldma;
        intermediary method_24829 Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
        named updatePassengerForDismount Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
      • onStruckByLightning

        public void onStruckByLightning​(ServerWorld world,
                                        LightningEntity lightning)
        覆盖:
        onStruckByLightning 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Labj;Lasx;)V
        intermediary method_5800 Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V
        named onStruckByLightning Lnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)V
      • travel

        public void travel​(Vec3d movementInput)
        覆盖:
        travel 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official h Lasy;h(Ldma;)V
        intermediary method_6091 Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
        named travel Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
      • getSaddledSpeed

        public float getSaddledSpeed()
        指定者:
        getSaddledSpeed 在接口中 ItemSteerable
        Mappings:
        Namespace Name Mixin selector
        official P_ Lasw;P_()F
        intermediary method_26316 Lnet/minecraft/class_4981;method_26316()F
        named getSaddledSpeed Lnet/minecraft/entity/ItemSteerable;getSaddledSpeed()F
      • setMovementInput

        public void setMovementInput​(Vec3d movementInput)
        指定者:
        setMovementInput 在接口中 ItemSteerable
        Mappings:
        Namespace Name Mixin selector
        official a_ Lasw;a_(Ldma;)V
        intermediary method_26315 Lnet/minecraft/class_4981;method_26315(Lnet/minecraft/class_243;)V
        named setMovementInput Lnet/minecraft/entity/ItemSteerable;setMovementInput(Lnet/minecraft/util/math/Vec3d;)V
      • consumeOnAStickItem

        public boolean consumeOnAStickItem()
        指定者:
        consumeOnAStickItem 在接口中 ItemSteerable
        Mappings:
        Namespace Name Mixin selector
        official Q_ Lasw;Q_()Z
        intermediary method_6577 Lnet/minecraft/class_4981;method_6577()Z
        named consumeOnAStickItem Lnet/minecraft/entity/ItemSteerable;consumeOnAStickItem()Z
      • createChild

        public PigEntity createChild​(ServerWorld serverWorld,
                                     PassiveEntity passiveEntity)
        指定者:
        createChild 在类中 PassiveEntity
        Mappings:
        Namespace Name Mixin selector
        official b Lbdo;b(Labj;Lasj;)Lbdo;
        intermediary method_6574 Lnet/minecraft/class_1452;method_6574(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1452;
        named createChild Lnet/minecraft/entity/passive/PigEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PigEntity;
      • isBreedingItem

        public boolean isBreedingItem​(ItemStack stack)
        覆盖:
        isBreedingItem 在类中 AnimalEntity
        Mappings:
        Namespace Name Mixin selector
        official l Lbcz;l(Lbpr;)Z
        intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
        named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
      • getLeashOffset

        public Vec3d getLeashOffset()
        覆盖:
        getLeashOffset 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official cq Lasl;cq()Ldma;
        intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
        named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;