JEI support test
This commit is contained in:
parent
e9385efd5c
commit
abe0122fe1
@ -0,0 +1,25 @@
|
|||||||
|
package ru.dbotthepony.mc.otm.compat.jei
|
||||||
|
|
||||||
|
import mezz.jei.api.IModPlugin
|
||||||
|
import mezz.jei.api.JeiPlugin
|
||||||
|
import mezz.jei.api.constants.VanillaRecipeCategoryUid
|
||||||
|
import mezz.jei.api.registration.IRecipeCatalystRegistration
|
||||||
|
import net.minecraft.resources.ResourceLocation
|
||||||
|
import net.minecraft.world.item.ItemStack
|
||||||
|
import ru.dbotthepony.mc.otm.OverdriveThatMatters
|
||||||
|
import ru.dbotthepony.mc.otm.Registry
|
||||||
|
|
||||||
|
@JeiPlugin
|
||||||
|
class JEIPlugin : IModPlugin {
|
||||||
|
companion object {
|
||||||
|
private val LOCATION = ResourceLocation(OverdriveThatMatters.MOD_ID, "jei_plugin")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun getPluginUid(): ResourceLocation {
|
||||||
|
return LOCATION
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun registerRecipeCatalysts(registration: IRecipeCatalystRegistration) {
|
||||||
|
registration.addRecipeCatalyst(ItemStack(Registry.Blocks.CHEMICAL_GENERATOR), VanillaRecipeCategoryUid.FUEL)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user