Package org.bukkit.material
Class SpawnEgg
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SpawnEgg
- All Implemented Interfaces:
Cloneable
Deprecated.
Represents a spawn egg that can be used to spawn mobs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.Deprecated.This is now stored inSpawnEggMeta
.void
setSpawnedType
(EntityType type) Deprecated.This is now stored inSpawnEggMeta
.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
-
SpawnEggMeta