Package xyz.xenondevs.particle.data
Class ParticleData
java.lang.Object
xyz.xenondevs.particle.data.ParticleData
- Direct Known Subclasses:
ParticleColor,ParticleTexture,SculkChargeData,ShriekData,VibrationData
A class to easier hold data of a particle.
- Since:
- 10.06.2019
- Author:
- ByteZ
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theParticleEffectthe currentParticleDatais assigned to.voidsetEffect(ParticleEffect effect) Sets theParticleEffect.abstract ObjectConverts the currentParticleDatainstance into nms data.
-
Constructor Details
-
ParticleData
public ParticleData()
-
-
Method Details
-
setEffect
Sets theParticleEffect.- Parameters:
effect- theParticleEffectthat should be displayed.
-
toNMSData
Converts the currentParticleDatainstance into nms data. If the current minecraft version was released before 1.13 an int array should be returned. If the version was released after 1.12 a nms "ParticleParam" has to be returned.- Returns:
- the nms data.
-
getEffect
Gets theParticleEffectthe currentParticleDatais assigned to.- Returns:
- the current
ParticleEffect
-