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. Refer to the table below for the corresponding data types.

      Particle Data Types
      Particle Type Particle Data Type
      Block particles (BLOCK_CRACK, BLOCK_DUST, FALLING_DUST) WrappedBlockData
      Item crack particles ItemStack
      Redstone particles Particle.DustOptions
      Dust color transition particles Particle.DustTransition
      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)