|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.material.MaterialData
org.bukkit.material.SpawnEgg
public class SpawnEgg
Represents a spawn egg that can be used to spawn mobs
| Constructor Summary | |
|---|---|
SpawnEgg()
|
|
SpawnEgg(byte data)
Deprecated. Magic value |
|
SpawnEgg(EntityType type)
|
|
SpawnEgg(int type,
byte data)
Deprecated. Magic value |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.bukkit.material.MaterialData |
|---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpawnEgg()
@Deprecated
public SpawnEgg(int type,
byte data)
@Deprecated public SpawnEgg(byte data)
public SpawnEgg(EntityType type)
| Method Detail |
|---|
public EntityType getSpawnedType()
public void setSpawnedType(EntityType type)
type - The entity type.public String toString()
toString in class MaterialDatapublic SpawnEgg clone()
clone in class MaterialData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||