PhysicalConnectivity/src/main/kotlin/net/shadowfacts/phycon/init/PhyScreens.kt

23 lines
842 B
Kotlin
Raw Normal View History

2021-02-10 23:55:49 +00:00
package net.shadowfacts.phycon.init
import net.fabricmc.fabric.api.screenhandler.v1.ScreenHandlerRegistry
import net.minecraft.screen.ScreenHandlerType
2021-02-10 23:55:49 +00:00
import net.minecraft.util.Identifier
import net.shadowfacts.phycon.PhysicalConnectivity
2021-02-28 22:56:25 +00:00
import net.shadowfacts.phycon.block.inserter.InserterScreenHandler
2021-02-28 18:48:39 +00:00
import net.shadowfacts.phycon.block.terminal.TerminalScreenHandler
2021-02-10 23:55:49 +00:00
object PhyScreens {
lateinit var TERMINAL_SCREEN_HANDLER: ScreenHandlerType<TerminalScreenHandler>
private set
2021-02-28 22:56:25 +00:00
lateinit var INSERTER_SCREEN_HANDLER: ScreenHandlerType<InserterScreenHandler>
private set
fun init() {
2021-02-28 22:56:25 +00:00
TERMINAL_SCREEN_HANDLER = ScreenHandlerRegistry.registerExtended(TerminalScreenHandler.ID, ::TerminalScreenHandler)
INSERTER_SCREEN_HANDLER = ScreenHandlerRegistry.registerExtended(InserterScreenHandler.ID, ::InserterScreenHandler)
}
2021-02-10 23:55:49 +00:00
2021-02-28 18:48:39 +00:00
}