package moe.nea.firmament.features.items.recipes import java.util.Objects import me.shedaniel.math.Rectangle import moe.nea.firmament.repo.SBItemStack import moe.nea.firmament.repo.recipes.GenericRecipeRenderer class RenderableRecipe( val recipe: T, val renderer: GenericRecipeRenderer, val mainItemStack: SBItemStack?, ) { fun render(bounds: Rectangle): StandaloneRecipeRenderer { val layouter = StandaloneRecipeRenderer(bounds) renderer.render(recipe, bounds, layouter, mainItemStack) return layouter } // override fun equals(other: Any?): Boolean { // if (other !is RenderableRecipe<*>) return false // return renderer == other.renderer && recipe == other.recipe // } // // override fun hashCode(): Int { // return Objects.hash(recipe, renderer) // } }