Class LootParams.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.LootParams.Builder
- Enclosing class:
LootParams
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<ResourceLocation, LootParams.DynamicDrop> private final ServerLevel
private float
private final ContextMap.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ContextKeySet p_381021_) getLevel()
<T> T
getOptionalParameter
(ContextKey<T> p_381097_) <T> T
getParameter
(ContextKey<T> p_381125_) withDynamicDrop
(ResourceLocation p_287734_, LootParams.DynamicDrop p_287724_) withLuck
(float p_287703_) withOptionalParameter
(ContextKey<T> p_381070_, T p_287630_) withParameter
(ContextKey<T> p_381018_, T p_287606_)
-
Field Details
-
level
-
params
-
dynamicDrops
-
luck
private float luck
-
-
Constructor Details
-
Builder
-
-
Method Details
-
getLevel
-
withParameter
-
withOptionalParameter
-
getParameter
-
getOptionalParameter
-
withDynamicDrop
public LootParams.Builder withDynamicDrop(ResourceLocation p_287734_, LootParams.DynamicDrop p_287724_) -
withLuck
-
create
-