Class DragonHoldingPatternPhase
java.lang.Object
net.minecraft.world.entity.boss.enderdragon.phases.AbstractDragonPhaseInstance
net.minecraft.world.entity.boss.enderdragon.phases.DragonHoldingPatternPhase
- All Implemented Interfaces:
DragonPhaseInstance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate @Nullable Pathprivate static final TargetingConditionsprivate @Nullable Vec3Fields inherited from class AbstractDragonPhaseInstance
dragon -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()voiddoServerTick(ServerLevel level) private voidfindNewTarget(ServerLevel level) @Nullable Vec3getPhase()private voidvoidonCrystalDestroyed(EndCrystal crystal, BlockPos pos, DamageSource source, @Nullable Player player) private voidstrafePlayer(Player playerNearestToEgg) Methods inherited from class AbstractDragonPhaseInstance
doClientTick, end, getFlySpeed, getTurnSpeed, isSitting, onHurt
-
Field Details
-
NEW_TARGET_TARGETING
-
currentPath
-
targetLocation
-
clockwise
private boolean clockwise
-
-
Constructor Details
-
DragonHoldingPatternPhase
-
-
Method Details
-
getPhase
-
doServerTick
- Specified by:
doServerTickin interfaceDragonPhaseInstance- Overrides:
doServerTickin classAbstractDragonPhaseInstance
-
begin
public void begin()- Specified by:
beginin interfaceDragonPhaseInstance- Overrides:
beginin classAbstractDragonPhaseInstance
-
getFlyTargetLocation
- Specified by:
getFlyTargetLocationin interfaceDragonPhaseInstance- Overrides:
getFlyTargetLocationin classAbstractDragonPhaseInstance
-
findNewTarget
-
strafePlayer
-
onCrystalDestroyed
public void onCrystalDestroyed(EndCrystal crystal, BlockPos pos, DamageSource source, @Nullable Player player) - Specified by:
onCrystalDestroyedin interfaceDragonPhaseInstance- Overrides:
onCrystalDestroyedin classAbstractDragonPhaseInstance
-