org.bukkit.material
Class SpawnEgg

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.SpawnEgg
All Implemented Interfaces:
Cloneable

public class SpawnEgg
extends MaterialData

Represents a spawn egg that can be used to spawn mobs


Constructor Summary
SpawnEgg()
           
SpawnEgg(byte data)
           
SpawnEgg(EntityType type)
           
SpawnEgg(int type, byte data)
           
 
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

SpawnEgg

public SpawnEgg()

SpawnEgg

public SpawnEgg(int type,
                byte data)

SpawnEgg

public SpawnEgg(byte data)

SpawnEgg

public SpawnEgg(EntityType type)
Method Detail

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.