net.minecraft.world.entity.ambient

public class Bat

extends AmbientCreature

All mapped superinterfaces:

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

chr
net.minecraft.world.entity.ambient.Bat
net.minecraft.class_1420
net.minecraft.entity.passive.BatEntity
net.minecraft.world.entity.ambient.EntityBat

Field summary

Modifier and TypeField
public static final float
a
FLAP_LENGTH_SECONDS
field_46966
field_46966
public static final float
b
TICKS_PER_FLAP
field_46967
field_46967
private static final EntityDataAccessor<Byte>
bY
DATA_ID_FLAGS
field_6728
BAT_FLAGS
private static final int
bZ
FLAG_RESTING
field_30269
ROOSTING_FLAG
private static final TargetingConditions
ca
BAT_RESTING_TARGETING
field_18100
CLOSE_PLAYER_PREDICATE
public final AnimationState
c
flyAnimationState
field_46968
flyingAnimationState
public final AnimationState
d
restAnimationState
field_46969
roostingAnimationState
private BlockPos
cb
targetPosition
field_6729
hangingPosition

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
ba()
isFlapping()
method_5776()
isFlappingWings()
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected float
fg()
getSoundVolume()
method_6107()
getSoundVolume()
public float
fh()
getVoicePitch()
method_6017()
getSoundPitch()
public SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bua arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
public boolean
bI()
isPushable()
method_5810()
isPushable()
protected void
D(bvk arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
protected void
o()
pushEntities()
method_6070()
tickCramming()
public static AttributeSupplier$Builder
m()
createAttributes()
method_26878()
createBatAttributes()
public boolean
p()
isResting()
method_6450()
isRoosting()
public void
x(boolean arg0)
setResting(boolean arg0)
method_6449(boolean arg0)
setRoosting(boolean roosting)
public void
h()
tick()
method_5773()
tick()
protected void
a(ash arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
protected Entity$MovementEmission
bg()
getMovementEmission()
method_33570()
getMoveEffect()
protected void
a(double arg0, boolean arg1, dxv arg2, jh 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)
public boolean
s_()
isIgnoringBlockTriggers()
method_5696()
canAvoidTraps()
public boolean
a(ash arg0, bua arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public static boolean
b(bvr<chr> arg0, dhj arg1, bvq arg2, jh arg3, bam arg4)
checkBatSpawnRules(EntityType<Bat> arg0, LevelAccessor arg1, EntitySpawnReason 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)
private static boolean
t()
isHalloween()
method_6451()
isTodayAroundHalloween()
private void
x()
setupAnimationStates()
method_54758()
updateAnimations()