Package org.bukkit.material
Class SpawnEgg
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SpawnEgg
- All Implemented Interfaces:
Cloneable
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a spawn egg that can be used to spawn mobs
-
Constructor Summary
ConstructorDescriptionSpawnEgg()
Deprecated, for removal: This API element is subject to removal in a future version.SpawnEgg
(byte data) Deprecated.Magic valueSpawnEgg
(EntityType type) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic value -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.This is now stored inSpawnEggMeta
.void
setSpawnedType
(EntityType type) Deprecated.This is now stored inSpawnEggMeta
.toString()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
SpawnEgg
public SpawnEgg()Deprecated, for removal: This API element is subject to removal in a future version. -
SpawnEgg
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
SpawnEgg
Deprecated.Magic value- Parameters:
data
- the raw data value
-
SpawnEgg
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getSpawnedType
Deprecated.This is now stored inSpawnEggMeta
.Get the type of entity this egg will spawn.- Returns:
- The entity type.
-
setSpawnedType
Deprecated.This is now stored inSpawnEggMeta
.Set the type of entity this egg will spawn.- Parameters:
type
- The entity type.
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classMaterialData
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classMaterialData
-
SpawnEggMeta