public abstract static class ParticleEffect.ParticleData
extends java.lang.Object
ParticleEffect.ITEM_CRACK
, ParticleEffect.BLOCK_CRACK
and ParticleEffect.BLOCK_DUST
This class is part of the ParticleEffect Library and follows the same usage conditions
Constructor and Description |
---|
ParticleData(org.bukkit.Material material,
byte data)
Construct a new particle data
|
Modifier and Type | Method and Description |
---|---|
byte |
getData()
Returns the data value of this data
|
org.bukkit.Material |
getMaterial()
Returns the material of this data
|
int[] |
getPacketData()
Returns the data as an int array for packet construction
|
java.lang.String |
getPacketDataString()
Returns the data as a string for pre 1.8 versions
|
public ParticleData(org.bukkit.Material material, byte data)
material
- Material of the item/blockdata
- Data value of the item/blockpublic org.bukkit.Material getMaterial()
public byte getData()
public int[] getPacketData()
public java.lang.String getPacketDataString()