Package org.bukkit.material
Class SpawnEgg
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SpawnEgg
- All Implemented Interfaces:
Cloneable
@Deprecated public class SpawnEgg extends MaterialData
Deprecated.
use
SpawnEggMeta
Represents a spawn egg that can be used to spawn mobs
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description SpawnEgg
clone()
Deprecated.EntityType
getSpawnedType()
Deprecated.This is now stored inSpawnEggMeta
.void
setSpawnedType(EntityType type)
Deprecated.This is now stored inSpawnEggMeta
.String
toString()
Deprecated.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
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.- Overrides:
toString
in classMaterialData
-
clone
Deprecated.- Overrides:
clone
in classMaterialData
-