Beehive

A beehive.

Functions

Link copied to clipboard
abstract fun addEntity(entity: Bee)

Adds the given entity to the entities contained within this block entity.

Link copied to clipboard
abstract fun clearEntities()

Clears all of the entities out of this block entity.

Link copied to clipboard
open fun isFull(): Boolean

Gets whether this block entity is full of entities.

Link copied to clipboard
abstract fun isSedated(): Boolean

Whether this beehive is sedated due to a campfire underneath it.

Link copied to clipboard
abstract fun releaseEntities(): List<Bee>

Releases all the entities contained within this block entity.

Properties

Link copied to clipboard
abstract val block: Block

The block that this entity is bound to.

Link copied to clipboard
abstract val entityCount: Int

The amount of entities contained within this block entity.

Link copied to clipboard
abstract var flower: Vec3i?

The position of a flower that one of the bees has found, so that other bees in the beehive can find it.

Link copied to clipboard
abstract var maximumEntities: Int

The maximum amount of entities that can be stored within this block entity.

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.