public class ItemTexture extends ParticleTexture
ParticleTexture
object to support block texture particles.| Constructor and Description |
|---|
ItemTexture(org.bukkit.inventory.ItemStack itemStack)
Initializes a new
ParticleData
Object. |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.inventory.ItemStack |
getItemStack()
Gets the
ItemStack that will
be displayed by the particle. |
Object |
toNMSData()
Converts the current
ParticleData
instance into nms data. |
static Object |
toNMSItemStack(org.bukkit.inventory.ItemStack itemStack)
Gets the NMS ItemStack instance of a
CraftItemSTack.
|
getData, getMaterialgetEffect, setEffectpublic ItemTexture(org.bukkit.inventory.ItemStack itemStack)
ParticleData
Object.itemStack - the ItemStack which
should be displayed by the
particle.public Object toNMSData()
ParticleData
instance into nms data. If the current
minecraft version was released before 1.13
a int array should be returned. If the
version was released after 1.12 a nms
"ParticleParam has to be returned.toNMSData in class ParticleTexturepublic org.bukkit.inventory.ItemStack getItemStack()
ItemStack that will
be displayed by the particle.ItemStack.public static Object toNMSItemStack(org.bukkit.inventory.ItemStack itemStack)
itemStack - the CraftItemStacknull if either the given parameter is invalid or an error occurs.Copyright © 2020. All rights reserved.