类 Ingredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
- 所有已实现的接口:
Predicate<ItemStack>
,StackedContents.IngredientInfo<Holder<Item>>
- 直接已知子类:
AbstractIngredient
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec
<Ingredient> static final StreamCodec
<RegistryFriendlyByteBuf, Ingredient> private final boolean
static final StreamCodec
<RegistryFriendlyByteBuf, Optional<Ingredient>> private static final com.mojang.serialization.Codec
<Ingredient> private static final StreamCodec
<RegistryFriendlyByteBuf, Ingredient> private static final com.mojang.serialization.MapCodec
<Ingredient> static final IIngredientSerializer
<Ingredient> -
构造器概要
构造器限定符构造器说明protected
Ingredient
(HolderSet<Item> p_368516_) protected
Ingredient
(HolderSet<Item> p_368516_, boolean validate) -
方法概要
修饰符和类型方法说明boolean
acceptsItem
(Holder<Item> p_378483_) display()
private static SlotDisplay
displayForSingleItem
(Holder<Item> p_363723_) boolean
boolean
isEmpty()
boolean
isSimple()
final boolean
items()
已过时。static Ingredient
static Ingredient
static Ingredient
static Ingredient
static SlotDisplay
optionalIngredientToDisplay
(Optional<Ingredient> p_361451_) IIngredientSerializer
<? extends Ingredient> boolean
static boolean
testOptionalIngredient
(Optional<Ingredient> p_367191_, ItemStack p_364232_) toString()
-
字段详细资料
-
VANILLA_CONTENTS_STREAM_CODEC
-
CONTENTS_STREAM_CODEC
-
OPTIONAL_CONTENTS_STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,Optional<Ingredient>> OPTIONAL_CONTENTS_STREAM_CODEC -
NON_AIR_HOLDER_SET_CODEC
-
VANILLA_CODEC
-
VANILLA_MAP_CODEC
-
CODEC
-
values
-
isVanilla
private final boolean isVanilla -
VANILLA_SERIALIZER
-
-
构造器详细资料
-
Ingredient
-
Ingredient
-
-
方法详细资料
-
testOptionalIngredient
-
items
已过时。 -
isEmpty
public boolean isEmpty() -
test
-
acceptsItem
- 指定者:
acceptsItem
在接口中StackedContents.IngredientInfo<Holder<Item>>
-
equals
-
of
-
of
-
of
-
of
-
display
-
optionalIngredientToDisplay
-
displayForSingleItem
-
isSimple
public boolean isSimple() -
isVanilla
public final boolean isVanilla() -
serializer
-
toString
-