Interface Hopper

All Superinterfaces:
BlockCarrier, BlockEntity, Carrier, CarrierBlockEntity, CopyableDataHolder, DataHolder, DataHolder.Mutable, DataSerializable, Locatable, NameableBlockEntity, NameableCarrierBlockEntity, SerializableDataHolder, SerializableDataHolder.Mutable, ValueContainer

public interface Hopper extends NameableCarrierBlockEntity
Represents a Hopper.
  • Method Details

    • cooldown

      default Value.Mutable<Ticks> cooldown()
      Returns:
      The amount of time in ticks till the hopper can transfer another item.
    • transferItem

      void transferItem()
      Requests this Hopper to transfer an item to the next carrier.

      Since Hoppers normally send items to other CarrierBlockEntitys adjacent to themselves, if there is no available carrier to send an item to, this will perform nothing.