Class DustOptionsProvider

java.lang.Object
org.bukkit.Particle.DustOptions
wbs.utils.util.particles.data.DustOptionsProvider
All Implemented Interfaces:
Provider, Refreshable

@Beta public class DustOptionsProvider extends org.bukkit.Particle.DustOptions implements Provider
Provider that implements Particle.DustOptions for the purpose of allowing particle data to be refreshed and written to a config.
  • Constructor Details

  • Method Details

    • getColor

      @NotNull public @NotNull org.bukkit.Color getColor()
      Overrides:
      getColor in class org.bukkit.Particle.DustOptions
    • getSize

      public float getSize()
      Overrides:
      getSize in class org.bukkit.Particle.DustOptions
    • refresh

      public void refresh()
      Description copied from interface: Refreshable
      Refreshes this object, whatever that means for a given implementation - typically an internal value that may be retrieved over time, but not necessarily.
      Specified by:
      refresh in interface Refreshable
    • writeToConfig

      public void writeToConfig(org.bukkit.configuration.ConfigurationSection section, String path)
      Description copied from interface: Provider
      Save this provider in a config (that can often by read by its constructor)
      Specified by:
      writeToConfig in interface Provider
      Parameters:
      section - The section to write to
      path - The field/path inside the given section