Bucketable

interface Bucketable

An entity that can be picked up in a bucket.

Inheritors

Functions

Link copied to clipboard
abstract fun asBucket(): ItemStack

Creates a new bucket from this entity. Does not remove the entity from the world.

Link copied to clipboard
abstract fun bucket(): ItemStack

Buckets this entity, removing it from the world and returning the created bucket containing this entity.

Link copied to clipboard

If this entity was spawned from a bucket.

Properties

Link copied to clipboard

The sound that is played when the entity is picked up in a bucket.

Link copied to clipboard
abstract val bucketType: ItemType

The type of the bucket this entity can be captured in.