接口 SpawnEggMeta
- 所有超级接口:
Cloneable
,ConfigurationSerializable
,ItemMeta
Represents a
Material.MONSTER_EGG
and it's spawned type.-
方法概要
修饰符和类型方法说明clone()
Get the type of entity this egg will spawn.void
setSpawnedType
(EntityType type) Set the type of entity this egg will spawn.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
从接口继承的方法 org.bukkit.inventory.meta.ItemMeta
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable
-
方法详细资料
-
getSpawnedType
EntityType getSpawnedType()Get the type of entity this egg will spawn.- 返回:
- The entity type. May be null for implementation specific default.
-
setSpawnedType
Set the type of entity this egg will spawn.- 参数:
type
- The entity type. May be null for implementation specific default.
-
clone
SpawnEggMeta clone()
-