Class RecipeGenericsUtil

java.lang.Object
com.simibubi.create.foundation.utility.RecipeGenericsUtil

public class RecipeGenericsUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <P extends net.minecraft.world.item.crafting.Recipe<?>, C extends P>
    List<net.minecraft.world.item.crafting.RecipeHolder<P>>
    cast(List<net.minecraft.world.item.crafting.RecipeHolder<C>> list)
     
    static Collection<net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<?>>>
    specify(Collection<net.minecraft.world.item.crafting.RecipeHolder<?>> list)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecipeGenericsUtil

      public RecipeGenericsUtil()
  • Method Details

    • cast

      public static <P extends net.minecraft.world.item.crafting.Recipe<?>, C extends P> List<net.minecraft.world.item.crafting.RecipeHolder<P>> cast(List<net.minecraft.world.item.crafting.RecipeHolder<C>> list)
    • specify

      public static Collection<net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<?>>> specify(Collection<net.minecraft.world.item.crafting.RecipeHolder<?>> list)