Class SpawnEgg

All Implemented Interfaces:
Cloneable

@Deprecated(forRemoval=true, since="1.13") 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 public SpawnEgg(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
    • SpawnEgg

      @Deprecated 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 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 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