LootParams
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Methods
Parameter | Type |
---|---|
Parameter key | Type ResourceLocation |
Parameter drop | Type Consumer<ItemStack> |
Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter | Type |
---|---|
Parameter param | Type LootContextParam<T> |
Parameter T | Type Object |
Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter | Type |
---|---|
Parameter param | Type LootContextParam<T> |
Parameter T | Type Object |
Return Type: T
Parameter | Type |
---|---|
Parameter param | Type LootContextParam<T> |
Parameter T | Type Object |
Return Type: boolean
Parameter | Type |
---|---|
Parameter $$0 | Type LootContextParam<T> |
Parameter T | Type Object |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name level | Type ServerLevel | Has Getter true | Has Setter false |
Name luck | Type float | Has Getter true | Has Setter false |