Campfire

interface Campfire : BlockEntity

A campfire.

Functions

Link copied to clipboard
abstract fun getCookingDuration(slot: Int): Int

Gets the amount of time, in ticks, until the item in the given slot is cooked.

Link copied to clipboard
abstract fun getCookingProgress(slot: Int): Int

Gets the current progress of the item being cooked in the given slot.

Properties

Link copied to clipboard
abstract val block: Block

The block that this entity is bound to.

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.