net.minecraft.world.entity.boss.enderdragon

public class EnderDragon

extends Mob implements Enemy

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, EquipmentUser, Leashable, Targeting, Enemy

clq
net.minecraft.world.entity.boss.enderdragon.EnderDragon
net.minecraft.class_1510
net.minecraft.entity.boss.dragon.EnderDragonEntity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
bJ
LOGGER
field_7021
LOGGER
public static final EntityDataAccessor<Integer>
a
DATA_PHASE
field_7013
PHASE_TYPE
private static final TargetingConditions
bK
CRYSTAL_DESTROY_TARGETING
field_18120
CLOSE_PLAYER_PREDICATE
private static final int
bL
GROWL_INTERVAL_MIN
field_30428
MAX_HEALTH
private static final int
bM
GROWL_INTERVAL_MAX
field_30429
field_30429
private static final float
bN
SITTING_ALLOWED_DAMAGE_PERCENTAGE
field_30430
TAKEOFF_THRESHOLD
private static final String
bO
DRAGON_DEATH_TIME_KEY
field_33910
DRAGON_DEATH_TIME_KEY
private static final String
bP
DRAGON_PHASE_KEY
field_33911
DRAGON_PHASE_KEY
public final DragonFlightHistory
b
flightHistory
field_52493
frameTracker
private final EnderDragonPart[]
bQ
subEntities
field_7032
parts
public final EnderDragonPart
c
head
field_7017
head
private final EnderDragonPart
bR
neck
field_7011
neck
private final EnderDragonPart
bS
body
field_7023
body
private final EnderDragonPart
bT
tail1
field_7020
tail1
private final EnderDragonPart
bU
tail2
field_7009
tail2
private final EnderDragonPart
bV
tail3
field_7022
tail3
private final EnderDragonPart
bW
wing1
field_7015
rightWing
private final EnderDragonPart
bX
wing2
field_7014
leftWing
public float
d
oFlapTime
field_7019
lastWingPosition
public float
bE
flapTime
field_7030
wingPosition
public boolean
bF
inWall
field_7027
slowedDownByBlock
public int
bG
dragonDeathTime
field_7031
ticksSinceDeath
public float
bH
yRotA
field_20865
yawAcceleration
public EndCrystal
bI
nearestCrystal
field_7024
connectedCrystal
private EndDragonFight
bY
dragonFight
field_7016
fight
private BlockPos
bZ
fightOrigin
field_44875
fightOrigin
private final EnderDragonPhaseManager
ca
phaseManager
field_7028
phaseManager
private int
cb
growlTime
field_7018
ticksUntilNextGrowl
private float
cc
sittingDamageReceived
field_7029
damageDuringSitting
private final Node[]
cd
nodes
field_7012
pathNodes
private final int[]
ce
nodeAdjacency
field_7025
pathNodeConnections
private final BinaryHeap
cf
openSet
field_7008
pathHeap

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(edo arg0)
setDragonFight(EndDragonFight arg0)
method_51852(class_2881 arg0)
setFight(EnderDragonFight fight)
public void
c(iu arg0)
setFightOrigin(BlockPos arg0)
method_51853(class_2338 arg0)
setFightOrigin(BlockPos fightOrigin)
public BlockPos
j()
getFightOrigin()
method_51854()
getFightOrigin()
public static AttributeSupplier$Builder
m()
createAttributes()
method_26903()
createEnderDragonAttributes()
public boolean
ba()
isFlapping()
method_5776()
isFlappingWings()
public void
aZ()
onFlap()
method_5801()
addFlapEffects()
protected void
a(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
k_()
aiStep()
method_6007()
tickMovement()
private void
a(cln arg0, double arg1, double arg2, double arg3)
tickPart(EnderDragonPart arg0, double arg1, double arg2, double arg3)
method_22863(class_1508 arg0, double arg1, double arg2, double arg3)
movePart(EnderDragonPart enderDragonPart, double dx, double dy, double dz)
private float
gm()
getHeadYOffset()
method_6820()
getHeadVerticalMovement()
private void
gn()
checkCrystals()
method_6830()
tickWithEndCrystals()
private void
a(aro arg0, List<bwa> arg1)
knockBack(ServerLevel arg0, List<Entity> arg1)
method_6825(class_3218 arg0, List<class_1297> arg1)
launchLivingEntities(ServerWorld world, List<Entity> entities)
private void
b(aro arg0, List<bwa> arg1)
hurt(ServerLevel arg0, List<Entity> arg1)
method_6827(class_3218 arg0, List<class_1297> arg1)
damageLivingEntities(ServerWorld world, List<Entity> entities)
private float
i(double arg0)
rotWrap(double arg0)
method_6832(double arg0)
wrapYawChange(double yawDegrees)
private boolean
a(aro arg0, fdr arg1)
checkWalls(ServerLevel arg0, AABB arg1)
method_6821(class_3218 arg0, class_238 arg1)
destroyBlocks(ServerWorld world, Box box)
public boolean
a(aro arg0, cln arg1, bup arg2, float arg3)
hurt(ServerLevel arg0, EnderDragonPart arg1, DamageSource arg2, float arg3)
method_6816(class_3218 arg0, class_1508 arg1, class_1282 arg2, float arg3)
damagePart(ServerWorld world, EnderDragonPart part, DamageSource source, float amount)
public boolean
a(aro arg0, bup 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)
protected void
c(aro arg0, bup arg1, float arg2)
reallyHurt(ServerLevel arg0, DamageSource arg1, float arg2)
method_6819(class_3218 arg0, class_1282 arg1, float arg2)
parentDamage(ServerWorld world, DamageSource source, float amount)
public void
c(aro arg0)
kill(ServerLevel arg0)
method_5768(class_3218 arg0)
kill(ServerWorld arg0)
protected void
em()
tickDeath()
method_6108()
updatePostDeath()
public int
n()
findClosestNode()
method_6818()
getNearestPathNodeIndex()
public int
q(double arg0, double arg1, double arg2)
findClosestNode(double arg0, double arg1, double arg2)
method_6822(double arg0, double arg1, double arg2)
getNearestPathNodeIndex(double x, double y, double z)
public Path
a(int arg0, int arg1, ewh arg2)
findPath(int arg0, int arg1, Node arg2)
method_6833(int arg0, int arg1, class_9 arg2)
findPath(int from, int to, PathNode pathNode)
private Path
a(ewh arg0, ewh arg1)
reconstructPath(Node arg0, Node arg1)
method_6826(class_9 arg0, class_9 arg1)
getPathOfAllPredecessors(PathNode unused, PathNode node)
public void
b(tx arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tx arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public void
dH()
checkDespawn()
method_5982()
checkDespawn()
public EnderDragonPart[]
q()
getSubEntities()
method_5690()
getBodyParts()
public boolean
bG()
isPickable()
method_5863()
canHit()
public SoundSource
dm()
getSoundSource()
method_5634()
getSoundCategory()
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bup arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected float
fd()
getSoundVolume()
method_6107()
getSoundVolume()
public Vec3
J(float arg0)
getHeadLookVector(float arg0)
method_6834(float arg0)
getRotationVectorFromPhase(float tickDelta)
public void
a(aro arg0, clp arg1, iu arg2, bup arg3)
onCrystalDestroyed(ServerLevel arg0, EndCrystal arg1, BlockPos arg2, DamageSource arg3)
method_6828(class_3218 arg0, class_1511 arg1, class_2338 arg2, class_1282 arg3)
crystalDestroyed(ServerWorld world, EndCrystalEntity crystal, BlockPos pos, DamageSource source)
public void
a(akh<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public EnderDragonPhaseManager
t()
getPhaseManager()
method_6831()
getPhaseManager()
public EndDragonFight
x()
getDragonFight()
method_6829()
getFight()
public boolean
b(bve arg0, bwa arg1)
addEffect(MobEffectInstance arg0, Entity arg1)
method_37222(class_1293 arg0, class_1297 arg1)
addStatusEffect(StatusEffectInstance arg0, Entity arg1)
protected boolean
o(bwa arg0)
canRide(Entity arg0)
method_5860(class_1297 arg0)
canStartRiding(Entity arg0)
public boolean
n(boolean arg0)
canUsePortal(boolean arg0)
method_5822(boolean arg0)
canUsePortals(boolean arg0)
public void
a(abt arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public boolean
c(bwz arg0)
canAttack(LivingEntity arg0)
method_18395(class_1309 arg0)
canTarget(LivingEntity arg0)
protected float
b(float arg0)
sanitizeScale(float arg0)
method_56077(float arg0)
clampScale(float arg0)