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
-
Method Summary
Modifier and TypeMethodDescriptionGets theParticleEffect
the currentParticleData
is assigned to.void
setEffect
(ParticleEffect effect) Sets theParticleEffect
.abstract Object
Converts the currentParticleData
instance into nms data.
-
Constructor Details
-
ParticleData
public ParticleData()
-
-
Method Details
-
setEffect
Sets theParticleEffect
.- Parameters:
effect
- theParticleEffect
that should be displayed.
-
toNMSData
Converts the currentParticleData
instance 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 theParticleEffect
the currentParticleData
is assigned to.- Returns:
- the current
ParticleEffect
-