Interface OminousItemSpawner

All Superinterfaces:
net.kyori.adventure.audience.Audience, CommandSender, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ServerOperator, net.kyori.adventure.sound.Sound.Emitter

@MinecraftExperimental(UPDATE_1_21) @Experimental 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