Package org.bukkit.inventory.meta
Interface SpawnEggMeta
-
- All Superinterfaces:
Cloneable
,ConfigurationSerializable
,ItemMeta
,PersistentDataHolder
public interface SpawnEggMeta extends ItemMeta
Represents a spawn egg and it's spawned type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bukkit.inventory.meta.ItemMeta
ItemMeta.Spigot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SpawnEggMeta
clone()
EntityType
getSpawnedType()
Deprecated.different types are different itemsvoid
setSpawnedType(EntityType type)
Deprecated.different types are different items-
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersion, spigot
-
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
-
-
-
Method Detail
-
getSpawnedType
@Deprecated @Contract("-> fail") EntityType getSpawnedType()
Deprecated.different types are different itemsGet the type of entity this egg will spawn.- Returns:
- The entity type. May be null for implementation specific default.
-
setSpawnedType
@Deprecated @Contract("_ -> fail") void setSpawnedType(EntityType type)
Deprecated.different types are different itemsSet the type of entity this egg will spawn.- Parameters:
type
- The entity type. May be null for implementation specific default.
-
clone
@NotNull SpawnEggMeta clone()
-
-