public class GlowMetaSpawn extends GlowMetaItem implements org.bukkit.inventory.meta.SpawnEggMeta
| Constructor and Description |
|---|
GlowMetaSpawn(org.bukkit.inventory.meta.ItemMeta meta)
Creates an instance by copying from the given
ItemMeta. |
| Modifier and Type | Method and Description |
|---|---|
GlowMetaSpawn |
clone() |
CompoundTag |
getEntityTag() |
org.bukkit.entity.EntityType |
getSpawnedType() |
boolean |
hasSpawnedType() |
boolean |
isApplicable(org.bukkit.Material material)
Check whether this ItemMeta can be applied to the given material.
|
Map<String,Object> |
serialize() |
void |
setEntityTag(CompoundTag entityTag) |
void |
setSpawnedType(org.bukkit.entity.EntityType spawnedType) |
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, readNbtEnchants, removeEnchant, removeItemFlags, serializeEnchants, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot, toString, writeNbtEnchantsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigotpublic GlowMetaSpawn(org.bukkit.inventory.meta.ItemMeta meta)
ItemMeta. If that item is another
SpawnEggMeta, the creature type is copied; if it's a GlowMetaSpawn, any
custom NBT for the spawned entity is also copied.meta - the ItemMeta to copypublic Map<String,Object> serialize()
serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializableserialize in class GlowMetaItempublic boolean isApplicable(org.bukkit.Material material)
GlowMetaItemisApplicable in class GlowMetaItemmaterial - The Material.public boolean hasSpawnedType()
public GlowMetaSpawn clone()
clone in interface org.bukkit.inventory.meta.ItemMetaclone in interface org.bukkit.inventory.meta.SpawnEggMetaclone in class GlowMetaItempublic org.bukkit.entity.EntityType getSpawnedType()
getSpawnedType in interface org.bukkit.inventory.meta.SpawnEggMetapublic void setSpawnedType(org.bukkit.entity.EntityType spawnedType)
setSpawnedType in interface org.bukkit.inventory.meta.SpawnEggMetapublic CompoundTag getEntityTag()
public void setEntityTag(CompoundTag entityTag)
Copyright © 2021. All rights reserved.