Hopper

Functions

Link copied to clipboard
abstract fun transferItem()

Requests this hopper transfers the next item to a connected container.

Properties

Link copied to clipboard
abstract val block: Block

The block that this entity is bound to.

Link copied to clipboard
abstract val cooldown: Int

The amount of time, in ticks, before the hopper can transfer another item.

Link copied to clipboard
abstract var displayName: Component

The display name of the block entity.

Link copied to clipboard
abstract val inventory: Inventory

The inventory that this block entity has.

Link copied to clipboard
abstract var lockToken: String?

The token that this container block entity is locked with.

Link copied to clipboard
abstract val position: Vec3i

The position of this block entity.

Link copied to clipboard
abstract val type: BlockEntityType<*>

The type of this block entity.

Link copied to clipboard
abstract val world: World

The world this block entity is in.