public enum ParticleType extends java.lang.Enum<ParticleType>
Enum Constant and Description |
---|
LASER_BEAM_DOUBLE
The beam emitting from a double laser
|
LASER_BEAM_DOUBLE_CROSS
The beam emitted where two double beams cross
|
LASER_BEAM_DOUBLE_TRIPLE_CROSS
The beam emitted where a double beam crosses a triple beam
|
LASER_BEAM_SINGLE
The beam emitting from a single laser
|
LASER_BEAM_SINGLE_CROSS
The beam emitted where two single beams cross
|
LASER_BEAM_SINGLE_DOUBLE_CROSS
The beam emitted where a single beam crosses a double beam
|
LASER_BEAM_SINGLE_TRIPLE_CROSS
The beam emitted where a single beam crosses a triple beam
|
LASER_BEAM_TRIPLE
The beam emitting if a single laser shoots in the opposite direction of a double laser
|
LASER_BEAM_TRIPLE_CROSS
The beam emitted where two triple beams cross
|
Modifier and Type | Method and Description |
---|---|
static ParticleType |
getParticleTypeFromID(int particleTypeID)
Gets a particle type value from its numerical representation
|
int |
getParticleTypeID()
Gets the numerical id used for alternate identification of a tile type
|
static ParticleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParticleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParticleType LASER_BEAM_SINGLE
public static final ParticleType LASER_BEAM_DOUBLE
public static final ParticleType LASER_BEAM_TRIPLE
public static final ParticleType LASER_BEAM_SINGLE_CROSS
public static final ParticleType LASER_BEAM_DOUBLE_CROSS
public static final ParticleType LASER_BEAM_TRIPLE_CROSS
public static final ParticleType LASER_BEAM_SINGLE_DOUBLE_CROSS
public static final ParticleType LASER_BEAM_SINGLE_TRIPLE_CROSS
public static final ParticleType LASER_BEAM_DOUBLE_TRIPLE_CROSS
public static ParticleType[] values()
for (ParticleType c : ParticleType.values()) System.out.println(c);
public static ParticleType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ParticleType getParticleTypeFromID(int particleTypeID)
particleTypeID
- The numerical representation of a particle typepublic int getParticleTypeID()