接口 SpawnEggMeta

所有超级接口:
Cloneable, ConfigurationSerializable, ItemMeta

public interface SpawnEggMeta extends ItemMeta
Represents a Material.MONSTER_EGG and it's spawned type.
  • 方法详细资料

    • getSpawnedType

      EntityType getSpawnedType()
      Get the type of entity this egg will spawn.
      返回:
      The entity type. May be null for implementation specific default.
    • setSpawnedType

      void setSpawnedType(EntityType type)
      Set the type of entity this egg will spawn.
      参数:
      type - The entity type. May be null for implementation specific default.
    • clone

      SpawnEggMeta clone()
      指定者:
      clone 在接口中 ItemMeta