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 TypeMethodDescriptionvoid
begin()
void
void
doServerTick
(ServerLevel pLevel) void
end()
float
float
boolean
void
onCrystalDestroyed
(EndCrystal pCrystal, BlockPos pPos, DamageSource pDmgSrc, Player pPlyr) float
onHurt
(DamageSource pDamageSource, float pAmount) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.entity.boss.enderdragon.phases.DragonPhaseInstance
getPhase
-
Field Details
-
dragon
-
-
Constructor Details
-
AbstractDragonPhaseInstance
-
-
Method Details
-
isSitting
public boolean isSitting()- Specified by:
isSitting
in interfaceDragonPhaseInstance
-
doClientTick
public void doClientTick()- Specified by:
doClientTick
in interfaceDragonPhaseInstance
-
doServerTick
- Specified by:
doServerTick
in interfaceDragonPhaseInstance
-
onCrystalDestroyed
public void onCrystalDestroyed(EndCrystal pCrystal, BlockPos pPos, DamageSource pDmgSrc, @Nullable Player pPlyr) - Specified by:
onCrystalDestroyed
in interfaceDragonPhaseInstance
-
begin
public void begin()- Specified by:
begin
in interfaceDragonPhaseInstance
-
end
public void end()- Specified by:
end
in interfaceDragonPhaseInstance
-
getFlySpeed
public float getFlySpeed()- Specified by:
getFlySpeed
in interfaceDragonPhaseInstance
-
getFlyTargetLocation
- Specified by:
getFlyTargetLocation
in interfaceDragonPhaseInstance
-
onHurt
- Specified by:
onHurt
in interfaceDragonPhaseInstance
-
getTurnSpeed
public float getTurnSpeed()- Specified by:
getTurnSpeed
in interfaceDragonPhaseInstance
-