BlockInteract
A ContextIntention for clicking on a block.
Autofillers
Inherits autofillers from HasRequiredBlock, HasOptionalTileEntity, HasOptionalSource, HasOptionalBlockInteraction, and HasHeldItem.
| Target | # | Source(s) | Notes |
|---|---|---|---|
| BLOCK_TYPE | +1. | BLOCK_POS |
Properties
The block at a position in a world.
The position of a block.
The custom block state.
The vanilla block data (block state).
The block type as id.
The custom block type.
The vanilla block type.
The world of a block.
The face of a block that was clicked.
The hand in which the item is held.
The item stack being held / used during the interaction. Defaults to an empty item stack.
The item type being held / used during the interaction as id. Implicitly defaults to minecraft:air
The Nova item type being held / used during the interaction.
The vanilla item type being held / used during the interaction.
Whether the data of the block should be included for creative-pick block interactions. Defaults to false.
The parameter types that must be present in a context with this intention.
The player that is either the direct source or responsible for the action.
The direction that the source of an action is facing.
The entity that is the source of an action.
The eye location of the source of an action.
The living entity that is the source of an action.
The location of the source of an action.
The player that is the source of an action.
The TileEntity that is the source of an action.
The UUID of the source of an action.
The world of the source of an action.
The tile-entity data of a nova tile-entity.
The nova tile-entity of a block.
The vanilla tile-entity of a block.
Functions
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.
Gets the autofillers for paramType in this intention in the order they should be queried.
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.