Package com.comphenix.protocol.wrappers
Class WrappedParticle<T>
java.lang.Object
com.comphenix.protocol.wrappers.WrappedParticle<T>
Represents an immutable wrapped ParticleParam in 1.13
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> WrappedParticle<T> create(org.bukkit.Particle particle, T data) static WrappedParticlefromHandle(Object handle) getData()Gets this Particle's Bukkit/ProtocolLib data.org.bukkit.Particle
-
Method Details
-
getParticle
public org.bukkit.Particle getParticle()- Returns:
- This particle's Bukkit type
-
getData
Gets this Particle's Bukkit/ProtocolLib data. The type of this data depends on theParticle 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) WrappedBlockDataItem crack particles ItemStackRedstone particles Particle.DustOptionsDust color transition particles Particle.DustTransition- Returns:
- The particle data
-
getHandle
- Returns:
- NMS handle
-
fromHandle
-
create
-