LootContext
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.LootContext;
Members
Getter
// LootContext.blockEntity as BlockEntitymyLootContext.blockEntity
Return Type:
BlockEntity
Getter
// LootContext.blockState as BlockStatemyLootContext.blockState
Return Type:
BlockState
Getter
// LootContext.damageSource as DamageSourcemyLootContext.damageSource
Return Type:
DamageSource
Getter
// LootContext.explosionRadius as floatmyLootContext.explosionRadius
Return Type:
float
Getter
// LootContext.level as ServerLevelmyLootContext.level
Return Type:
ServerLevel
Getter
// LootContext.luck as floatmyLootContext.luck
Return Type:
float
Getter
// LootContext.random as RandomSourcemyLootContext.random
Return Type:
RandomSource
Getter
// LootContext.tool as IItemStackmyLootContext.tool
Return Type:
IItemStack