类 IntersectionIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.AbstractIngredient
net.minecraftforge.common.crafting.IntersectionIngredient
Ingredient that matches if all child ingredients match
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.item.crafting.Ingredient
Ingredient.ItemValue, Ingredient.TagValue, Ingredient.Value
-
字段概要
字段修饰符和类型字段说明private final List<Ingredient>
private ItemStack[]
private final boolean
private it.unimi.dsi.fastutil.ints.IntList
从类继承的字段 net.minecraft.world.item.crafting.Ingredient
EMPTY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getItems()
it.unimi.dsi.fastutil.ints.IntList
protected void
boolean
isEmpty()
boolean
isSimple()
static Ingredient
of
(Ingredient... ingredients) Gets an intersection ingredientboolean
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
-
isSimple
private final boolean isSimple -
intersectedMatchingStacks
-
packedMatchingStacks
private it.unimi.dsi.fastutil.ints.IntList packedMatchingStacks
-
-
构造器详细资料
-
IntersectionIngredient
-
-
方法详细资料
-
of
Gets an intersection ingredient- 参数:
ingredients
- List of ingredients to match- 返回:
- Ingredient that only matches if all the passed ingredients match
-
test
- 指定者:
test
在接口中Predicate<ItemStack>
- 覆盖:
test
在类中Ingredient
-
getItems
- 覆盖:
getItems
在类中Ingredient
-
isEmpty
public boolean isEmpty()- 覆盖:
isEmpty
在类中Ingredient
-
isSimple
public boolean isSimple()- 指定者:
isSimple
在类中AbstractIngredient
-
invalidate
protected void invalidate()- 覆盖:
invalidate
在类中Ingredient
-
getStackingIds
public it.unimi.dsi.fastutil.ints.IntList getStackingIds()- 覆盖:
getStackingIds
在类中Ingredient
-
toJson
public com.google.gson.JsonElement toJson()- 指定者:
toJson
在类中AbstractIngredient
-
getSerializer
- 指定者:
getSerializer
在类中AbstractIngredient
-