Class ParticleTexture

java.lang.Object
xyz.xenondevs.particle.data.ParticleData
xyz.xenondevs.particle.data.texture.ParticleTexture
Direct Known Subclasses:
BlockTexture, ItemTexture

public class ParticleTexture extends ParticleData
An implementation of ParticleData to support particles that require a texture to function properly.
Since:
11.06.2019
Author:
ByteZ
See Also:
  • Method Details

    • getMaterial

      public org.bukkit.Material getMaterial()
      Gets the Material 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

      public Object toNMSData()
      Converts the current ParticleData 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 class ParticleData
      Returns:
      the nms data.