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 pLevel, ContextMap pParams, Map<ResourceLocation, LootParams.DynamicDrop> pDynamicDrops, float pLuck) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDynamicDrops
(ResourceLocation pLocation, Consumer<ItemStack> pConsumer) getLevel()
float
getLuck()
-
Field Details
-
level
-
params
-
dynamicDrops
-
luck
private final float luck
-
-
Constructor Details
-
LootParams
public LootParams(ServerLevel pLevel, ContextMap pParams, Map<ResourceLocation, LootParams.DynamicDrop> pDynamicDrops, float pLuck)
-
-
Method Details
-
getLevel
-
contextMap
-
addDynamicDrops
-
getLuck
public float getLuck()
-