net.minecraft.world.entity.ambient

public class Bat

extends AmbientCreature

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource

bhg
net.minecraft.world.entity.ambient.Bat
net.minecraft.class_1420
net.minecraft.unmapped.C_dexcydtn
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_DEGREES_PER_TICK
field_30268
f_rkdybsln
field_30268
f_148698_
public static final int
c
TICKS_PER_FLAP
field_28637
f_pvilqenm
field_28637
f_148699_
private static final EntityDataAccessor<Byte>
d
DATA_ID_FLAGS
field_6728
f_mxtjrtol
BAT_FLAGS
f_27407_
private static final int
e
FLAG_RESTING
field_30269
f_pqzgefwb
ROOSTING_FLAG
f_148700_
private static final TargetingConditions
bV
BAT_RESTING_TARGETING
field_18100
f_zkwphbmj
CLOSE_PLAYER_PREDICATE
f_27408_
private BlockPos
bW
targetPosition
field_6729
f_ilyoihku
hangingPosition
f_27409_

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
aK()
isFlapping()
method_5776()
m_gavkvalj()
hasWings()
m_142039_()
protected void
a_()
defineSynchedData()
method_5693()
m_lwugwlsw()
initDataTracker()
m_8097_()
protected float
eu()
getSoundVolume()
method_6107()
m_oafzlopj()
getSoundVolume()
m_6121_()
public float
ev()
getVoicePitch()
method_6017()
m_anszxika()
getSoundPitch()
m_6100_()
public SoundEvent
r()
getAmbientSound()
method_5994()
m_jjefzxbm()
getAmbientSound()
m_7515_()
protected SoundEvent
c(awd arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
m_spwwmdyl(C_sbxfkpyv arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
x_()
getDeathSound()
method_6002()
m_axkhmdzu()
getDeathSound()
m_5592_()
public boolean
bi()
isPushable()
method_5810()
m_okzqpkgv()
isPushable()
m_6094_()
protected void
A(awt arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
m_ljcawptq(C_astfners arg0)
pushAway(Entity arg0)
m_7324_(C_507_ arg0)
protected void
eF()
pushEntities()
method_6070()
m_spqekiza()
tickCramming()
m_6138_()
public static AttributeSupplier$Builder
n()
createAttributes()
method_26878()
m_utsnvvch()
createBatAttributes()
m_27455_()
public boolean
q()
isResting()
method_6450()
m_ejkjodhz()
isRoosting()
m_27452_()
public void
v(boolean arg0)
setResting(boolean arg0)
method_6449(boolean arg0)
m_nffdokjy(boolean arg0)
setRoosting(boolean roosting)
m_27456_(boolean arg0)
public void
k()
tick()
method_5773()
m_arkgrfeb()
tick()
m_8119_()
protected void
R()
customServerAiStep()
method_5958()
m_wbeiezxn()
mobTick()
m_8024_()
protected Entity$MovementEmission
aN()
getMovementEmission()
method_33570()
m_dxohridw()
getMoveEffect()
m_142319_()
public boolean
a(float arg0, float arg1, awd arg2)
causeFallDamage(float arg0, float arg1, DamageSource arg2)
method_5747(float arg0, float arg1, class_1282 arg2)
m_izrsdktf(float arg0, float arg1, C_sbxfkpyv arg2)
handleFallDamage(float arg0, float arg1, DamageSource arg2)
m_142535_(float p_148703_, float p_148704_, C_489_ arg2)
protected void
a(double arg0, boolean arg1, coc arg2, gh arg3)
checkFallDamage(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
m_cckfyxyf(double arg0, boolean arg1, C_txtbiemp arg2, C_hynzadkk 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
ck()
isIgnoringBlockTriggers()
method_5696()
m_vrnxwjtm()
canAvoidTraps()
m_6090_()
public boolean
a(awd arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
m_szxeksnh(C_sbxfkpyv arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_27425_, float arg1)
public void
a(oc arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
m_obkzfysl(C_hhlwcnih arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
b(oc arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
m_xuwbpohg(C_hhlwcnih arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public static boolean
b(awx<bhg> arg0, cae arg1, axl arg2, gh arg3, Random arg4)
checkBatSpawnRules(EntityType<Bat> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, Random arg4)
method_20661(class_1299<class_1420> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, Random arg4)
m_lnrajqqu(C_ogavsvbr<C_dexcydtn> arg0, C_vdvbsyle arg1, C_uzzvxofv arg2, C_hynzadkk arg3, Random arg4)
canSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_27433_(C_513_<C_794_> p_27434_, C_1598_ p_27435_, C_529_ p_27436_, C_4675_ p_27437_, Random p_27438_)
private static boolean
t()
isHalloween()
method_6451()
m_wehyyngi()
isTodayAroundHalloween()
m_27453_()
protected float
b(axt arg0, awu arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
m_heqvdbfg(C_ufdjspmk arg0, C_sszpscpo arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
m_6431_(C_535_ p_27441_, C_510_ arg1)