类 AbstractIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
- 所有已实现的接口:
Predicate<ItemStack>
,StackedContents.IngredientInfo<Holder<Item>>
- 直接已知子类:
CompoundIngredient
,DifferenceIngredient
,IntersectionIngredient
,PartialNBTIngredient
,StrictNBTIngredient
Extension of
Ingredient
which makes most methods custom ingredients need to implement abstract, and removes the static constructors
Mods are encouraged to extend this class for their custom ingredients-
字段概要
从类继承的字段 net.minecraft.world.item.crafting.Ingredient
CODEC, CONTENTS_STREAM_CODEC, NON_AIR_HOLDER_SET_CODEC, OPTIONAL_CONTENTS_STREAM_CODEC, values, VANILLA_SERIALIZER
-
构造器概要
构造器限定符构造器说明protected
Empty constructor, for the sake of dynamic ingredientsprotected
AbstractIngredient
(HolderSet<Item> items) -
方法概要
修饰符和类型方法说明boolean
acceptsItem
(Holder<Item> item) boolean
isEmpty()
abstract boolean
isSimple()
static Ingredient
of()
已过时。static Ingredient
已过时。use引用无效
Ingredient#of(TagKey)
static Ingredient
已过时。use引用无效
Ingredient#of(ItemStack...)
static Ingredient
已过时。useIngredient.of(ItemLike...)
(Stream)}abstract IIngredientSerializer
<? extends Ingredient> 从类继承的方法 net.minecraft.world.item.crafting.Ingredient
display, equals, isVanilla, items, of, of, of, optionalIngredientToDisplay, test, testOptionalIngredient, toString
-
构造器详细资料
-
AbstractIngredient
protected AbstractIngredient()Empty constructor, for the sake of dynamic ingredients -
AbstractIngredient
-
-
方法详细资料
-
isSimple
public abstract boolean isSimple()- 覆盖:
isSimple
在类中Ingredient
-
serializer
- 覆盖:
serializer
在类中Ingredient
-
isEmpty
public boolean isEmpty()- 覆盖:
isEmpty
在类中Ingredient
-
acceptsItem
- 指定者:
acceptsItem
在接口中StackedContents.IngredientInfo<Holder<Item>>
- 覆盖:
acceptsItem
在类中Ingredient
-
of
已过时。use引用无效
Ingredient#of()
-
of
已过时。useIngredient.of(ItemLike...)
(Stream)} -
of
已过时。use引用无效
Ingredient#of(ItemStack...)
-
of
已过时。use引用无效
Ingredient#of(TagKey)
-
引用无效