LootContextParam
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.LootContextParam;
Description
A loot context param is provided to anet.minecraft.world.level.storage.loot.LootContext
allowing it to supply information to functions. See net.minecraft.world.level.storage.loot.parameters.LootContextParams
for a list of built-in params.
Members
Getter
Gets the name of this parameter.script.zs
// LootContextParam<T>.name as ResourceLocationmyLootContextParam.name
Return Type:
ResourceLocation
name() as ResourceLocation
Gets the name of this parameter.script.zs
Returns: The name of this parameter
myLootContextParam.name();
Return Type:
ResourceLocation