类 CompoundIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
net.minecraftforge.common.crafting.ingredients.CompoundIngredient
- 所有已实现的接口:
Predicate<ItemStack>
,StackedContents.IngredientInfo<Holder<Item>>
Ingredient that matches if any of the child ingredients match
-
字段概要
字段修饰符和类型字段说明private final List
<Ingredient> static final com.mojang.serialization.MapCodec
<CompoundIngredient> private final boolean
static final IIngredientSerializer
<CompoundIngredient> 从类继承的字段 net.minecraft.world.item.crafting.Ingredient
CONTENTS_STREAM_CODEC, NON_AIR_HOLDER_SET_CODEC, OPTIONAL_CONTENTS_STREAM_CODEC, values, VANILLA_SERIALIZER
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
isSimple()
items()
static Ingredient
of
(Ingredient... children) IIngredientSerializer
<? extends Ingredient> boolean
从类继承的方法 net.minecraftforge.common.crafting.ingredients.AbstractIngredient
acceptsItem, isEmpty, of, of, of, of
从类继承的方法 net.minecraft.world.item.crafting.Ingredient
display, equals, isVanilla, of, of, of, optionalIngredientToDisplay, testOptionalIngredient, toString
-
字段详细资料
-
children
-
items
-
isSimple
private final boolean isSimple -
CODEC
-
SERIALIZER
-
-
构造器详细资料
-
CompoundIngredient
-
-
方法详细资料
-
of
-
items
- 覆盖:
items
在类中Ingredient
-
test
- 指定者:
test
在接口中Predicate<ItemStack>
- 覆盖:
test
在类中Ingredient
-
isSimple
public boolean isSimple()- 指定者:
isSimple
在类中AbstractIngredient
-
serializer
- 指定者:
serializer
在类中AbstractIngredient
-