Class SpawnEgg

All Implemented Interfaces:
Cloneable

@Deprecated(since="1.13", forRemoval=true) public class SpawnEgg extends MaterialData
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a spawn egg that can be used to spawn mobs
  • Constructor Details

    • SpawnEgg

      public SpawnEgg()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • SpawnEgg

      @Deprecated(since="1.6.2") public SpawnEgg(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
    • SpawnEgg

      @Deprecated(since="1.6.2") public SpawnEgg(byte data)
      Deprecated.
      Magic value
      Parameters:
      data - the raw data value
    • SpawnEgg

      public SpawnEgg(EntityType type)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getSpawnedType

      @Deprecated(since="1.9") public EntityType getSpawnedType()
      Deprecated.
      This is now stored in SpawnEggMeta.
      Get the type of entity this egg will spawn.
      Returns:
      The entity type.
    • setSpawnedType

      @Deprecated(since="1.9") public void setSpawnedType(EntityType type)
      Deprecated.
      This is now stored in SpawnEggMeta.
      Set the type of entity this egg will spawn.
      Parameters:
      type - The entity type.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class MaterialData
    • clone

      public SpawnEgg clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData