LootParamsBuilder
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
build(params as LootContextParamSet) as LootParams
Parameters:
params: LootContextParamSet
Type: LootContextParamSet
Return Type:
LootParams
static create(level as ServerLevel) as Builder
Parameters:
level: ServerLevel
Type: ServerLevel
Return Type:
LootParamsBuilder
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
Getter
Return Type:
ServerLevel
withDynamicDrop(key as ResourceLocation, drop as DynamicDrop) as Builder
Parameters:
key: ResourceLocation
Type: ResourceLocation
drop: DynamicDrop
Type: DynamicDrop
Return Type:
LootParamsBuilder
withLuck(luck as float) as Builder
Parameters:
luck: float
Type: float
Return Type:
LootParamsBuilder
withOptionalParameter(param as LootContextParam<T>, value as T?) as Builder
Parameters:
param: LootContextParam<T>
Type: LootContextParam<T>
value: T?
Type: T?
Return Type:
LootParamsBuilder
withParameter(param as LootContextParam<T>, value as T) as Builder
Parameters:
param: LootContextParam<T>
Type: LootContextParam<T>
value: T
Type: T
Return Type:
LootParamsBuilder