RecipeManager

object RecipeManager : Listener, PacketListener

Properties

Link copied to clipboard
val novaRecipes: Map<RecipeType<*>, Map<ResourceLocation, NovaRecipe>>

Functions

Link copied to clipboard
fun <T : ConversionNovaRecipe> getConversionRecipeFor(type: RecipeType<T>, input: ItemStack): T?
Link copied to clipboard
fun <T : NovaRecipe> getRecipe(type: RecipeType<T>, id: ResourceLocation): T?
fun <T : NovaRecipe> getRecipe(type: RecipeType<T>, key: NamespacedKey): T?
Link copied to clipboard
fun Listener.registerEvent(eventClass: Class<out Event>)
fun Listener.registerEvent(eventClass: KClass<out Event>)
Link copied to clipboard
fun Listener.registerEventFirst(eventClass: Class<out Event>)
fun Listener.registerEventFirst(eventClass: KClass<out Event>)
Link copied to clipboard
fun Listener.registerEvents()
Link copied to clipboard
fun Listener.registerEventsExcept(vararg eventClasses: Class<out Event>)
fun Listener.registerEventsExcept(vararg eventClasses: KClass<out Event>)
Link copied to clipboard
fun Listener.registerEventsFirst()
Link copied to clipboard
Link copied to clipboard
@JvmName(name = "registerHardcodedRecipes2")
fun registerHardcodedRecipes(recipes: Iterable<Recipe>)
@JvmName(name = "registerHardcodedRecipes1")
fun registerHardcodedRecipes(recipes: Iterable<NovaRecipe>)
Link copied to clipboard
fun Listener.unregisterEvents()