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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetRoll()Gets the roll data.Creates a new SculkChargeParticleOptions instance with the data of the currentSculkChargeDatainstance.Methods inherited from class xyz.xenondevs.particle.data.ParticleData
getEffect, setEffect
-
Constructor Details
-
SculkChargeData
public SculkChargeData(float roll) Constructs a newSculkChargeDatainstance.- 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 currentSculkChargeDatainstance.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:
toNMSDatain classParticleData- Returns:
- a new SculkChargeParticleOptions instance with the data of the current
SculkChargeDatainstance.
-