Package xyz.xenondevs.particle.data
Class SculkChargeData
java.lang.Object
xyz.xenondevs.particle.data.ParticleData
xyz.xenondevs.particle.data.SculkChargeData
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getRoll()
Gets the roll data.Creates a new SculkChargeParticleOptions instance with the data of the currentSculkChargeData
instance.Methods inherited from class xyz.xenondevs.particle.data.ParticleData
getEffect, setEffect
-
Constructor Details
-
SculkChargeData
public SculkChargeData(float roll) Constructs a newSculkChargeData
instance.- Parameters:
roll
- The roll data.
-
-
Method Details
-
getRoll
public float getRoll()Gets the roll data.- Returns:
- The roll data.
-
toNMSData
Creates a new SculkChargeParticleOptions instance with the data of the currentSculkChargeData
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 classParticleData
- Returns:
- a new SculkChargeParticleOptions instance with the data of the current
SculkChargeData
instance.
-