Package org.bukkit.inventory.meta
Interface SpawnEggMeta
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder
Represents a spawn egg and it's spawned type.
- 
Method SummaryModifier and TypeMethodDescriptionclone()Get the custom type of entity this egg will spawn.Deprecated, for removal: This API element is subject to removal in a future version.different types are different itemsvoidSet the custom type of entity this egg will spawn.voidsetSpawnedType(EntityType type) Deprecated, for removal: This API element is subject to removal in a future version.different types are different itemsMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
getSpawnedTypeDeprecated, for removal: This API element is subject to removal in a future version.different types are different itemsGet the type of entity this egg will spawn.- Returns:
- The entity type. May be null for implementation specific default.
 
- 
setSpawnedTypeDeprecated, for removal: This API element is subject to removal in a future version.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.
 
- 
getCustomSpawnedTypeGet the custom type of entity this egg will spawn.- Returns:
- the entity type or null if no custom type is set
 
- 
setCustomSpawnedTypeSet the custom type of entity this egg will spawn.- Parameters:
- type- the entity type or null to clear the custom type
 
- 
clone
 
-