Class SculkChargeData

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

public final class SculkChargeData extends ParticleData
This class holds the roll data needed, to display the ParticleEffect.SCULK_CHARGE particle. This roll data is a float ranging from 0 to 1.0. The particle will roll from 0 to 360 degrees.
Author:
ByteZ
See Also:
  • Constructor Details

    • SculkChargeData

      public SculkChargeData(float roll)
      Constructs a new SculkChargeData instance.
      Parameters:
      roll - The roll data.
  • Method Details

    • getRoll

      public float getRoll()
      Gets the roll data.
      Returns:
      The roll data.
    • toNMSData

      public Object toNMSData()
      Creates a new SculkChargeParticleOptions instance with the data of the current SculkChargeData 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 SculkChargeParticleOptions instance with the data of the current SculkChargeData instance.