类 CopyComponentsFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.CopyComponentsFunction
- 所有已实现的接口:
BiFunction<ItemStack,
,LootContext, ItemStack> LootItemFunction
,LootContextUser
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
字段概要
字段修饰符和类型字段说明private final Predicate
<DataComponentType<?>> static final com.mojang.serialization.MapCodec
<CopyComponentsFunction> private final Optional
<List<DataComponentType<?>>> private final Optional
<List<DataComponentType<?>>> private final CopyComponentsFunction.Source
从类继承的字段 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
构造器概要
构造器构造器说明CopyComponentsFunction
(List<LootItemCondition> p_332739_, CopyComponentsFunction.Source p_333486_, Optional<List<DataComponentType<?>>> p_332029_, Optional<List<DataComponentType<?>>> p_329656_) -
方法概要
修饰符和类型方法说明copyComponents
(CopyComponentsFunction.Source p_331082_) Set
<ContextKey<?>> getType()
run
(ItemStack p_329465_, LootContext p_328771_) 从类继承的方法 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
-
source
-
include
-
exclude
-
bakedPredicate
-
-
构造器详细资料
-
CopyComponentsFunction
CopyComponentsFunction(List<LootItemCondition> p_332739_, CopyComponentsFunction.Source p_333486_, Optional<List<DataComponentType<?>>> p_332029_, Optional<List<DataComponentType<?>>> p_329656_)
-
-
方法详细资料
-
getType
- 指定者:
getType
在接口中LootItemFunction
- 指定者:
getType
在类中LootItemConditionalFunction
-
getReferencedContextParams
-
run
- 指定者:
run
在类中LootItemConditionalFunction
-
copyComponents
public static CopyComponentsFunction.Builder copyComponents(CopyComponentsFunction.Source p_331082_)
-