类 CompoundIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.AbstractIngredient
net.minecraftforge.common.crafting.CompoundIngredient
Ingredient that matches if any of the child ingredients match
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.item.crafting.Ingredient
Ingredient.ItemValue, Ingredient.TagValue, Ingredient.Value
-
字段概要
字段修饰符和类型字段说明private List<Ingredient>
private final boolean
private it.unimi.dsi.fastutil.ints.IntList
private ItemStack[]
从类继承的字段 net.minecraft.world.item.crafting.Ingredient
EMPTY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明@NotNull Collection<Ingredient>
@NotNull ItemStack[]
getItems()
IIngredientSerializer<? extends Ingredient>
@NotNull it.unimi.dsi.fastutil.ints.IntList
protected void
boolean
isEmpty()
boolean
isSimple()
static Ingredient
of
(Ingredient... children) Creates a compound ingredient from the given list of ingredientsboolean
com.google.gson.JsonElement
toJson()
从类继承的方法 net.minecraftforge.common.crafting.AbstractIngredient
fromJson, fromNetwork, fromValues, of, of, of, of, of
从类继承的方法 net.minecraft.world.item.crafting.Ingredient
checkInvalidation, fromJson, invalidateAll, isVanilla, markValid, merge, toNetwork, valueFromJson
-
字段详细资料
-
children
-
stacks
-
itemIds
private it.unimi.dsi.fastutil.ints.IntList itemIds -
isSimple
private final boolean isSimple
-
-
构造器详细资料
-
CompoundIngredient
-
-
方法详细资料
-
of
Creates a compound ingredient from the given list of ingredients -
getItems
- 覆盖:
getItems
在类中Ingredient
-
getStackingIds
@NotNull public @NotNull it.unimi.dsi.fastutil.ints.IntList getStackingIds()- 覆盖:
getStackingIds
在类中Ingredient
-
test
- 指定者:
test
在接口中Predicate<ItemStack>
- 覆盖:
test
在类中Ingredient
-
invalidate
protected void invalidate()- 覆盖:
invalidate
在类中Ingredient
-
isSimple
public boolean isSimple()- 指定者:
isSimple
在类中AbstractIngredient
-
getSerializer
- 指定者:
getSerializer
在类中AbstractIngredient
-
getChildren
-
toJson
public com.google.gson.JsonElement toJson()- 指定者:
toJson
在类中AbstractIngredient
-
isEmpty
public boolean isEmpty()- 覆盖:
isEmpty
在类中Ingredient
-