HasOptionalSource
A ContextIntention that has optional parameters about who caused an action.
Autofillers
| Target | # | Source(s) | Notes |
|---|---|---|---|
| SOURCE_UUID | 1. | SOURCE_ENTITY | |
| 2. | SOURCE_TILE_ENTITY | ||
| SOURCE_LOCATION | 1. | SOURCE_ENTITY | |
| 2. | SOURCE_TILE_ENTITY | ||
| SOURCE_EYE_LOCATION | 1. | SOURCE_LIVING_ENTITY | |
| 2. | SOURCE_LOCATION | ||
| SOURCE_WORLD | 1. | SOURCE_LOCATION | |
| SOURCE_DIRECTION | 1. | SOURCE_LOCATION | |
| SOURCE_ENTITY | 1. | SOURCE_PLAYER | |
| 2. | SOURCE_LIVING_ENTITY | ||
| SOURCE_LIVING_ENTITY | 1. | SOURCE_ENTITY | Only if living entity |
| SOURCE_PLAYER | 1. | SOURCE_ENTITY | Only if player |
| RESPONSIBLE_PLAYER | 1. | SOURCE_ENTITY | Only if offline player |
| 2. | SOURCE_TILE_ENTITY | Only if owner present |
Inheritors
Properties
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.
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.