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()Gets theEntitySnapshotthat will be spawned by this spawn egg or null if no entity has been set.Deprecated.different types are different itemsvoidsetSpawnedEntity(EntitySnapshot snapshot) Sets theEntitySnapshotthat will be spawned by this spawn egg.voidsetSpawnedType(EntityType type) Deprecated.different types are different itemsMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDamageResistant, getDisplayName, getEnchantable, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getEquippable, getFood, getItemFlags, getItemModel, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getMaxStackSize, getRarity, getTool, getTooltipStyle, getUseCooldown, getUseRemainder, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamageResistant, hasDisplayName, hasEnchant, hasEnchantable, hasEnchantmentGlintOverride, hasEnchants, hasEquippable, hasFood, hasItemFlag, hasItemModel, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, hasTooltipStyle, hasUseCooldown, hasUseRemainder, isFireResistant, isGlider, isHideTooltip, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDamageResistant, setDisplayName, setEnchantable, setEnchantmentGlintOverride, setEquippable, setFireResistant, setFood, setGlider, setHideTooltip, setItemModel, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setTooltipStyle, setUnbreakable, setUseCooldown, setUseRemainder, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
getSpawnedTypeDeprecated.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.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.
 
- 
getSpawnedEntityGets theEntitySnapshotthat will be spawned by this spawn egg or null if no entity has been set.
 All applicable data from the egg will be copied, such as custom name, health, and velocity. - Returns:
- the entity snapshot or null if no entity has been set
 
- 
setSpawnedEntitySets theEntitySnapshotthat will be spawned by this spawn egg.
 All applicable data from the entity will be copied, such as custom name, health, and velocity. - Parameters:
- snapshot- the snapshot
 
- 
clone
 
-