Class LootParams
java.lang.Object
net.minecraft.world.level.storage.loot.LootParams
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation,LootParams.DynamicDrop> private final ServerLevelprivate final floatprivate final Map<LootContextParam<?>,Object> 
- 
Constructor SummaryConstructorsConstructorDescriptionLootParams(ServerLevel p_287766_, Map<LootContextParam<?>, Object> p_287705_, Map<ResourceLocation, LootParams.DynamicDrop> p_287642_, float p_287671_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDynamicDrops(ResourceLocation p_287768_, Consumer<ItemStack> p_287711_) getLevel()floatgetLuck()<T> TgetOptionalParameter(LootContextParam<T> p_287644_) <T> TgetParameter(LootContextParam<T> p_287670_) <T> TgetParamOrNull(LootContextParam<T> p_287769_) booleanhasParam(LootContextParam<?> p_287749_) 
- 
Field Details- 
level
- 
params
- 
dynamicDrops
- 
luckprivate final float luck
 
- 
- 
Constructor Details- 
LootParamspublic LootParams(ServerLevel p_287766_, Map<LootContextParam<?>, Object> p_287705_, Map<ResourceLocation, LootParams.DynamicDrop> p_287642_, float p_287671_) 
 
- 
- 
Method Details- 
getLevel
- 
hasParam
- 
getParameter
- 
getOptionalParameter
- 
getParamOrNull
- 
addDynamicDrops
- 
getLuckpublic float getLuck()
 
-