Interface ParticleData

All Known Implementing Classes:
BlockParticle, ColorParticle, DustParticle, DustTransitionParticle, ItemParticle, PowerParticle, SculkChargeParticle, SpellParticle, TrailParticle, VibrationParticle

@NullMarked @AsOf("2.0.0") public interface ParticleData
An interface for particle data that can be applied to a specific particle type.
Since:
1.1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(ParticleType particleType)
    Applies the particle data to the given particle type and returns the corresponding ParticleOptions.
    static int
    Parses a hexadecimal color string and returns its integer representation.
  • Method Details

    • parseHex

      @AsOf("1.1.0") static int parseHex(String color)
      Parses a hexadecimal color string and returns its integer representation.
      Parameters:
      color - The hexadecimal color string (e.g., "#FF5733" or "FF5733").
      Returns:
      The integer representation of the color.
    • apply

      @AsOf("1.1.0") ParticleOptions apply(ParticleType particleType)
      Applies the particle data to the given particle type and returns the corresponding ParticleOptions.
      Parameters:
      particleType - The particle type to which the data will be applied.
      Returns:
      The ParticleOptions representing the applied particle data.