Class DragonPhases
java.lang.Object
me.gamercoder215.mobchip.ai.enderdragon.DragonPhases
Utility Class for Ender Dragon Phases
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DragonPhaseThe dragon will attack with dragon breath at its current location.final DragonPhaseThe dragon will charge a player.final DragonPhaseThe dragon will circle outside the ring of pillars if ender crystal remain or inside the ring if not.final DragonPhaseThe dragon will fly to the vicinity of the portal and die.final DragonPhaseThe dragon will fly towards the empty portal (approaching from the other side, if applicable).final DragonPhaseThe dragon will hover at its current location, not performing any actions.final DragonPhaseThe dragon will land on the portal.final DragonPhaseThe dragon will leave the portal.final DragonPhaseThe dragon will roar before performing a breath attack.final DragonPhaseThe dragon will search for a player to attack with dragon breath.final DragonPhaseThe dragon will fly towards a targeted player and shoot a fireball when within 64 blocks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DragonPhasefromBukkit(@NotNull EnderDragon dragon, EnderDragon.Phase phase) Converts a Bukkit Phase to a MobChip Phase.
-
Field Details
-
BREATH_ATTACK
The dragon will attack with dragon breath at its current location.- See Also:
-
CHARGE_PLAYER
-
CIRCLING
The dragon will circle outside the ring of pillars if ender crystal remain or inside the ring if not.- See Also:
-
DYING
-
FLY_TO_PORTAL
The dragon will fly towards the empty portal (approaching from the other side, if applicable).- See Also:
-
HOVER
The dragon will hover at its current location, not performing any actions.- See Also:
-
LAND_ON_PORTAL
-
LEAVE_PORTAL
-
ROAR_BEFORE_ATTACK
The dragon will roar before performing a breath attack.- See Also:
-
SEARCH_FOR_BREATH_ATTACK_TARGET
The dragon will search for a player to attack with dragon breath.- See Also:
-
STRAFING
The dragon will fly towards a targeted player and shoot a fireball when within 64 blocks.- See Also:
-
-
Constructor Details
-
DragonPhases
Constructs a new DragonPhases object.- Parameters:
d- Ender Dragon to use.- Throws:
IllegalArgumentException- if dragon is null
-
-
Method Details
-
fromBukkit
public static DragonPhase fromBukkit(@NotNull @NotNull EnderDragon dragon, @Nullable EnderDragon.Phase phase) throws IllegalArgumentException Converts a Bukkit Phase to a MobChip Phase.- Parameters:
dragon- The Dragon this phase is usingphase- Bukkit DragonPhase to convert.- Returns:
- MobChip DragonPhase
- Throws:
IllegalArgumentException- if dragon is null
-