Class WrappedParticle<T>

java.lang.Object
com.comphenix.protocol.wrappers.WrappedParticle<T>

public class WrappedParticle<T> extends Object
Represents an immutable wrapped ParticleParam in 1.13
  • Method Details

    • getParticle

      public org.bukkit.Particle getParticle()
      Returns:
      This particle's Bukkit type
    • getData

      public T getData()
      Gets this Particle's Bukkit/ProtocolLib data. The type of this data depends on the Particle type. For Block particles it will be WrappedBlockData, for Item crack particles, it will be an ItemStack, and for redstone particles it will be Particle.DustOptions
      Returns:
      The particle data
    • getHandle

      public Object getHandle()
      Returns:
      NMS handle
    • fromHandle

      public static WrappedParticle fromHandle(Object handle)
    • create

      public static <T> WrappedParticle<T> create(org.bukkit.Particle particle, T data)