net.minecraft.world.entity.ambient

public class Bat

extends AmbientCreature

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, Attackable, EquipmentUser, Targeting

cfc
net.minecraft.world.entity.ambient.Bat
net.minecraft.class_1420
net.minecraft.entity.passive.BatEntity
net.minecraft.src.C_794_
net.minecraft.world.entity.ambient.EntityBat

Field summary

Modifier and TypeField
public static final float
b
FLAP_LENGTH_SECONDS
field_46966
field_46966
f_302275_
public static final float
c
TICKS_PER_FLAP
field_46967
field_46967
f_148699_
private static final EntityDataAccessor<Byte>
bX
DATA_ID_FLAGS
field_6728
BAT_FLAGS
f_27407_
private static final int
bY
FLAG_RESTING
field_30269
ROOSTING_FLAG
f_148700_
private static final TargetingConditions
bZ
BAT_RESTING_TARGETING
field_18100
CLOSE_PLAYER_PREDICATE
f_27408_
public final AnimationState
d
flyAnimationState
field_46968
flyingAnimationState
f_302314_
public final AnimationState
e
restAnimationState
field_46969
roostingAnimationState
f_303573_
private BlockPos
ca
targetPosition
field_6729
hangingPosition
f_27409_

Constructor summary

ModifierConstructor
public (EntityType<? extends Bat> p_27413_, Level arg1)

Method summary

Modifier and TypeMethod
public boolean
aV()
isFlapping()
method_5776()
isFlappingWings()
m_142039_()
protected void
a(ako$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
protected float
fe()
getSoundVolume()
method_6107()
getSoundVolume()
m_6121_()
public float
ff()
getVoicePitch()
method_6017()
getSoundPitch()
m_6100_()
public SoundEvent
v()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
d(brp arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
public boolean
bA()
isPushable()
method_5810()
isPushable()
m_6094_()
protected void
D(bsw arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
m_7324_(C_507_ arg0)
protected void
q()
pushEntities()
method_6070()
tickCramming()
m_6138_()
public static AttributeSupplier$Builder
s()
createAttributes()
method_26878()
createBatAttributes()
m_27455_()
public boolean
u()
isResting()
method_6450()
isRoosting()
m_27452_()
public void
w(boolean arg0)
setResting(boolean arg0)
method_6449(boolean arg0)
setRoosting(boolean roosting)
m_27456_(boolean arg0)
public void
l()
tick()
method_5773()
tick()
m_8119_()
protected void
Z()
customServerAiStep()
method_5958()
mobTick()
m_8024_()
protected Entity$MovementEmission
bb()
getMovementEmission()
method_33570()
getMoveEffect()
m_142319_()
protected void
a(double arg0, boolean arg1, dse arg2, iz arg3)
checkFallDamage(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
m_7840_(double p_27420_, boolean p_27422_, C_2064_ arg2, C_4675_ arg3)
public boolean
r_()
isIgnoringBlockTriggers()
method_5696()
canAvoidTraps()
m_6090_()
public boolean
a(brp arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_27425_, float arg1)
public void
a(us arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
b(us arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public static boolean
b(btc<cfc> arg0, dcb arg1, btv arg2, iz arg3, azh arg4)
checkBatSpawnRules(EntityType<Bat> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, RandomSource arg4)
method_20661(class_1299<class_1420> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_218098_(C_513_<C_794_> p_218099_, C_1598_ p_218100_, C_529_ p_218101_, C_4675_ p_218102_, C_212974_ p_218103_)
private static boolean
y()
isHalloween()
method_6451()
isTodayAroundHalloween()
m_27453_()
private void
gm()
setupAnimationStates()
method_54758()
updateAnimations()
m_307759_()