Interface Hopper

All Superinterfaces:
BlockInventoryHolder, BlockState, Container, InventoryHolder, Lockable, LockableTileState, Lootable, LootableBlockInventory, LootableInventory, Metadatable, Nameable, PersistentDataHolder, PersistentDataViewHolder, TileState, TileStateInventoryHolder

public interface Hopper extends Container, LootableBlockInventory
Represents a captured state of a hopper.
Since:
1.5.1
  • Method Details

    • setTransferCooldown

      void setTransferCooldown(@Range(from=0L,to=2147483647L) int cooldown)
      Sets the cooldown before the hopper transfers or sucks in another item
      Parameters:
      cooldown - the cooldown in ticks
      Throws:
      IllegalArgumentException - if the passed cooldown value is negative.
      Since:
      1.20.4
    • getTransferCooldown

      int getTransferCooldown()
      Returns the cooldown before the hopper transfers or sucks in another item
      Returns:
      the cooldown in ticks
      Since:
      1.20.4