Class Ingredient

java.lang.Object
net.minecraft.recipe.Ingredient
All Implemented Interfaces:
Predicate<ItemStack>

public final class Ingredient extends Object implements Predicate<ItemStack>
Mappings:
Namespace Name
official cgl
intermediary net/minecraft/class_1856
named net/minecraft/recipe/Ingredient
  • Field Details

    • EMPTY

      public static final Ingredient EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a:Lcgl;
      intermediary field_9017 Lnet/minecraft/class_1856;field_9017:Lnet/minecraft/class_1856;
      named EMPTY Lnet/minecraft/recipe/Ingredient;EMPTY:Lnet/minecraft/recipe/Ingredient;
    • entries

      private final Ingredient.Entry[] entries
      Mappings:
      Namespace Name Mixin selector
      official b Lcgl;b:[Lcgl$c;
      intermediary field_9019 Lnet/minecraft/class_1856;field_9019:[Lnet/minecraft/class_1856$class_1859;
      named entries Lnet/minecraft/recipe/Ingredient;entries:[Lnet/minecraft/recipe/Ingredient$Entry;
    • matchingStacks

      @Nullable private @Nullable ItemStack[] matchingStacks
      Mappings:
      Namespace Name Mixin selector
      official c Lcgl;c:[Lcdt;
      intermediary field_9018 Lnet/minecraft/class_1856;field_9018:[Lnet/minecraft/class_1799;
      named matchingStacks Lnet/minecraft/recipe/Ingredient;matchingStacks:[Lnet/minecraft/item/ItemStack;
    • ids

      Mappings:
      Namespace Name Mixin selector
      official d Lcgl;d:Lit/unimi/dsi/fastutil/ints/IntList;
      intermediary field_9016 Lnet/minecraft/class_1856;field_9016:Lit/unimi/dsi/fastutil/ints/IntList;
      named ids Lnet/minecraft/recipe/Ingredient;ids:Lit/unimi/dsi/fastutil/ints/IntList;
  • Constructor Details

    • Ingredient

      private Ingredient(Stream<? extends Ingredient.Entry> entries)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcgl;<init>(Ljava/util/stream/Stream;)V
      intermediary <init> Lnet/minecraft/class_1856;<init>(Ljava/util/stream/Stream;)V
      named <init> Lnet/minecraft/recipe/Ingredient;<init>(Ljava/util/stream/Stream;)V
  • Method Details

    • getMatchingStacks

      public ItemStack[] getMatchingStacks()
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a()[Lcdt;
      intermediary method_8105 Lnet/minecraft/class_1856;method_8105()[Lnet/minecraft/class_1799;
      named getMatchingStacks Lnet/minecraft/recipe/Ingredient;getMatchingStacks()[Lnet/minecraft/item/ItemStack;
    • test

      public boolean test(@Nullable @Nullable ItemStack itemStack)
      Specified by:
      test in interface Predicate<ItemStack>
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a(Lcdt;)Z
      intermediary method_8093 Lnet/minecraft/class_1856;method_8093(Lnet/minecraft/class_1799;)Z
      named test Lnet/minecraft/recipe/Ingredient;test(Lnet/minecraft/item/ItemStack;)Z
    • getMatchingItemIds

      public IntList getMatchingItemIds()
      Mappings:
      Namespace Name Mixin selector
      official b Lcgl;b()Lit/unimi/dsi/fastutil/ints/IntList;
      intermediary method_8100 Lnet/minecraft/class_1856;method_8100()Lit/unimi/dsi/fastutil/ints/IntList;
      named getMatchingItemIds Lnet/minecraft/recipe/Ingredient;getMatchingItemIds()Lit/unimi/dsi/fastutil/ints/IntList;
    • write

      public void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a(Lsd;)V
      intermediary method_8088 Lnet/minecraft/class_1856;method_8088(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/recipe/Ingredient;write(Lnet/minecraft/network/PacketByteBuf;)V
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official c Lcgl;c()Lcom/google/gson/JsonElement;
      intermediary method_8089 Lnet/minecraft/class_1856;method_8089()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/recipe/Ingredient;toJson()Lcom/google/gson/JsonElement;
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official d Lcgl;d()Z
      intermediary method_8103 Lnet/minecraft/class_1856;method_8103()Z
      named isEmpty Lnet/minecraft/recipe/Ingredient;isEmpty()Z
    • ofEntries

      private static Ingredient ofEntries(Stream<? extends Ingredient.Entry> entries)
      Mappings:
      Namespace Name Mixin selector
      official b Lcgl;b(Ljava/util/stream/Stream;)Lcgl;
      intermediary method_8092 Lnet/minecraft/class_1856;method_8092(Ljava/util/stream/Stream;)Lnet/minecraft/class_1856;
      named ofEntries Lnet/minecraft/recipe/Ingredient;ofEntries(Ljava/util/stream/Stream;)Lnet/minecraft/recipe/Ingredient;
    • empty

      public static Ingredient empty()
      Mappings:
      Namespace Name Mixin selector
      official e Lcgl;e()Lcgl;
      intermediary method_35226 Lnet/minecraft/class_1856;method_35226()Lnet/minecraft/class_1856;
      named empty Lnet/minecraft/recipe/Ingredient;empty()Lnet/minecraft/recipe/Ingredient;
    • ofItems

      public static Ingredient ofItems(ItemConvertible[] items)
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a([Lcjv;)Lcgl;
      intermediary method_8091 Lnet/minecraft/class_1856;method_8091([Lnet/minecraft/class_1935;)Lnet/minecraft/class_1856;
      named ofItems Lnet/minecraft/recipe/Ingredient;ofItems([Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/recipe/Ingredient;
    • ofStacks

      public static Ingredient ofStacks(ItemStack[] stacks)
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a([Lcdt;)Lcgl;
      intermediary method_8101 Lnet/minecraft/class_1856;method_8101([Lnet/minecraft/class_1799;)Lnet/minecraft/class_1856;
      named ofStacks Lnet/minecraft/recipe/Ingredient;ofStacks([Lnet/minecraft/item/ItemStack;)Lnet/minecraft/recipe/Ingredient;
    • ofStacks

      public static Ingredient ofStacks(Stream<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a(Ljava/util/stream/Stream;)Lcgl;
      intermediary method_26964 Lnet/minecraft/class_1856;method_26964(Ljava/util/stream/Stream;)Lnet/minecraft/class_1856;
      named ofStacks Lnet/minecraft/recipe/Ingredient;ofStacks(Ljava/util/stream/Stream;)Lnet/minecraft/recipe/Ingredient;
    • fromTag

      public static Ingredient fromTag(TagKey<Item> tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a(Lamr;)Lcgl;
      intermediary method_8106 Lnet/minecraft/class_1856;method_8106(Lnet/minecraft/class_6862;)Lnet/minecraft/class_1856;
      named fromTag Lnet/minecraft/recipe/Ingredient;fromTag(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/recipe/Ingredient;
    • fromPacket

      public static Ingredient fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Lcgl;b(Lsd;)Lcgl;
      intermediary method_8086 Lnet/minecraft/class_1856;method_8086(Lnet/minecraft/class_2540;)Lnet/minecraft/class_1856;
      named fromPacket Lnet/minecraft/recipe/Ingredient;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/recipe/Ingredient;
    • fromJson

      public static Ingredient fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a(Lcom/google/gson/JsonElement;)Lcgl;
      intermediary method_8102 Lnet/minecraft/class_1856;method_8102(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_1856;
      named fromJson Lnet/minecraft/recipe/Ingredient;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/recipe/Ingredient;
    • entryFromJson

      private static Ingredient.Entry entryFromJson(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Lcgl;a(Lcom/google/gson/JsonObject;)Lcgl$c;
      intermediary method_8107 Lnet/minecraft/class_1856;method_8107(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_1856$class_1859;
      named entryFromJson Lnet/minecraft/recipe/Ingredient;entryFromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/recipe/Ingredient$Entry;