HasRequiredBlock

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val BLOCK: RequiredContextParamType<Block, I>

The block at a position in a world.

Link copied to clipboard

The position of a block.

Link copied to clipboard

The custom block state.

Link copied to clipboard
open val BLOCK_STATE_VANILLA: ContextParamType<BlockData, I>

The vanilla block data (block state).

Link copied to clipboard

The block type as id.

Link copied to clipboard

The custom block type.

Link copied to clipboard
open val BLOCK_TYPE_VANILLA: ContextParamType<BlockType, I>

The vanilla block type.

Link copied to clipboard

The world of a block.

Link copied to clipboard

The parameter types that must be present in a context with this intention.

Functions

Link copied to clipboard
abstract fun <V : Any> addAutofiller(paramType: ContextParamType<V, I>, autofiller: Autofiller<V, I>, at: Int = Int.MAX_VALUE)

Adds an autofiller for paramType to this intention, allowing contexts with this intention to autofill parameters of this type if they are not explicitly specified.

Link copied to clipboard
abstract fun <V : Any> getAutofillers(paramType: ContextParamType<V, I>): List<Autofiller<V, I>>

Gets the autofillers for paramType in this intention in the order they should be queried.

Link copied to clipboard
abstract fun require(paramType: RequiredContextParamType<*, I>)

Adds paramType as a required context parameter type for this intention, forcing all contexts with this intention to have a parameter of this type, either through explicit specification or through autofilling.