类 SetAttributesFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.SetAttributesFunction
- 所有已实现的接口:
BiFunction<ItemStack,
,LootContext, ItemStack> LootItemFunction
,LootContextUser
-
嵌套类概要
嵌套类修饰符和类型类说明static class
(专用程序包) static final record
static class
从类继承的嵌套类/接口 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.MapCodec
<SetAttributesFunction> private final List
<SetAttributesFunction.Modifier> private final boolean
从类继承的字段 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
构造器概要
构造器构造器说明SetAttributesFunction
(List<LootItemCondition> p_80834_, List<SetAttributesFunction.Modifier> p_298646_, boolean p_339689_) -
方法概要
修饰符和类型方法说明Set
<ContextKey<?>> getType()
modifier
(ResourceLocation p_350454_, Holder<Attribute> p_298306_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) run
(ItemStack p_80840_, LootContext p_80841_) private ItemAttributeModifiers
updateModifiers
(LootContext p_339627_, ItemAttributeModifiers p_339590_) 从类继承的方法 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, commonFields, simpleBuilder, validate
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 java.util.function.BiFunction
andThen
-
字段详细资料
-
CODEC
-
modifiers
-
replace
private final boolean replace
-
-
构造器详细资料
-
SetAttributesFunction
SetAttributesFunction(List<LootItemCondition> p_80834_, List<SetAttributesFunction.Modifier> p_298646_, boolean p_339689_)
-
-
方法详细资料
-
getType
- 指定者:
getType
在接口中LootItemFunction
- 指定者:
getType
在类中LootItemConditionalFunction
-
getReferencedContextParams
-
run
- 指定者:
run
在类中LootItemConditionalFunction
-
updateModifiers
private ItemAttributeModifiers updateModifiers(LootContext p_339627_, ItemAttributeModifiers p_339590_) -
modifier
public static SetAttributesFunction.ModifierBuilder modifier(ResourceLocation p_350454_, Holder<Attribute> p_298306_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) -
setAttributes
-