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. For Block particles it will beWrappedBlockData, for Item crack particles, it will be anItemStack, and for redstone particles it will beParticle.DustOptions- Returns:
- The particle data
-
getHandle
- Returns:
- NMS handle
-
fromHandle
-
create
-