Class ParticleData

java.lang.Object
xyz.xenondevs.particle.data.ParticleData
Direct Known Subclasses:
ParticleColor, ParticleTexture, SculkChargeData, ShriekData, VibrationData

public abstract class ParticleData extends Object
A class to easier hold data of a particle.
Since:
10.06.2019
Author:
ByteZ
  • Constructor Details

    • ParticleData

      public ParticleData()
  • Method Details

    • setEffect

      public void setEffect(ParticleEffect effect)
      Sets the ParticleEffect.
      Parameters:
      effect - the ParticleEffect that should be displayed.
    • toNMSData

      public abstract 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.
      Returns:
      the nms data.
    • getEffect

      public ParticleEffect getEffect()
      Gets the ParticleEffect the current ParticleData is assigned to.
      Returns:
      the current ParticleEffect