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 ServerLevelprivate floatprivate final Map<LootContextParam<?>,Object>  - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncreate(LootContextParamSet p_287701_) getLevel()<T> TgetOptionalParameter(LootContextParam<T> p_287759_) <T> TgetParameter(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
 
 -