public class Ingredient extends java.lang.Object implements java.util.function.Predicate<ItemStack>
修飾子とタイプ | クラスと説明 |
---|---|
static interface |
Ingredient.IItemList |
static class |
Ingredient.SingleItemList |
static class |
Ingredient.TagList |
修飾子とタイプ | フィールドと説明 |
---|---|
static Ingredient |
EMPTY |
修飾子 | コンストラクタと説明 |
---|---|
protected |
Ingredient(java.util.stream.Stream<? extends Ingredient.IItemList> itemLists) |
修飾子とタイプ | メソッドと説明 |
---|---|
static Ingredient |
deserialize(com.google.gson.JsonElement json) |
static Ingredient.IItemList |
deserializeItemList(com.google.gson.JsonObject json) |
static Ingredient |
fromItemListStream(java.util.stream.Stream<? extends Ingredient.IItemList> stream) |
static Ingredient |
fromItems(IItemProvider... itemsIn) |
static Ingredient |
fromStacks(ItemStack... stacks) |
static Ingredient |
fromTag(Tag<Item> tagIn) |
ItemStack[] |
getMatchingStacks() |
IIngredientSerializer<? extends Ingredient> |
getSerializer() |
it.unimi.dsi.fastutil.ints.IntList |
getValidItemStacksPacked() |
boolean |
hasNoMatchingItems() |
protected void |
invalidate() |
static void |
invalidateAll() |
boolean |
isSimple() |
boolean |
isVanilla() |
static Ingredient |
merge(java.util.Collection<Ingredient> parts) |
static Ingredient |
read(PacketBuffer buffer) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ItemStack p_test_1_) |
void |
write(PacketBuffer buffer) |
public static final Ingredient EMPTY
protected Ingredient(java.util.stream.Stream<? extends Ingredient.IItemList> itemLists)
public static void invalidateAll()
public ItemStack[] getMatchingStacks()
public boolean test(@Nullable ItemStack p_test_1_)
test
インタフェース内 java.util.function.Predicate<ItemStack>
public it.unimi.dsi.fastutil.ints.IntList getValidItemStacksPacked()
public final void write(PacketBuffer buffer)
public com.google.gson.JsonElement serialize()
public boolean hasNoMatchingItems()
protected void invalidate()
public boolean isSimple()
public final boolean isVanilla()
public IIngredientSerializer<? extends Ingredient> getSerializer()
public static Ingredient fromItemListStream(java.util.stream.Stream<? extends Ingredient.IItemList> stream)
public static Ingredient fromItems(IItemProvider... itemsIn)
public static Ingredient fromStacks(ItemStack... stacks)
public static Ingredient fromTag(Tag<Item> tagIn)
public static Ingredient read(PacketBuffer buffer)
public static Ingredient deserialize(@Nullable com.google.gson.JsonElement json)
public static Ingredient.IItemList deserializeItemList(com.google.gson.JsonObject json)
public static Ingredient merge(java.util.Collection<Ingredient> parts)