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.voidsetSpawnedType(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
-
SpawnEgg
public SpawnEgg()Deprecated. -
SpawnEgg
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
SpawnEgg
Deprecated.Magic value- Parameters:
data- the raw data value
-
SpawnEgg
Deprecated.
-
-
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:
toStringin classMaterialData
-
clone
Deprecated.- Overrides:
clonein classMaterialData
-
SpawnEggMeta