Class ParticleTexture
java.lang.Object
xyz.xenondevs.particle.data.ParticleData
xyz.xenondevs.particle.data.texture.ParticleTexture
- Direct Known Subclasses:
BlockTexture
,ItemTexture
An implementation of
ParticleData
to support particles that require a texture
to function properly.- Since:
- 11.06.2019
- Author:
- ByteZ
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbyte
getData()
Gets the damage value that will be displayed by the client.org.bukkit.Material
Gets theMaterial
that will be displayed b the particle.Converts the currentParticleData
instance into nms data.Methods inherited from class xyz.xenondevs.particle.data.ParticleData
getEffect, setEffect
-
Method Details
-
getMaterial
public org.bukkit.Material getMaterial()Gets theMaterial
that will be displayed b the particle.- Returns:
- the
Material
the current data is assigned to
-
getData
public byte getData()Gets the damage value that will be displayed by the client.- Returns:
- the damage value of the current texture.
-
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.- Specified by:
toNMSData
in classParticleData
- Returns:
- the nms data.
-