Class LootContext.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.LootContext.Builder
- Enclosing class:
- LootContext
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate Map<ResourceLocation,LootContext.DynamicDrop>private ServerLevelprivate floatprivate Map<LootContextParam<?>,Object>private ResourceLocationprivate Random
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate(LootContextParamSet p_78976_)getLevel()<T> TgetOptionalParameter(LootContextParam<T> p_78983_)<T> TgetParameter(LootContextParam<T> p_78971_)withDynamicDrop(ResourceLocation p_78980_, LootContext.DynamicDrop p_78981_)withLuck(float p_78964_)withOptionalParameter(LootContextParam<T> p_78985_, T p_78986_)withOptionalRandomSeed(long p_78966_)withOptionalRandomSeed(long p_78968_, Random p_78969_)withParameter(LootContextParam<T> p_78973_, T p_78974_)withRandom(Random p_78978_)
- 
Field Details- 
level
- 
params
- 
dynamicDrops
- 
random
- 
luckprivate float luck
- 
queriedLootTableId
 
- 
- 
Constructor Details- 
Builder
- 
Builder
 
- 
- 
Method Details- 
withRandom
- 
withOptionalRandomSeed
- 
withOptionalRandomSeed
- 
withLuck
- 
withParameter
- 
withOptionalParameterpublic <T> LootContext.Builder withOptionalParameter(LootContextParam<T> p_78985_, @Nullable T p_78986_)
- 
withDynamicDroppublic LootContext.Builder withDynamicDrop(ResourceLocation p_78980_, LootContext.DynamicDrop p_78981_)
- 
getLevel
- 
getParameter
- 
getOptionalParameter
- 
create
 
-