类 LootParams.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.LootParams.Builder
- 封闭类:
LootParams
-
字段概要
字段修饰符和类型字段说明private final Map
<ResourceLocation, LootParams.DynamicDrop> private final ServerLevel
private float
private final ContextMap.Builder
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明create()
create
(ContextKeySet p_367827_) getLevel()
<T> T
getOptionalParameter
(ContextKey<T> p_361118_) <T> T
getParameter
(ContextKey<T> p_365868_) withDynamicDrop
(ResourceLocation p_287734_, LootParams.DynamicDrop p_287724_) withLuck
(float p_287703_) withOptionalParameter
(ContextKey<T> p_369471_, T p_287630_) withParameter
(ContextKey<T> p_363960_, T p_287606_)
-
字段详细资料
-
level
-
params
-
dynamicDrops
-
luck
private float luck
-
-
构造器详细资料
-
Builder
-
Builder
-
-
方法详细资料
-
getLevel
-
withParameter
-
withOptionalParameter
-
getParameter
-
getOptionalParameter
-
withDynamicDrop
public LootParams.Builder withDynamicDrop(ResourceLocation p_287734_, LootParams.DynamicDrop p_287724_) -
withLuck
-
create
-
create
-