public final class ItemTexture extends ParticleTexture
ParticleTexture object to support item texture particles.PropertyType.REQUIRES_ITEM| 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 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 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 © 2021. All rights reserved.