Class LootParams.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.LootParams.Builder
- Enclosing class:
- LootParams
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
LootParams.DynamicDrop> private final ServerLevel
private float
private final Map<LootContextParam<?>,
Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(LootContextParamSet p_287701_) getLevel()
<T> T
getOptionalParameter
(LootContextParam<T> p_287759_) <T> T
getParameter
(LootContextParam<T> p_287646_) withDynamicDrop
(ResourceLocation p_287734_, LootParams.DynamicDrop p_287724_) withLuck
(float p_287703_) withOptionalParameter
(LootContextParam<T> p_287680_, T p_287630_) withParameter
(LootContextParam<T> p_287706_, T p_287606_)
-
Field Details
-
level
-
params
-
dynamicDrops
-
luck
private float luck
-
-
Constructor Details
-
Builder
-
-
Method Details
-
getLevel
-
withParameter
-
withOptionalParameter
public <T> LootParams.Builder withOptionalParameter(LootContextParam<T> p_287680_, @Nullable T p_287630_) -
getParameter
-
getOptionalParameter
-
withDynamicDrop
public LootParams.Builder withDynamicDrop(ResourceLocation p_287734_, LootParams.DynamicDrop p_287724_) -
withLuck
-
create
-