类 Ingredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
- 直接已知子类:
AbstractIngredient
-
嵌套类概要
嵌套类修饰符和类型类说明static class
static class
static interface
-
字段概要
字段修饰符和类型字段说明static final Ingredient
private static final AtomicInteger
private int
private final boolean
private ItemStack[]
private it.unimi.dsi.fastutil.ints.IntList
private final Ingredient.Value[]
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final boolean
static Ingredient
fromJson
(com.google.gson.JsonElement pJson) static Ingredient
fromJson
(com.google.gson.JsonElement pJson, boolean pCanBeEmpty) static Ingredient
fromNetwork
(FriendlyByteBuf pBuffer) static Ingredient
fromValues
(Stream<? extends Ingredient.Value> pStream) getItems()
IIngredientSerializer<? extends Ingredient>
it.unimi.dsi.fastutil.ints.IntList
protected void
static void
boolean
isEmpty()
boolean
isSimple()
final boolean
protected final void
static Ingredient
merge
(Collection<Ingredient> parts) static Ingredient
of()
static Ingredient
static Ingredient
static Ingredient
static Ingredient
boolean
com.google.gson.JsonElement
toJson()
final void
toNetwork
(FriendlyByteBuf pBuffer) static Ingredient.Value
valueFromJson
(com.google.gson.JsonObject pJson)
-
字段详细资料
-
INVALIDATION_COUNTER
-
EMPTY
-
values
-
itemStacks
-
stackingIds
@Nullable private it.unimi.dsi.fastutil.ints.IntList stackingIds -
invalidationCounter
private int invalidationCounter -
isVanilla
private final boolean isVanilla
-
-
构造器详细资料
-
Ingredient
-
-
方法详细资料
-
invalidateAll
public static void invalidateAll() -
getItems
-
test
-
getStackingIds
public it.unimi.dsi.fastutil.ints.IntList getStackingIds() -
toNetwork
-
toJson
public com.google.gson.JsonElement toJson() -
isEmpty
public boolean isEmpty() -
checkInvalidation
public final boolean checkInvalidation() -
markValid
protected final void markValid() -
invalidate
protected void invalidate() -
isSimple
public boolean isSimple() -
isVanilla
public final boolean isVanilla() -
getSerializer
-
fromValues
-
of
-
of
-
of
-
of
-
of
-
fromNetwork
-
fromJson
-
fromJson
-
valueFromJson
-
merge
-