Class DragonPhases
java.lang.Object
me.gamercoder215.mobchip.ai.enderdragon.DragonPhases
Utility Class for Ender Dragon Phases
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DragonPhase
The dragon will attack with dragon breath at its current location.final DragonPhase
The dragon will charge a player.final DragonPhase
The dragon will circle outside the ring of pillars if ender crystal remain or inside the ring if not.final DragonPhase
The dragon will fly to the vicinity of the portal and die.final DragonPhase
The dragon will fly towards the empty portal (approaching from the other side, if applicable).final DragonPhase
The dragon will hover at its current location, not performing any actions.final DragonPhase
The dragon will land on the portal.final DragonPhase
The dragon will leave the portal.final DragonPhase
The dragon will roar before performing a breath attack.final DragonPhase
The dragon will search for a player to attack with dragon breath.final DragonPhase
The dragon will fly towards a targeted player and shoot a fireball when within 64 blocks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DragonPhase
fromBukkit
(@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
The dragon will charge a player.- See Also:
-
CIRCLING
The dragon will circle outside the ring of pillars if ender crystal remain or inside the ring if not.- See Also:
-
DYING
The dragon will fly to the vicinity of the portal and die.- See Also:
-
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
The dragon will land on the portal.- See Also:
-
LEAVE_PORTAL
The dragon will leave the portal.- See Also:
-
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
-