net.minecraft.entity.boss.dragon

public class EnderDragonEntity

extends MobEntity implements Monster

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Monster

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
LOGGER
field_7021
LOGGER
public static final TrackedData<Integer>
DATA_PHASE
field_7013
PHASE_TYPE
private static final TargetPredicate
CRYSTAL_DESTROY_TARGETING
field_18120
CLOSE_PLAYER_PREDICATE
private static final int
GROWL_INTERVAL_MIN
field_30428
MAX_HEALTH
private static final int
GROWL_INTERVAL_MAX
field_30429
field_30429
private static final float
SITTING_ALLOWED_DAMAGE_PERCENTAGE
field_30430
TAKEOFF_THRESHOLD
private static final String
DRAGON_DEATH_TIME_KEY
field_33910
DRAGON_DEATH_TIME_KEY
private static final String
DRAGON_PHASE_KEY
field_33911
DRAGON_PHASE_KEY
private static final int
DEFAULT_DEATH_TIME
field_57642
DEFAULT_TICKS_SINCE_DEATH
public final EnderDragonFrameTracker
flightHistory
field_52493
frameTracker
private final EnderDragonPart[]
subEntities
field_7032
parts
public final EnderDragonPart
head
field_7017
head
private final EnderDragonPart
neck
field_7011
neck
private final EnderDragonPart
body
field_7023
body
private final EnderDragonPart
tail1
field_7020
tail1
private final EnderDragonPart
tail2
field_7009
tail2
private final EnderDragonPart
tail3
field_7022
tail3
private final EnderDragonPart
wing1
field_7015
rightWing
private final EnderDragonPart
wing2
field_7014
leftWing
public float
oFlapTime
field_7019
lastWingPosition
public float
flapTime
field_7030
wingPosition
public boolean
inWall
field_7027
slowedDownByBlock
public int
dragonDeathTime
field_7031
ticksSinceDeath
public float
yRotA
field_20865
yawAcceleration
public EndCrystalEntity
nearestCrystal
field_7024
connectedCrystal
private EnderDragonFight
dragonFight
field_7016
fight
private BlockPos
fightOrigin
field_44875
fightOrigin
private final PhaseManager
phaseManager
field_7028
phaseManager
private int
growlTime
field_7018
ticksUntilNextGrowl
private float
sittingDamageReceived
field_7029
damageDuringSitting
private final PathNode[]
nodes
field_7012
pathNodes
private final int[]
nodeAdjacency
field_7025
pathNodeConnections
private final PathMinHeap
openSet
field_7008
pathHeap

Constructor summary

ModifierConstructor
public (EntityType<? extends EnderDragonEntity> type, World level)

Method summary

Modifier and TypeMethod
public void
setDragonFight(EnderDragonFight fight)
method_51852(class_2881 arg0)
setFight(EnderDragonFight fight)
public void
setFightOrigin(BlockPos fightOrigin)
method_51853(class_2338 arg0)
setFightOrigin(BlockPos fightOrigin)
public BlockPos
getFightOrigin()
method_51854()
getFightOrigin()
public static DefaultAttributeContainer$Builder
createAttributes()
method_26903()
createEnderDragonAttributes()
public boolean
isFlapping()
method_5776()
isFlappingWings()
public void
onFlap()
method_5801()
addFlapEffects()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
aiStep()
method_6007()
tickMovement()
private void
tickPart(EnderDragonPart part, double x, double y, double z)
method_22863(class_1508 arg0, double arg1, double arg2, double arg3)
movePart(EnderDragonPart enderDragonPart, double dx, double dy, double dz)
private float
getHeadYOffset()
method_6820()
getHeadVerticalMovement()
private void
checkCrystals()
method_6830()
tickWithEndCrystals()
private void
knockBack(ServerLevel serverLevel, List<Entity> entities)
method_6825(class_3218 arg0, List<class_1297> arg1)
launchLivingEntities(ServerWorld world, List<Entity> entities)
private void
hurt(ServerLevel level, List<Entity> entities)
method_6827(class_3218 arg0, List<class_1297> arg1)
damageLivingEntities(ServerWorld world, List<Entity> entities)
private float
rotWrap(double d)
method_6832(double arg0)
wrapYawChange(double yawDegrees)
private boolean
checkWalls(ServerLevel level, AABB bb)
method_6821(class_3218 arg0, class_238 arg1)
destroyBlocks(ServerWorld world, Box box)
public boolean
hurt(ServerLevel level, EnderDragonPart part, DamageSource source, float damage)
method_6816(class_3218 arg0, class_1508 arg1, class_1282 arg2, float arg3)
damagePart(ServerWorld world, EnderDragonPart part, DamageSource source, float amount)
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
protected void
reallyHurt(ServerLevel level, DamageSource source, float damage)
method_6819(class_3218 arg0, class_1282 arg1, float arg2)
parentDamage(ServerWorld world, DamageSource source, float amount)
public void
knockback(double power, double xd, double zd)
method_6005(double arg0, double arg1, double arg2)
takeKnockback(double arg0, double arg1, double arg2)
public void
kill(ServerLevel level)
method_5768(class_3218 arg0)
kill(ServerWorld arg0)
protected void
tickDeath()
method_6108()
updatePostDeath()
public int
findClosestNode()
method_6818()
getNearestPathNodeIndex()
public int
findClosestNode(double tX, double tY, double tZ)
method_6822(double arg0, double arg1, double arg2)
getNearestPathNodeIndex(double x, double y, double z)
public Path
findPath(int startIndex, int endIndex, Node finalNode)
method_6833(int arg0, int arg1, class_9 arg2)
findPath(int from, int to, PathNode pathNode)
private Path
reconstructPath(Node from, Node to)
method_6826(class_9 arg0, class_9 arg1)
getPathOfAllPredecessors(PathNode unused, PathNode node)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
checkDespawn()
method_5982()
checkDespawn()
public EnderDragonPart[]
getSubEntities()
method_5690()
getBodyParts()
public boolean
isPickable()
method_5863()
canHit()
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected float
getSoundVolume()
method_6107()
getSoundVolume()
public Vec3d
getHeadLookVector(float a)
method_6834(float arg0)
getRotationVectorFromPhase(float tickProgress)
public void
onCrystalDestroyed(ServerLevel level, EndCrystal crystal, BlockPos pos, DamageSource source)
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
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public PhaseManager
getPhaseManager()
method_6831()
getPhaseManager()
public EnderDragonFight
getDragonFight()
method_6829()
getFight()
public boolean
addEffect(MobEffectInstance newEffect, Entity source)
method_37222(class_1293 arg0, class_1297 arg1)
addStatusEffect(StatusEffectInstance arg0, Entity arg1)
protected boolean
canRide(Entity vehicle)
method_5860(class_1297 arg0)
canStartRiding(Entity arg0)
public boolean
canUsePortal(boolean ignorePassenger)
method_5822(boolean arg0)
canUsePortals(boolean arg0)
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
public boolean
canAttack(LivingEntity target)
method_18395(class_1309 arg0)
canTarget(LivingEntity arg0)
protected float
sanitizeScale(float scale)
method_56077(float arg0)
clampScale(float arg0)
private void
lambda$readAdditionalSaveData$0(Integer arg0)
method_68271(Integer arg0)
method_68271(Integer phase)