Class LootParams.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.LootParams.Builder
- Enclosing class:
LootParams
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Identifier, LootParams.DynamicDrop> private final ServerLevelprivate floatprivate final ContextMap.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ContextKeySet contextKeySet) getLevel()<T> @Nullable TgetOptionalParameter(ContextKey<T> param) <T> TgetParameter(ContextKey<T> param) withDynamicDrop(Identifier location, LootParams.DynamicDrop dynamicDrop) withLuck(float luck) withOptionalParameter(ContextKey<T> param, @Nullable T value) withParameter(ContextKey<T> param, T value)
-
Field Details
-
level
-
params
-
dynamicDrops
-
luck
private float luck
-
-
Constructor Details
-
Builder
-
-
Method Details
-
getLevel
-
withParameter
-
withOptionalParameter
-
getParameter
-
getOptionalParameter
-
withDynamicDrop
-
withLuck
-
create
-