public final class BlockTexture extends ParticleTexture
ParticleTexture object to support block texture particles.PropertyType.REQUIRES_BLOCK| Constructor and Description |
|---|
BlockTexture(org.bukkit.Material material)
Initializes a new
ParticleData object. |
BlockTexture(org.bukkit.Material material,
byte data)
Initializes a new
ParticleData Object. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getBlockData(org.bukkit.Material material)
Gets the nms block data of the given bukkit
Material. |
Object |
toNMSData()
Converts the current
ParticleData instance into nms data. |
getData, getMaterialgetEffect, setEffectpublic BlockTexture(org.bukkit.Material material)
ParticleData object.material - the Material the particle should display.public BlockTexture(org.bukkit.Material material,
byte data)
ParticleData Object.material - the Material the particle should display.data - the damage value that should influence the texture.public Object toNMSData()
ParticleData instance into nms data. If the current
minecraft version was released before 1.13 an int array should be returned. If the
version was released after 1.12 a nms "ParticleParam" has to be returned.toNMSData in class ParticleTexturepublic Object getBlockData(org.bukkit.Material material)
Material.material - the Material whose data should be got.Material or null when an error occurs.Copyright © 2021. All rights reserved.