public class PhaseList<T extends IPhase>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static PhaseList<PhaseChargingPlayer> |
CHARGING_PLAYER |
private java.lang.Class<? extends IPhase> |
clazz |
static PhaseList<PhaseDying> |
DYING |
static PhaseList<PhaseHoldingPattern> |
HOLDING_PATTERN |
static PhaseList<PhaseHover> |
HOVER |
private int |
id |
static PhaseList<PhaseLanding> |
LANDING |
static PhaseList<PhaseLandingApproach> |
LANDING_APPROACH |
private java.lang.String |
name |
private static PhaseList<?>[] |
phases |
static PhaseList<PhaseSittingAttacking> |
SITTING_ATTACKING |
static PhaseList<PhaseSittingFlaming> |
SITTING_FLAMING |
static PhaseList<PhaseSittingScanning> |
SITTING_SCANNING |
static PhaseList<PhaseStrafePlayer> |
STRAFE_PLAYER |
static PhaseList<PhaseTakeoff> |
TAKEOFF |
Modifier | Constructor and Description |
---|---|
private |
PhaseList(int idIn,
java.lang.Class<? extends IPhase> clazzIn,
java.lang.String nameIn) |
Modifier and Type | Method and Description |
---|---|
private static <T extends IPhase> |
create(java.lang.Class<T> phaseIn,
java.lang.String nameIn) |
IPhase |
createPhase(EntityDragon dragon) |
static PhaseList<?> |
getById(int idIn) |
protected java.lang.reflect.Constructor<? extends IPhase> |
getConstructor() |
int |
getId() |
static int |
getTotalPhases() |
java.lang.String |
toString() |
private static PhaseList<?>[] phases
public static final PhaseList<PhaseHoldingPattern> HOLDING_PATTERN
public static final PhaseList<PhaseStrafePlayer> STRAFE_PLAYER
public static final PhaseList<PhaseLandingApproach> LANDING_APPROACH
public static final PhaseList<PhaseLanding> LANDING
public static final PhaseList<PhaseTakeoff> TAKEOFF
public static final PhaseList<PhaseSittingFlaming> SITTING_FLAMING
public static final PhaseList<PhaseSittingScanning> SITTING_SCANNING
public static final PhaseList<PhaseSittingAttacking> SITTING_ATTACKING
public static final PhaseList<PhaseChargingPlayer> CHARGING_PLAYER
public static final PhaseList<PhaseDying> DYING
public static final PhaseList<PhaseHover> HOVER
private final java.lang.Class<? extends IPhase> clazz
private final int id
private final java.lang.String name
private PhaseList(int idIn, java.lang.Class<? extends IPhase> clazzIn, java.lang.String nameIn)
public IPhase createPhase(EntityDragon dragon)
protected java.lang.reflect.Constructor<? extends IPhase> getConstructor() throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public int getId()
public java.lang.String toString()
toString
in class java.lang.Object
public static PhaseList<?> getById(int idIn)
public static int getTotalPhases()