Class Phase
- java.lang.Object
-
- net.minecraft.entity.boss.dragon.phase.Phase
-
- All Implemented Interfaces:
IPhase
- Direct Known Subclasses:
ChargingPlayerPhase
,DyingPhase
,HoldingPatternPhase
,HoverPhase
,LandingApproachPhase
,LandingPhase
,SittingPhase
,StrafePlayerPhase
,TakeoffPhase
public abstract class Phase extends java.lang.Object implements IPhase
-
-
Field Summary
Fields Modifier and Type Field Description protected EnderDragonEntity
dragon
-
Constructor Summary
Constructors Constructor Description Phase(EnderDragonEntity p_i46795_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
void
doClientTick()
void
doServerTick()
void
end()
float
getFlySpeed()
Vector3d
getFlyTargetLocation()
float
getTurnSpeed()
boolean
isSitting()
void
onCrystalDestroyed(EnderCrystalEntity p_188655_1_, BlockPos p_188655_2_, DamageSource p_188655_3_, PlayerEntity p_188655_4_)
float
onHurt(DamageSource p_221113_1_, float p_221113_2_)
-
-
-
Field Detail
-
dragon
protected final EnderDragonEntity dragon
-
-
Constructor Detail
-
Phase
public Phase(EnderDragonEntity p_i46795_1_)
-
-
Method Detail
-
doClientTick
public void doClientTick()
- Specified by:
doClientTick
in interfaceIPhase
-
doServerTick
public void doServerTick()
- Specified by:
doServerTick
in interfaceIPhase
-
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
-
getFlySpeed
public float getFlySpeed()
- Specified by:
getFlySpeed
in interfaceIPhase
-
getFlyTargetLocation
@Nullable public Vector3d getFlyTargetLocation()
- Specified by:
getFlyTargetLocation
in interfaceIPhase
-
onHurt
public float onHurt(DamageSource p_221113_1_, float p_221113_2_)
-
getTurnSpeed
public float getTurnSpeed()
- Specified by:
getTurnSpeed
in interfaceIPhase
-
-