Class AbstractPhase
java.lang.Object
net.minecraft.entity.boss.dragon.phase.AbstractPhase
- All Implemented Interfaces:
Phase
- Direct Known Subclasses:
AbstractSittingPhase,ChargingPlayerPhase,DyingPhase,HoldingPatternPhase,HoverPhase,LandingApproachPhase,LandingPhase,StrafePlayerPhase,TakeoffPhase
public abstract class AbstractPhase extends Object implements Phase
-
Field Summary
Fields Modifier and Type Field Description protected EnderDragonEntitydragon -
Constructor Summary
Constructors Constructor Description AbstractPhase(EnderDragonEntity dragon) -
Method Summary
Modifier and Type Method Description voidbeginPhase()voidclientTick()voidcrystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, PlayerEntity player)voidendPhase()floatgetMaxYAcceleration()Vec3dgetTarget()booleanisSittingOrHovering()floatmethod_6847()floatmodifyDamageTaken(DamageSource damageSource, float float2)voidserverTick()
-
Field Details
-
dragon
-
-
Constructor Details
-
AbstractPhase
-
-
Method Details
-
isSittingOrHovering
public boolean isSittingOrHovering()- Specified by:
isSittingOrHoveringin interfacePhase
-
clientTick
public void clientTick()- Specified by:
clientTickin interfacePhase
-
serverTick
public void serverTick()- Specified by:
serverTickin interfacePhase
-
crystalDestroyed
public void crystalDestroyed(EndCrystalEntity crystal, BlockPos pos, DamageSource source, @Nullable PlayerEntity player)- Specified by:
crystalDestroyedin interfacePhase
-
beginPhase
public void beginPhase()- Specified by:
beginPhasein interfacePhase
-
endPhase
public void endPhase() -
getMaxYAcceleration
public float getMaxYAcceleration()- Specified by:
getMaxYAccelerationin interfacePhase
-
getTarget
-
modifyDamageTaken
- Specified by:
modifyDamageTakenin interfacePhase
-
method_6847
public float method_6847()- Specified by:
method_6847in interfacePhase
-