Class AbstractDragonPhaseInstance
java.lang.Object
net.minecraft.world.entity.boss.enderdragon.phases.AbstractDragonPhaseInstance
- All Implemented Interfaces:
DragonPhaseInstance
- Direct Known Subclasses:
AbstractDragonSittingPhase, DragonChargePlayerPhase, DragonDeathPhase, DragonHoldingPatternPhase, DragonHoverPhase, DragonLandingApproachPhase, DragonLandingPhase, DragonStrafePlayerPhase, DragonTakeoffPhase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()voidvoiddoServerTick(ServerLevel level) voidend()float@Nullable Vec3floatbooleanvoidonCrystalDestroyed(EndCrystal crystal, BlockPos pos, DamageSource source, @Nullable Player player) floatonHurt(DamageSource source, float damage) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DragonPhaseInstance
getPhase
-
Field Details
-
dragon
-
-
Constructor Details
-
AbstractDragonPhaseInstance
-
-
Method Details
-
isSitting
public boolean isSitting()- Specified by:
isSittingin interfaceDragonPhaseInstance
-
doClientTick
public void doClientTick()- Specified by:
doClientTickin interfaceDragonPhaseInstance
-
doServerTick
- Specified by:
doServerTickin interfaceDragonPhaseInstance
-
onCrystalDestroyed
public void onCrystalDestroyed(EndCrystal crystal, BlockPos pos, DamageSource source, @Nullable Player player) - Specified by:
onCrystalDestroyedin interfaceDragonPhaseInstance
-
begin
public void begin()- Specified by:
beginin interfaceDragonPhaseInstance
-
end
public void end()- Specified by:
endin interfaceDragonPhaseInstance
-
getFlySpeed
public float getFlySpeed()- Specified by:
getFlySpeedin interfaceDragonPhaseInstance
-
getFlyTargetLocation
- Specified by:
getFlyTargetLocationin interfaceDragonPhaseInstance
-
onHurt
- Specified by:
onHurtin interfaceDragonPhaseInstance
-
getTurnSpeed
public float getTurnSpeed()- Specified by:
getTurnSpeedin interfaceDragonPhaseInstance
-