public class SpawnEgg extends MaterialData
Constructor and Description |
---|
SpawnEgg() |
SpawnEgg(byte data)
Deprecated.
Magic value
|
SpawnEgg(EntityType type) |
SpawnEgg(int type,
byte data)
Deprecated.
Magic value
|
Modifier and Type | Method and Description |
---|---|
SpawnEgg |
clone() |
EntityType |
getSpawnedType()
Get the type of entity this egg will spawn.
|
void |
setSpawnedType(EntityType type)
Set the type of entity this egg will spawn.
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public SpawnEgg()
@Deprecated public SpawnEgg(int type, byte data)
@Deprecated public SpawnEgg(byte data)
public SpawnEgg(EntityType type)
public EntityType getSpawnedType()
public void setSpawnedType(EntityType type)
type
- The entity type.public String toString()
toString
in class MaterialData
public SpawnEgg clone()
clone
in class MaterialData
Copyright © 2014. All rights reserved.