Class LootParams
java.lang.Object
net.minecraft.world.level.storage.loot.LootParams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<ResourceLocation, LootParams.DynamicDrop> private final ServerLevel
private final float
private final ContextMap
-
Constructor Summary
ConstructorsConstructorDescriptionLootParams
(ServerLevel p_287766_, ContextMap p_380934_, Map<ResourceLocation, LootParams.DynamicDrop> p_287705_, float p_287671_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDynamicDrops
(ResourceLocation p_287768_, Consumer<ItemStack> p_287711_) getLevel()
float
getLuck()
-
Field Details
-
level
-
params
-
dynamicDrops
-
luck
private final float luck
-
-
Constructor Details
-
LootParams
public LootParams(ServerLevel p_287766_, ContextMap p_380934_, Map<ResourceLocation, LootParams.DynamicDrop> p_287705_, float p_287671_)
-
-
Method Details
-
getLevel
-
contextMap
-
addDynamicDrops
-
getLuck
public float getLuck()
-