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.useSpawnEggMetaRepresents a spawn egg that can be used to spawn mobs
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SpawnEggclone()Deprecated.EntityTypegetSpawnedType()Deprecated.This is now stored inSpawnEggMeta.voidsetSpawnedType(EntityType type)Deprecated.This is now stored inSpawnEggMeta.StringtoString()Deprecated.-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
SpawnEgg
public SpawnEgg()
Deprecated.
-
SpawnEgg
@Deprecated public SpawnEgg(Material type, byte data)
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
SpawnEgg
@Deprecated public SpawnEgg(byte data)
Deprecated.Magic value- Parameters:
data- the raw data value
-
SpawnEgg
public SpawnEgg(EntityType type)
Deprecated.
-
-
Method Detail
-
getSpawnedType
@Deprecated public EntityType getSpawnedType()
Deprecated.This is now stored inSpawnEggMeta.Get the type of entity this egg will spawn.- Returns:
- The entity type.
-
setSpawnedType
@Deprecated public void setSpawnedType(EntityType type)
Deprecated.This is now stored inSpawnEggMeta.Set the type of entity this egg will spawn.- Parameters:
type- The entity type.
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classMaterialData
-
clone
public SpawnEgg clone()
Deprecated.- Overrides:
clonein classMaterialData
-
-