Class LootContext.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.LootContext.Builder
- Enclosing class:
- LootContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation,LootContext.DynamicDrop> private final ServerLevelprivate floatprivate final Map<LootContextParam<?>,Object> private ResourceLocationprivate Random -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
luck
private float luck -
queriedLootTableId
-
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
withRandom
-
withOptionalRandomSeed
-
withOptionalRandomSeed
-
withLuck
-
withParameter
-
withOptionalParameter
public <T> LootContext.Builder withOptionalParameter(LootContextParam<T> p_78985_, @Nullable T p_78986_) -
withDynamicDrop
public LootContext.Builder withDynamicDrop(ResourceLocation p_78980_, LootContext.DynamicDrop p_78981_) -
getLevel
-
getParameter
-
getOptionalParameter
-
create
-