Interface OminousItemSpawner

All Superinterfaces:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator

@Experimental public interface OminousItemSpawner extends Entity
Represents an ominous item spawner.
  • Method Details

    • getItem

      @Nullable ItemStack getItem()
      Gets the item which will be spawned by this spawner.
      Returns:
      the item
    • setItem

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

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

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