接口 SpawnEggMeta

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

public interface SpawnEggMeta extends ItemMeta
代表刷怪蛋和它刷出的实体的类型.
  • 方法详细资料

    • getSpawnedType

      @Deprecated @Contract("-> fail") EntityType getSpawnedType()
      已过时。
      不同实体类型对应不同的刷怪蛋物品
      获取刷怪蛋生成的实体的类型.

      原文: Get the type of entity this egg will spawn.

      返回:
      实体类型. 根据实现指定的默认值, 可能为 null
    • setSpawnedType

      @Deprecated @Contract("_ -> fail") void setSpawnedType(EntityType type)
      已过时。
      不同实体类型对应不同的刷怪蛋物品
      设置刷怪蛋生成的实体的类型.

      原文: Set the type of entity this egg will spawn.

      参数:
      type - 实体类型. 根据实现指定的默认值, 可能为 null
    • clone

      指定者:
      clone 在接口中 ItemMeta