Package net.minecraft.loot
Class LootContext.Builder
java.lang.Object
net.minecraft.loot.LootContext.Builder
- Enclosing class:
- LootContext
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation,LootContext.IDynamicDropProvider> private final ServerWorldprivate floatprivate final Map<LootParameter<?>,Object> private ResourceLocationprivate Random
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate(LootParameterSet p_216022_1_) getLevel()<T> TgetOptionalParameter(LootParameter<T> p_216019_1_) <T> TgetParameter(LootParameter<T> p_216024_1_) withDynamicDrop(ResourceLocation p_216017_1_, LootContext.IDynamicDropProvider p_216017_2_) withLuck(float p_186469_1_) withOptionalParameter(LootParameter<T> p_216021_1_, T p_216021_2_) withOptionalRandomSeed(long p_216016_1_) withOptionalRandomSeed(long p_216020_1_, Random p_216020_3_) withParameter(LootParameter<T> p_216015_1_, T p_216015_2_) withRandom(Random p_216023_1_) 
- 
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(LootParameter<T> p_216021_1_, @Nullable T p_216021_2_) 
- 
withDynamicDroppublic LootContext.Builder withDynamicDrop(ResourceLocation p_216017_1_, LootContext.IDynamicDropProvider p_216017_2_) 
- 
getLevel
- 
getParameter
- 
getOptionalParameter
- 
create
 
-