Package net.minecraft.loot
Class LootContext.Builder
java.lang.Object
net.minecraft.loot.LootContext.Builder
- Enclosing class:
- LootContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
LootContext.IDynamicDropProvider> private final ServerWorld
private float
private final Map<LootParameter<?>,
Object> private ResourceLocation
private Random
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(LootParameterSet p_216022_1_) getLevel()
<T> T
getOptionalParameter
(LootParameter<T> p_216019_1_) <T> T
getParameter
(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
-
luck
private float luck -
queriedLootTableId
-
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
withRandom
-
withOptionalRandomSeed
-
withOptionalRandomSeed
-
withLuck
-
withParameter
-
withOptionalParameter
public <T> LootContext.Builder withOptionalParameter(LootParameter<T> p_216021_1_, @Nullable T p_216021_2_) -
withDynamicDrop
public LootContext.Builder withDynamicDrop(ResourceLocation p_216017_1_, LootContext.IDynamicDropProvider p_216017_2_) -
getLevel
-
getParameter
-
getOptionalParameter
-
create
-