Class ShriekData

java.lang.Object
xyz.xenondevs.particle.data.ParticleData
xyz.xenondevs.particle.data.ShriekData

public final class ShriekData extends ParticleData
This class holds the delay data needed, to display the ParticleEffect.SHRIEK particle. The delay is in ticks. The client will wait this amount of ticks before displaying the particle.
Author:
ByteZ
See Also:
  • Constructor Details

    • ShriekData

      public ShriekData(int delay)
      Constructs a new ShriekData instance.
      Parameters:
      delay - The delay in ticks.
  • Method Details

    • getDelay

      public int getDelay()
      Gets the delay in ticks.
      Returns:
      The delay in ticks.
    • toNMSData

      public Object toNMSData()
      Creates a new ShriekParticleOption instance with the data of the current ShriekData instance.

      Please note that this class is not supported in any versions before 1.19 and could lead to errors if used in legacy versions.

      Specified by:
      toNMSData in class ParticleData
      Returns:
      a new ShriekParticleOption instance with the data of the current ShriekData instance.