Class ParticleSettings
java.lang.Object
studio.magemonkey.fabled.api.particle.ParticleSettings
Settings for playing a particle
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
static final String
static final String
static final String
static final String
static final String
final float
static final String
final float
static final String
final float
static final String
static final String
static final String
final Object
static final String
final float
static final String
final org.bukkit.Particle
-
Constructor Summary
ConstructorsConstructorDescriptionParticleSettings
(org.bukkit.Particle type, float dx, float dy, float dz, float speed, int amount, org.bukkit.Material material, int cmd, int durability, org.bukkit.Color dustColor, org.bukkit.Color toColor, float dusSize) Sets up a particle that requires material cmdParticleSettings
(studio.magemonkey.codex.mccore.config.parse.DataSection config) Loads a particle setup from config dataParticleSettings
(Settings config, String prefix) Loads a particle setup from config data -
Method Summary
Modifier and TypeMethodDescriptionvoid
instance
(org.bukkit.entity.Player player, double x, double y, double z) Makes a new instance of the particle effect
-
Field Details
-
PARTICLE_KEY
- See Also:
-
MATERIAL_KEY
- See Also:
-
DURABILITY_KEY
- See Also:
-
DATA_KEY
- See Also:
-
AMOUNT_KEY
- See Also:
-
DX_KEY
- See Also:
-
DY_KEY
- See Also:
-
DZ_KEY
- See Also:
-
SPEED_KEY
- See Also:
-
DUST_COLOR
- See Also:
-
FINAL_DUST_COLOR
- See Also:
-
DUST_SIZE
- See Also:
-
type
public final org.bukkit.Particle type -
dx
public final float dx -
dy
public final float dy -
dz
public final float dz -
speed
public final float speed -
amount
public final int amount -
object
-
-
Constructor Details
-
ParticleSettings
public ParticleSettings(org.bukkit.Particle type, float dx, float dy, float dz, float speed, int amount, org.bukkit.Material material, int cmd, int durability, org.bukkit.Color dustColor, org.bukkit.Color toColor, float dusSize) Sets up a particle that requires material cmd- Parameters:
type
- particle typedx
- DX valuedy
- DY valuedz
- DZ valuespeed
- particle speedamount
- particle amountmaterial
- material to usecmd
- material cmd value
-
ParticleSettings
public ParticleSettings(studio.magemonkey.codex.mccore.config.parse.DataSection config) Loads a particle setup from config data- Parameters:
config
- config data to load from
-
ParticleSettings
Loads a particle setup from config data- Parameters:
config
- config data to load fromprefix
- string to look for at the beginning of each config key
-
-
Method Details
-
instance
public void instance(org.bukkit.entity.Player player, double x, double y, double z) Makes a new instance of the particle effect- Parameters:
x
- X-axis coordinatesy
- Y-axis coordinatesz
- Z-axis coordinates
-