Class LootParams.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.LootParams.Builder
- Enclosing class:
- LootParams
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation,LootParams.DynamicDrop> private final ServerLevelprivate floatprivate final Map<LootContextParam<?>,Object> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
luckprivate float luck
 
- 
- 
Constructor Details- 
Builder
 
- 
- 
Method Details- 
getLevel
- 
withParameter
- 
withOptionalParameterpublic <T> LootParams.Builder withOptionalParameter(LootContextParam<T> p_287680_, @Nullable T p_287630_) 
- 
getParameter
- 
getOptionalParameter
- 
withDynamicDroppublic LootParams.Builder withDynamicDrop(ResourceLocation p_287734_, LootParams.DynamicDrop p_287724_) 
- 
withLuck
- 
create
 
-