Class Ingredient

    • Field Detail

      • INSTANCES

        private static final java.util.Set<Ingredient> INSTANCES
      • stackingIds

        private it.unimi.dsi.fastutil.ints.IntList stackingIds
      • isSimple

        private final boolean isSimple
      • isVanilla

        private final boolean isVanilla
    • Constructor Detail

      • Ingredient

        protected Ingredient​(java.util.stream.Stream<? extends Ingredient.IItemList> p_i49381_1_)
    • Method Detail

      • invalidateAll

        public static void invalidateAll()
      • dissolve

        private void dissolve()
      • test

        public boolean test​(@Nullable
                            ItemStack p_test_1_)
        Specified by:
        test in interface java.util.function.Predicate<ItemStack>
      • getStackingIds

        public it.unimi.dsi.fastutil.ints.IntList getStackingIds()
      • toNetwork

        public final void toNetwork​(PacketBuffer p_199564_1_)
      • toJson

        public com.google.gson.JsonElement toJson()
      • isEmpty

        public boolean isEmpty()
      • invalidate

        protected void invalidate()
      • isSimple

        public boolean isSimple()
      • isVanilla

        public final boolean isVanilla()
      • fromJson

        public static Ingredient fromJson​(@Nullable
                                          com.google.gson.JsonElement p_199802_0_)
      • valueFromJson

        public static Ingredient.IItemList valueFromJson​(com.google.gson.JsonObject p_199803_0_)