LootContextParamSets
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.
import crafttweaker.api.loot.param.LootContextParamSets;Description
These are pre-registered param sets that are used by vanilla.Members
The 'advancement_entity' param set requires the following params:
-
this_entity -
origin
Returns: The 'advancement_entity' param set.
LootContextParamSets.advancementEntity();
Return Type:
LootContextParamSet
The 'advancement_entity' param set requires the following params:
-
this_entity -
origin
Returns: The 'advancement_entity' param set.
LootContextParamSets.advancementLocation();
Return Type:
LootContextParamSet
The 'advancement_reward' param set requires the following params:
-
this_entity -
origin
Returns: The 'advancement_reward' param set.
LootContextParamSets.advancementReward();
Return Type:
LootContextParamSet
The 'generic' param set requires the following params:
-
this_entity -
last_damage_player -
damage_source -
killer_entity -
direct_killer_entity -
origin -
block_state -
block_entity -
tool -
explosion_radius
Returns: The 'generic' param set.
LootContextParamSets.allParams();
Return Type:
LootContextParamSet
The 'block' param set requires the following params:
-
block_state -
origin -
tool
The 'block' param set can optionally use:
-
this_entity -
block_entity -
explosion_radius
Returns: The 'block' param set.
LootContextParamSets.block();
Return Type:
LootContextParamSet
The 'chest' param set requires the following params:
-
origin
The 'chest' param set can optionally use:
-
this_entity
Returns: The 'chest' param set.
LootContextParamSets.chest();
Return Type:
LootContextParamSet
The 'command' param set requires the following params:
-
origin
The 'command' param set can optionally use:
-
this_entity
Returns: The 'command' param set.
LootContextParamSets.command();
Return Type:
LootContextParamSet
Returns: The 'empty' param set.
LootContextParamSets.empty();
Return Type:
LootContextParamSet
The 'entity' param set requires the following params:
-
this_entity -
origin -
damage_source
The 'entity' param set can optionally use:
-
killer_entity -
direct_killer_entity -
last_damage_player
Returns: The 'entity' param set.
LootContextParamSets.entity();
Return Type:
LootContextParamSet
The 'fishing' param set requires the following params:
-
origin -
tool
The 'fishing' param set can optionally use:
-
this_entity
Returns: The 'fishing' param set.
LootContextParamSets.fishing();
Return Type:
LootContextParamSet
Will throw an exception if no param set is registered for the given name.
Returns: The found param set or an exception if not registered.
LootContextParamSets.get(myResourceLocation);Parameters:
Return Type:
LootContextParamSet
The 'gift' param set requires the following params:
-
origin -
this_entity
Returns: The 'gift' param set.
LootContextParamSets.gift();
Return Type:
LootContextParamSet
The 'barter' param set requires the following params:
-
this_entity
Returns: The 'barter' param set.
LootContextParamSets.piglinBarter();
Return Type:
LootContextParamSet
The 'selector' param set requires the following params:
-
origin -
this_entity
Returns: The 'selector' param set.
LootContextParamSets.selector();
Return Type:
LootContextParamSet