Package xyz.xenondevs.particle.data
Class ShriekData
java.lang.Object
xyz.xenondevs.particle.data.ParticleData
xyz.xenondevs.particle.data.ShriekData
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDelay()Gets the delay in ticks.Creates a new ShriekParticleOption instance with the data of the currentShriekDatainstance.Methods inherited from class xyz.xenondevs.particle.data.ParticleData
getEffect, setEffect
-
Constructor Details
-
ShriekData
public ShriekData(int delay) Constructs a newShriekDatainstance.- Parameters:
delay- The delay in ticks.
-
-
Method Details
-
getDelay
public int getDelay()Gets the delay in ticks.- Returns:
- The delay in ticks.
-
toNMSData
Creates a new ShriekParticleOption instance with the data of the currentShriekDatainstance.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 ShriekParticleOption instance with the data of the current
ShriekDatainstance.
-