Interface OminousItemSpawner

All Superinterfaces:
Audience, CommandSender, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ServerOperator, Sound.Emitter

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

    • getItem

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

      void setItem(@Nullable @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