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
-
Method Summary
Modifier and TypeMethodDescriptionint
getDelay()
Gets the delay in ticks.Creates a new ShriekParticleOption instance with the data of the currentShriekData
instance.Methods inherited from class xyz.xenondevs.particle.data.ParticleData
getEffect, setEffect
-
Constructor Details
-
ShriekData
public ShriekData(int delay) Constructs a newShriekData
instance.- 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 currentShriekData
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 ShriekParticleOption instance with the data of the current
ShriekData
instance.
-