类 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 Map<LootContextParam<?>,
Object> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明create
(LootContextParamSet pParams) getLevel()
<T> T
getOptionalParameter
(LootContextParam<T> pParameter) <T> T
getParameter
(LootContextParam<T> pParameter) withDynamicDrop
(ResourceLocation pName, LootParams.DynamicDrop pDynamicDrop) withLuck
(float pLuck) withOptionalParameter
(LootContextParam<T> pParameter, T pValue) withParameter
(LootContextParam<T> pParameter, T pValue)
-
字段详细资料
-
level
-
params
-
dynamicDrops
-
luck
private float luck
-
-
构造器详细资料
-
Builder
-
-
方法详细资料
-
getLevel
-
withParameter
-
withOptionalParameter
public <T> LootParams.Builder withOptionalParameter(LootContextParam<T> pParameter, @Nullable T pValue) -
getParameter
-
getOptionalParameter
-
withDynamicDrop
public LootParams.Builder withDynamicDrop(ResourceLocation pName, LootParams.DynamicDrop pDynamicDrop) -
withLuck
-
create
-