类 DifferenceIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.AbstractIngredient
net.minecraftforge.common.crafting.DifferenceIngredient
Ingredient that matches everything from the first ingredient that is not included in the second ingredient
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.item.crafting.Ingredient
Ingredient.ItemValue, Ingredient.TagValue, Ingredient.Value
-
字段概要
字段修饰符和类型字段说明private final Ingredient
private ItemStack[]
private it.unimi.dsi.fastutil.ints.IntList
private final Ingredient
从类继承的字段 net.minecraft.world.item.crafting.Ingredient
EMPTY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getItems()
it.unimi.dsi.fastutil.ints.IntList
protected void
boolean
isEmpty()
boolean
isSimple()
static DifferenceIngredient
of
(Ingredient base, Ingredient subtracted) Gets the difference from the two 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
-
字段详细资料
-
base
-
subtracted
-
filteredMatchingStacks
-
packedMatchingStacks
private it.unimi.dsi.fastutil.ints.IntList packedMatchingStacks
-
-
构造器详细资料
-
DifferenceIngredient
-
-
方法详细资料
-
of
Gets the difference from the two ingredients- 参数:
base
- Ingredient the item must matchsubtracted
- Ingredient the item must not match- 返回:
- Ingredient that
base
anything in base that is not insubtracted
-
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
-