Class HoldingPatternPhase
- java.lang.Object
-
- net.minecraft.entity.boss.dragon.phase.Phase
-
- net.minecraft.entity.boss.dragon.phase.HoldingPatternPhase
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
clockwise
private Path
currentPath
private static EntityPredicate
NEW_TARGET_TARGETING
private Vector3d
targetLocation
-
Constructor Summary
Constructors Constructor Description HoldingPatternPhase(EnderDragonEntity p_i46791_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
void
doServerTick()
private void
findNewTarget()
Vector3d
getFlyTargetLocation()
PhaseType<HoldingPatternPhase>
getPhase()
private void
navigateToNextPathNode()
void
onCrystalDestroyed(EnderCrystalEntity p_188655_1_, BlockPos p_188655_2_, DamageSource p_188655_3_, PlayerEntity p_188655_4_)
private void
strafePlayer(PlayerEntity p_188674_1_)
-
Methods inherited from class net.minecraft.entity.boss.dragon.phase.Phase
doClientTick, end, getFlySpeed, getTurnSpeed, isSitting, onHurt
-
-
-
-
Field Detail
-
NEW_TARGET_TARGETING
private static final EntityPredicate NEW_TARGET_TARGETING
-
currentPath
private Path currentPath
-
targetLocation
private Vector3d targetLocation
-
clockwise
private boolean clockwise
-
-
Constructor Detail
-
HoldingPatternPhase
public HoldingPatternPhase(EnderDragonEntity p_i46791_1_)
-
-
Method Detail
-
getPhase
public PhaseType<HoldingPatternPhase> getPhase()
-
doServerTick
public void doServerTick()
- Specified by:
doServerTick
in interfaceIPhase
- Overrides:
doServerTick
in classPhase
-
getFlyTargetLocation
@Nullable public Vector3d getFlyTargetLocation()
- Specified by:
getFlyTargetLocation
in interfaceIPhase
- Overrides:
getFlyTargetLocation
in classPhase
-
findNewTarget
private void findNewTarget()
-
strafePlayer
private void strafePlayer(PlayerEntity p_188674_1_)
-
navigateToNextPathNode
private void navigateToNextPathNode()
-
onCrystalDestroyed
public void onCrystalDestroyed(EnderCrystalEntity p_188655_1_, BlockPos p_188655_2_, DamageSource p_188655_3_, @Nullable PlayerEntity p_188655_4_)
- Specified by:
onCrystalDestroyed
in interfaceIPhase
- Overrides:
onCrystalDestroyed
in classPhase
-
-