类 PartialNBTIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
net.minecraftforge.common.crafting.ingredients.PartialNBTIngredient
- 所有已实现的接口:
Predicate<ItemStack>
,StackedContents.IngredientInfo<Holder<Item>>
Ingredient that matches the given items, performing a partial NBT match. Use
StrictNBTIngredient
if you want exact match on NBT-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.MapCodec
<PartialNBTIngredient> private final CompoundTag
private final NbtPredicate
static final IIngredientSerializer
<PartialNBTIngredient> 从类继承的字段 net.minecraft.world.item.crafting.Ingredient
CONTENTS_STREAM_CODEC, NON_AIR_HOLDER_SET_CODEC, OPTIONAL_CONTENTS_STREAM_CODEC, values, VANILLA_SERIALIZER
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static PartialNBTIngredient.Builder
builder()
boolean
isSimple()
static PartialNBTIngredient
of
(HolderSet<Item> items, CompoundTag nbt) Creates a new ingredient matching the given item, containing the given NBTstatic PartialNBTIngredient
of
(CompoundTag nbt, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given NBTstatic PartialNBTIngredient
of
(ItemLike item, CompoundTag nbt) Creates a new ingredient matching the given item, containing the given NBTIIngredientSerializer
<? extends Ingredient> boolean
从类继承的方法 net.minecraftforge.common.crafting.ingredients.AbstractIngredient
acceptsItem, isEmpty, of, of, of, of
从类继承的方法 net.minecraft.world.item.crafting.Ingredient
display, equals, isVanilla, items, of, of, of, optionalIngredientToDisplay, testOptionalIngredient, toString
-
字段详细资料
-
nbt
-
predicate
-
CODEC
-
SERIALIZER
-
-
构造器详细资料
-
PartialNBTIngredient
-
-
方法详细资料
-
builder
-
of
Creates a new ingredient matching any item from the list, containing the given NBT -
of
Creates a new ingredient matching the given item, containing the given NBT -
of
Creates a new ingredient matching the given item, containing the given NBT -
test
- 指定者:
test
在接口中Predicate<ItemStack>
- 覆盖:
test
在类中Ingredient
-
isSimple
public boolean isSimple()- 指定者:
isSimple
在类中AbstractIngredient
-
serializer
- 指定者:
serializer
在类中AbstractIngredient
-