Class EffectPlayer
java.lang.Object
studio.magemonkey.fabled.api.particle.EffectPlayer
Handles playing effects based on configuration settings
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionEffectPlayer
(Settings settings) Sets up an effect player that applies effects based of the values in the provided settings. -
Method Summary
Modifier and TypeMethodDescriptionvoid
start
(EffectTarget target, String key, int ticks, int level) Plays a particle effect, grabbing values from the settings datavoid
start
(EffectTarget target, String key, int ticks, int level, boolean noPrefix) Plays a particle effect, grabbing values from the settings data
-
Field Details
-
SHAPE
- See Also:
-
SHAPE_DIR
- See Also:
-
SHAPE_SIZE
- See Also:
-
ANIMATION
- See Also:
-
ANIM_DIR
- See Also:
-
ANIM_SIZE
- See Also:
-
INTERVAL
- See Also:
-
VIEW_RANGE
- See Also:
-
WITH_ROTATION
- See Also:
-
INITIAL_ROTATION
- See Also:
-
P_TYPE
- See Also:
-
MAT
- See Also:
-
DURABILITY
- See Also:
-
CMD
- See Also:
-
DUST_COLOR
- See Also:
-
FINAL_DUST_COLOR
- See Also:
-
DUST_SIZE
- See Also:
-
AMOUNT
- See Also:
-
DX
- See Also:
-
DY
- See Also:
-
DZ
- See Also:
-
SPEED
- See Also:
-
-
Constructor Details
-
EffectPlayer
Sets up an effect player that applies effects based of the values in the provided settings. All of the available settings are provided as static values in this class.- Parameters:
settings
- settings to read from
-
-
Method Details
-
start
Plays a particle effect, grabbing values from the settings data- Parameters:
target
- target to play forkey
- effect key to useticks
- duration of effect in tickslevel
- level of the effect
-
start
Plays a particle effect, grabbing values from the settings data- Parameters:
target
- target to play forkey
- effect key to useticks
- duration of effect in tickslevel
- level of the effectnoPrefix
- exclude prefix when grabbing settings
-