org.bukkit.material
Class SpawnEgg
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SpawnEgg
- All Implemented Interfaces:
- Cloneable
public class SpawnEgg
- extends MaterialData
Represents a spawn egg that can be used to spawn mobs
SpawnEgg
public SpawnEgg()
SpawnEgg
public SpawnEgg(int type,
byte data)
SpawnEgg
public SpawnEgg(byte data)
SpawnEgg
public SpawnEgg(EntityType type)
getSpawnedType
public EntityType getSpawnedType()
- Get the type of entity this egg will spawn.
- Returns:
- The entity type.
setSpawnedType
public void setSpawnedType(EntityType type)
- Set the type of entity this egg will spawn.
- Parameters:
type
- The entity type.
toString
public String toString()
- Overrides:
toString
in class MaterialData
clone
public SpawnEgg clone()
- Overrides:
clone
in class MaterialData
Copyright © 2013. All Rights Reserved.