LootContextParams
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Description
These are pre-registered params that are used by vanilla. You can also create your own using getOrCreate
Members
Returns: The 'attacking_entity' param.
Return Type:
LootContextParam<Entity>
Returns: The 'block_entity' param.
Return Type:
LootContextParam<BlockEntity>
Returns: The 'block_state' param.
Return Type:
LootContextParam<BlockState>
Returns: The 'damage_source' param.
Return Type:
LootContextParam<DamageSource>
Returns: The 'direct_attacking_entity' param.
Return Type:
LootContextParam<Entity>
Returns: The 'explosion_radius' param.
Return Type:
LootContextParam<Float>
Returns: The parameter with the given name or a new parameter if there are no registered parameters with the name.
Parameters:
Return Type:
LootContextParam<T>
Returns: The 'last_damage_player' parameter.
Return Type:
LootContextParam<Player>
Returns: The 'this_entity' parameter.
Return Type:
LootContextParam<Entity>