net.minecraft.world.entity.boss.enderdragon

public class EnderDragon

extends Mob implements Enemy

All mapped superinterfaces:

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

cql
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
cn
LOGGER
field_7021
LOGGER
public static final EntityDataAccessor<Integer>
a
DATA_PHASE
field_7013
PHASE_TYPE
private static final TargetingConditions
co
CRYSTAL_DESTROY_TARGETING
field_18120
CLOSE_PLAYER_PREDICATE
private static final int
cp
GROWL_INTERVAL_MIN
field_30428
MAX_HEALTH
private static final int
cq
GROWL_INTERVAL_MAX
field_30429
field_30429
private static final float
cr
SITTING_ALLOWED_DAMAGE_PERCENTAGE
field_30430
TAKEOFF_THRESHOLD
private static final String
cs
DRAGON_DEATH_TIME_KEY
field_33910
DRAGON_DEATH_TIME_KEY
private static final String
ct
DRAGON_PHASE_KEY
field_33911
DRAGON_PHASE_KEY
private static final int
cu
DEFAULT_DEATH_TIME
field_57642
DEFAULT_TICKS_SINCE_DEATH
public final DragonFlightHistory
b
flightHistory
field_52493
frameTracker
private final EnderDragonPart[]
cv
subEntities
field_7032
parts
public final EnderDragonPart
c
head
field_7017
head
private final EnderDragonPart
cw
neck
field_7011
neck
private final EnderDragonPart
cx
body
field_7023
body
private final EnderDragonPart
cy
tail1
field_7020
tail1
private final EnderDragonPart
cz
tail2
field_7009
tail2
private final EnderDragonPart
cA
tail3
field_7022
tail3
private final EnderDragonPart
cB
wing1
field_7015
rightWing
private final EnderDragonPart
cC
wing2
field_7014
leftWing
public float
d
oFlapTime
field_7019
lastWingPosition
public float
e
flapTime
field_7030
wingPosition
public boolean
f
inWall
field_7027
slowedDownByBlock
public int
ck
dragonDeathTime
field_7031
ticksSinceDeath
public float
cl
yRotA
field_20865
yawAcceleration
public EndCrystal
cm
nearestCrystal
field_7024
connectedCrystal
private EndDragonFight
cD
dragonFight
field_7016
fight
private BlockPos
cE
fightOrigin
field_44875
fightOrigin
private final EnderDragonPhaseManager
cF
phaseManager
field_7028
phaseManager
private int
cG
growlTime
field_7018
ticksUntilNextGrowl
private float
cH
sittingDamageReceived
field_7029
damageDuringSitting
private final Node[]
cI
nodes
field_7012
pathNodes
private final int[]
cJ
nodeAdjacency
field_7025
pathNodeConnections
private final BinaryHeap
cK
openSet
field_7008
pathHeap

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(ejh arg0)
setDragonFight(EndDragonFight arg0)
method_51852(class_2881 arg0)
setFight(EnderDragonFight fight)
public void
c(jb arg0)
setFightOrigin(BlockPos arg0)
method_51853(class_2338 arg0)
setFightOrigin(BlockPos fightOrigin)
public BlockPos
l()
getFightOrigin()
method_51854()
getFightOrigin()
public static AttributeSupplier$Builder
m()
createAttributes()
method_26903()
createEnderDragonAttributes()
public boolean
bd()
isFlapping()
method_5776()
isFlappingWings()
public void
bc()
onFlap()
method_5801()
addFlapEffects()
protected void
a(alo$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
e_()
aiStep()
method_6007()
tickMovement()
private void
a(cqi 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
gE()
getHeadYOffset()
method_6820()
getHeadVerticalMovement()
private void
gF()
checkCrystals()
method_6830()
tickWithEndCrystals()
private void
a(auf arg0, List<bzx> 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(auf arg0, List<bzx> 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(auf arg0, fjt arg1)
checkWalls(ServerLevel arg0, AABB arg1)
method_6821(class_3218 arg0, class_238 arg1)
destroyBlocks(ServerWorld world, Box box)
public boolean
a(auf arg0, cqi arg1, byl 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(auf arg0, byl 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
d(auf arg0, byl 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(auf arg0)
kill(ServerLevel arg0)
method_5768(class_3218 arg0)
kill(ServerWorld arg0)
protected void
et()
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, fcd 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(fcd arg0, fcd arg1)
reconstructPath(Node arg0, Node arg1)
method_6826(class_9 arg0, class_9 arg1)
getPathOfAllPredecessors(PathNode unused, PathNode node)
protected void
a(fei arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
a(feg arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
dJ()
checkDespawn()
method_5982()
checkDespawn()
public EnderDragonPart[]
t()
getSubEntities()
method_5690()
getBodyParts()
public boolean
bK()
isPickable()
method_5863()
canHit()
public SoundSource
do()
getSoundSource()
method_5634()
getSoundCategory()
protected SoundEvent
p()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(byl arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected float
fk()
getSoundVolume()
method_6107()
getSoundVolume()
public Vec3
J(float arg0)
getHeadLookVector(float arg0)
method_6834(float arg0)
getRotationVectorFromPhase(float tickProgress)
public void
a(auf arg0, cqk arg1, jb arg2, byl 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(alk<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public EnderDragonPhaseManager
gC()
getPhaseManager()
method_6831()
getPhaseManager()
public EndDragonFight
gD()
getDragonFight()
method_6829()
getFight()
public boolean
b(bza arg0, bzx arg1)
addEffect(MobEffectInstance arg0, Entity arg1)
method_37222(class_1293 arg0, class_1297 arg1)
addStatusEffect(StatusEffectInstance arg0, Entity arg1)
protected boolean
p(bzx arg0)
canRide(Entity arg0)
method_5860(class_1297 arg0)
canStartRiding(Entity arg0)
public boolean
o(boolean arg0)
canUsePortal(boolean arg0)
method_5822(boolean arg0)
canUsePortals(boolean arg0)
public void
a(acu arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public boolean
c(cay arg0)
canAttack(LivingEntity arg0)
method_18395(class_1309 arg0)
canTarget(LivingEntity arg0)
protected float
c(float arg0)
sanitizeScale(float arg0)
method_56077(float arg0)
clampScale(float arg0)