Class ParticleSettings

java.lang.Object
com.sucy.skill.api.particle.ParticleSettings

public class ParticleSettings extends Object
Settings for playing a particle
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     
    final float
     
    final float
     
    final float
     
    final Object
     
    final float
     
    final org.bukkit.Particle
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParticleSettings(mc.promcteam.engine.mccore.config.parse.DataSection config)
    Loads a particle setup from config data
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    instance(org.bukkit.entity.Player player, double x, double y, double z)
    Makes a new instance of the particle effect

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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

      public final Object 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 type
      dx - DX value
      dy - DY value
      dz - DZ value
      speed - particle speed
      amount - particle amount
      material - material to use
      cmd - material cmd value
    • ParticleSettings

      public ParticleSettings(mc.promcteam.engine.mccore.config.parse.DataSection config)
      Loads a particle setup from config data
      Parameters:
      config - config data to load from
  • 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 coordinates
      y - Y-axis coordinates
      z - Z-axis coordinates