接口 OminousItemSpawner

所有超级接口:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator

@MinecraftExperimental(UPDATE_1_21) @Experimental public interface OminousItemSpawner extends Entity
Represents an ominous item spawner.
  • 方法详细资料

    • getItem

      Gets the item which will be spawned by this spawner.
      返回:
      the item
    • setItem

      void setItem(@Nullable @Nullable ItemStack item)
      Sets the item which will be spawned by this spawner.
      参数:
      item - the item
    • getSpawnItemAfterTicks

      long getSpawnItemAfterTicks()
      Gets the ticks after which this item will be spawned.
      返回:
      total spawn ticks
    • setSpawnItemAfterTicks

      void setSpawnItemAfterTicks(long ticks)
      Sets the ticks after which this item will be spawned.
      参数:
      ticks - total spawn ticks