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 TypeMethodDescriptionbytegetData()Gets the damage value that will be displayed by the client.org.bukkit.MaterialGets theMaterialthat will be displayed b the particle.Converts the currentParticleDatainstance into nms data.Methods inherited from class xyz.xenondevs.particle.data.ParticleData
getEffect, setEffect
-
Method Details
-
getMaterial
public org.bukkit.Material getMaterial()Gets theMaterialthat will be displayed b the particle.- Returns:
- the
Materialthe 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 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.- Specified by:
toNMSDatain classParticleData- Returns:
- the nms data.
-