类 BatEntity

  • 所有已实现的接口:
    CommandOutput, Nameable, EntityLike

    public class BatEntity
    extends AmbientEntity
    Mappings:
    Namespace Name
    official bcu
    intermediary net/minecraft/class_1420
    named net/minecraft/entity/passive/BatEntity
    • 字段详细资料

      • field_30268

        public static final float field_30268
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lbcu;b:F
        intermediary field_30268 Lnet/minecraft/class_1420;field_30268:F
        named field_30268 Lnet/minecraft/entity/passive/BatEntity;field_30268:F
      • field_28637

        public static final int field_28637
        Mappings:
        Namespace Name Mixin selector
        official c Lbcu;c:I
        intermediary field_28637 Lnet/minecraft/class_1420;field_28637:I
        named field_28637 Lnet/minecraft/entity/passive/BatEntity;field_28637:I
      • BAT_FLAGS

        private static final TrackedData<Byte> BAT_FLAGS
        Equals 0 when the bat is flying, and 1 when it's roosting.
        Mappings:
        Namespace Name Mixin selector
        official d Lbcu;d:Lvy;
        intermediary field_6728 Lnet/minecraft/class_1420;field_6728:Lnet/minecraft/class_2940;
        named BAT_FLAGS Lnet/minecraft/entity/passive/BatEntity;BAT_FLAGS:Lnet/minecraft/entity/data/TrackedData;
      • field_30269

        private static final int field_30269
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official e Lbcu;e:I
        intermediary field_30269 Lnet/minecraft/class_1420;field_30269:I
        named field_30269 Lnet/minecraft/entity/passive/BatEntity;field_30269:I
      • CLOSE_PLAYER_PREDICATE

        private static final TargetPredicate CLOSE_PLAYER_PREDICATE
        Mappings:
        Namespace Name Mixin selector
        official bV Lbcu;bV:Lbcb;
        intermediary field_18100 Lnet/minecraft/class_1420;field_18100:Lnet/minecraft/class_4051;
        named CLOSE_PLAYER_PREDICATE Lnet/minecraft/entity/passive/BatEntity;CLOSE_PLAYER_PREDICATE:Lnet/minecraft/entity/ai/TargetPredicate;
      • hangingPosition

        private BlockPos hangingPosition
        Mappings:
        Namespace Name Mixin selector
        official bW Lbcu;bW:Lgb;
        intermediary field_6729 Lnet/minecraft/class_1420;field_6729:Lnet/minecraft/class_2338;
        named hangingPosition Lnet/minecraft/entity/passive/BatEntity;hangingPosition:Lnet/minecraft/util/math/BlockPos;
    • 构造器详细资料

      • BatEntity

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

      • hasWings

        public boolean hasWings()
        覆盖:
        hasWings 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official aC Lasl;aC()Z
        intermediary method_5776 Lnet/minecraft/class_1297;method_5776()Z
        named hasWings Lnet/minecraft/entity/Entity;hasWings()Z
      • initDataTracker

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

        protected float getSoundVolume()
        覆盖:
        getSoundVolume 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official eh Lasy;eh()F
        intermediary method_6107 Lnet/minecraft/class_1309;method_6107()F
        named getSoundVolume Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
      • getSoundPitch

        protected float getSoundPitch()
        覆盖:
        getSoundPitch 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official ei Lasy;ei()F
        intermediary method_6017 Lnet/minecraft/class_1309;method_6017()F
        named getSoundPitch Lnet/minecraft/entity/LivingEntity;getSoundPitch()F
      • getAmbientSound

        @Nullable
        public @Nullable 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;
      • isPushable

        public boolean isPushable()
        覆盖:
        isPushable 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official ba Lasl;ba()Z
        intermediary method_5810 Lnet/minecraft/class_1297;method_5810()Z
        named isPushable Lnet/minecraft/entity/Entity;isPushable()Z
      • pushAway

        protected void pushAway​(Entity entity)
        覆盖:
        pushAway 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official C Lasy;C(Lasl;)V
        intermediary method_6087 Lnet/minecraft/class_1309;method_6087(Lnet/minecraft/class_1297;)V
        named pushAway Lnet/minecraft/entity/LivingEntity;pushAway(Lnet/minecraft/entity/Entity;)V
      • tickCramming

        protected void tickCramming()
        覆盖:
        tickCramming 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official er Lasy;er()V
        intermediary method_6070 Lnet/minecraft/class_1309;method_6070()V
        named tickCramming Lnet/minecraft/entity/LivingEntity;tickCramming()V
      • createBatAttributes

        public static DefaultAttributeContainer.Builder createBatAttributes()
        Mappings:
        Namespace Name Mixin selector
        official m Lbcu;m()Latx$a;
        intermediary method_26878 Lnet/minecraft/class_1420;method_26878()Lnet/minecraft/class_5132$class_5133;
        named createBatAttributes Lnet/minecraft/entity/passive/BatEntity;createBatAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      • isRoosting

        public boolean isRoosting()
        Returns whether this bat is hanging upside-down under a block.
        Mappings:
        Namespace Name Mixin selector
        official o Lbcu;o()Z
        intermediary method_6450 Lnet/minecraft/class_1420;method_6450()Z
        named isRoosting Lnet/minecraft/entity/passive/BatEntity;isRoosting()Z
      • setRoosting

        public void setRoosting​(boolean roosting)
        Mappings:
        Namespace Name Mixin selector
        official v Lbcu;v(Z)V
        intermediary method_6449 Lnet/minecraft/class_1420;method_6449(Z)V
        named setRoosting Lnet/minecraft/entity/passive/BatEntity;setRoosting(Z)V
      • tick

        public void tick()
        覆盖:
        tick 在类中 MobEntity
        Mappings:
        Namespace Name Mixin selector
        official j Lasl;j()V
        intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
        named tick Lnet/minecraft/entity/Entity;tick()V
      • mobTick

        protected void mobTick()
        覆盖:
        mobTick 在类中 MobEntity
        Mappings:
        Namespace Name Mixin selector
        official eQ Lasz;eQ()V
        intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
        named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
      • getMoveEffect

        protected Entity.MoveEffect getMoveEffect()
        Returns the possible effect(s) of an entity moving.
        覆盖:
        getMoveEffect 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official aF Lasl;aF()Lasl$b;
        intermediary method_33570 Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
        named getMoveEffect Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
      • handleFallDamage

        public boolean handleFallDamage​(float fallDistance,
                                        float damageMultiplier,
                                        DamageSource damageSource)
        覆盖:
        handleFallDamage 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(FFLarv;)Z
        intermediary method_5747 Lnet/minecraft/class_1297;method_5747(FFLnet/minecraft/class_1282;)Z
        named handleFallDamage Lnet/minecraft/entity/Entity;handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z
      • fall

        protected void fall​(double heightDifference,
                            boolean onGround,
                            BlockState landedState,
                            BlockPos landedPosition)
        覆盖:
        fall 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(DZLcjr;Lgb;)V
        intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
        named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
      • canAvoidTraps

        public boolean canAvoidTraps()
        覆盖:
        canAvoidTraps 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official cb Lasl;cb()Z
        intermediary method_5696 Lnet/minecraft/class_1297;method_5696()Z
        named canAvoidTraps Lnet/minecraft/entity/Entity;canAvoidTraps()Z
      • damage

        public boolean damage​(DamageSource source,
                              float amount)
        覆盖:
        damage 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Larv;F)Z
        intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
        named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
      • readCustomDataFromNbt

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

        public void writeCustomDataToNbt​(CompoundTag nbt)
        覆盖:
        writeCustomDataToNbt 在类中 MobEntity
        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
      • canSpawn

        public static boolean canSpawn​(EntityType<BatEntity> type,
                                       WorldAccess world,
                                       SpawnReason spawnReason,
                                       BlockPos pos,
                                       Random random)
        Mappings:
        Namespace Name Mixin selector
        official b Lbcu;b(Lasp;Lbvs;Latb;Lgb;Ljava/util/Random;)Z
        intermediary method_20661 Lnet/minecraft/class_1420;method_20661(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Ljava/util/Random;)Z
        named canSpawn Lnet/minecraft/entity/passive/BatEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
      • isTodayAroundHalloween

        private static boolean isTodayAroundHalloween()
        Mappings:
        Namespace Name Mixin selector
        official s Lbcu;s()Z
        intermediary method_6451 Lnet/minecraft/class_1420;method_6451()Z
        named isTodayAroundHalloween Lnet/minecraft/entity/passive/BatEntity;isTodayAroundHalloween()Z
      • getActiveEyeHeight

        protected float getActiveEyeHeight​(EntityPose pose,
                                           EntityDimensions dimensions)
        覆盖:
        getActiveEyeHeight 在类中 LivingEntity
        Mappings:
        Namespace Name Mixin selector
        official b Lasy;b(Latj;Lasm;)F
        intermediary method_18394 Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
        named getActiveEyeHeight Lnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F