LootParams
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.
Members
addDynamicDrops(key as ResourceLocation, drop as function(t as ItemStack) as void)
Parameters:
key: ResourceLocation
Type: ResourceLocation
getOptionalParameter(param as LootContextParam<T>) as T?
Parameters:
param: LootContextParam<T>
Type: LootContextParam<T>
Return Type:
T?
getParameter(param as LootContextParam<T>) as T
Parameters:
param: LootContextParam<T>
Type: LootContextParam<T>
Return Type:
T
getParamOrNull(param as LootContextParam<T>) as T?
Parameters:
param: LootContextParam<T>
Type: LootContextParam<T>
Return Type:
T?
hasParam($$0 as LootContextParam<T>) as bool
Parameters:
$$0: LootContextParam<T>
Type: LootContextParam<T>
Return Type:
bool
Getter
Return Type:
ServerLevel
Getter
Return Type:
float