Class BatEntity

All Implemented Interfaces:
EntityLike, CommandOutput, Nameable

public class BatEntity
extends AmbientEntity
Mappings:
Namespace Name
official bbe
intermediary net/minecraft/class_1420
named net/minecraft/entity/passive/BatEntity
  • Field Details

    • field_28637

      public static final int field_28637
      Mappings:
      Namespace Name Mixin selector
      official b Lbbe;b: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 c Lbbe;c:Lvk;
      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;
    • CLOSE_PLAYER_PREDICATE

      private static final TargetPredicate CLOSE_PLAYER_PREDICATE
      Mappings:
      Namespace Name Mixin selector
      official d Lbbe;d:Lbal;
      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 bm Lbbe;bm:Lfx;
      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;
  • Constructor Details

    • BatEntity

      public BatEntity​(EntityType<? extends BatEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqv;<init>(Laqz;Lbtv;)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
  • Method Details

    • hasWings

      public boolean hasWings()
      Overrides:
      hasWings in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aB Laqv;aB()Z
      intermediary method_5776 Lnet/minecraft/class_1297;method_5776()Z
      named hasWings Lnet/minecraft/entity/Entity;hasWings()Z
    • initDataTracker

      protected void initDataTracker()
      Overrides:
      initDataTracker in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official e Laqv;e()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • getSoundVolume

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official ee Lari;ee()F
      intermediary method_6107 Lnet/minecraft/class_1309;method_6107()F
      named getSoundVolume Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
    • getSoundPitch

      protected float getSoundPitch()
      Overrides:
      getSoundPitch in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official ef Lari;ef()F
      intermediary method_6017 Lnet/minecraft/class_1309;method_6017()F
      named getSoundPitch Lnet/minecraft/entity/LivingEntity;getSoundPitch()F
    • getAmbientSound

      @Nullable public SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official p Larj;p()Laef;
      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)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lari;c(Laqf;)Laef;
      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()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official q Lari;q()Laef;
      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()
      Overrides:
      isPushable in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official aZ Laqv;aZ()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)
      Overrides:
      pushAway in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official C Lari;C(Laqv;)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()
      Overrides:
      tickCramming in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eo Lari;eo()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 Lbbe;m()Lash$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 Lbbe;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 u Lbbe;u(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()
      Overrides:
      tick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official j Laqv;j()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • mobTick

      protected void mobTick()
      Overrides:
      mobTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official eN Larj;eN()V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
    • method_33570

      protected Entity.class_5799 method_33570()
      Overrides:
      method_33570 in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aE Laqv;aE()Laqv$b;
      intermediary method_33570 Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
      named method_33570 Lnet/minecraft/entity/Entity;method_33570()Lnet/minecraft/entity/Entity$class_5799;
    • handleFallDamage

      public boolean handleFallDamage​(float fallDistance, float damageMultiplier, DamageSource damageSource)
      Overrides:
      handleFallDamage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(FFLaqf;)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)
      Overrides:
      fall in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(DZLcht;Lfx;)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()
      Overrides:
      canAvoidTraps in class Entity
      Mappings:
      Namespace Name Mixin selector
      official ca Laqv;ca()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)
      Overrides:
      damage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Laqf;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
    • readCustomDataFromTag

      public void readCustomDataFromTag​(CompoundTag tag)
      Overrides:
      readCustomDataFromTag in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Lmq;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromTag Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
    • writeCustomDataToTag

      public void writeCustomDataToTag​(CompoundTag tag)
      Overrides:
      writeCustomDataToTag in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Laqv;b(Lmq;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToTag Lnet/minecraft/entity/Entity;writeCustomDataToTag(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 Lbbe;b(Laqz;Lbtw;Larl;Lfx;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 r Lbbe;r()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)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lari;b(Lart;Laqw;)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