ExtraHoppers/src/main/kotlin/net/shadowfacts/extrahoppers/ExtraHoppers.kt

24 lines
934 B
Kotlin
Raw Normal View History

2020-03-28 00:00:48 +00:00
package net.shadowfacts.extrahoppers
import net.fabricmc.api.ModInitializer
import net.fabricmc.fabric.api.container.ContainerFactory
import net.fabricmc.fabric.api.container.ContainerProviderRegistry
2020-03-28 18:26:39 +00:00
import net.shadowfacts.extrahoppers.block.gold.GoldHopperContainer
import net.shadowfacts.extrahoppers.block.wood.WoodHopperContainer
2020-03-28 00:00:48 +00:00
import net.shadowfacts.extrahoppers.init.EHBlockEntities
import net.shadowfacts.extrahoppers.init.EHBlocks
import net.shadowfacts.extrahoppers.init.EHItems
object ExtraHoppers: ModInitializer {
override fun onInitialize() {
EHBlocks.init()
EHBlockEntities.init()
EHItems.init()
ContainerProviderRegistry.INSTANCE.registerFactory(WoodHopperContainer.ID, ContainerFactory(WoodHopperContainer.Companion::create))
2020-03-28 18:26:39 +00:00
ContainerProviderRegistry.INSTANCE.registerFactory(GoldHopperContainer.ID, ContainerFactory(GoldHopperContainer.Companion::create))
2020-03-28 00:00:48 +00:00
}
}