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, writeNbtEnchants
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot
public 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.ConfigurationSerializable
serialize
in class GlowMetaItem
public boolean isApplicable(org.bukkit.Material material)
GlowMetaItem
isApplicable
in class GlowMetaItem
material
- The Material.public boolean hasSpawnedType()
public GlowMetaSpawn clone()
clone
in interface org.bukkit.inventory.meta.ItemMeta
clone
in interface org.bukkit.inventory.meta.SpawnEggMeta
clone
in class GlowMetaItem
public org.bukkit.entity.EntityType getSpawnedType()
getSpawnedType
in interface org.bukkit.inventory.meta.SpawnEggMeta
public void setSpawnedType(org.bukkit.entity.EntityType spawnedType)
setSpawnedType
in interface org.bukkit.inventory.meta.SpawnEggMeta
public CompoundTag getEntityTag()
public void setEntityTag(CompoundTag entityTag)
Copyright © 2021. All rights reserved.