forked from NeoFlock/NeoComputers
add test stuff, may or may not have totally cooked the project for you guys
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
package org.neoflock.neocomputers
|
||||
|
||||
import com.google.common.base.Suppliers
|
||||
import dev.architectury.event.events.common.LifecycleEvent
|
||||
import dev.architectury.registry.registries.RegistrarManager
|
||||
import org.neoflock.neocomputers.block.Blocks
|
||||
import org.neoflock.neocomputers.item.Items
|
||||
import org.neoflock.neocomputers.item.Tabs
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
import java.util.function.Supplier
|
||||
|
||||
|
||||
object NeoComputers {
|
||||
@@ -9,8 +16,16 @@ object NeoComputers {
|
||||
val LOGGER: Logger = LoggerFactory.getLogger("NeoComputers")
|
||||
var PLATFORM: ModPlatform? = null
|
||||
|
||||
|
||||
fun entrypoint(platform: ModPlatform?) {
|
||||
PLATFORM = platform
|
||||
|
||||
Blocks.BLOCKS.register();
|
||||
Blocks.registerBlockItems();
|
||||
Items.ITEMS.register();
|
||||
|
||||
Tabs.TABS.register();
|
||||
LOGGER.info("Registered!")
|
||||
//LOGGER.info("Started mod in %s loader".formatted(NeoComputersInit.PLATFORM.getModloader()))
|
||||
//LOGGER.info("Kotlin: %s".formatted(NeoComputers.hello()))
|
||||
LOGGER.info("Started mod in ${NeoComputers.PLATFORM?.modloader} loader")
|
||||
|
||||
Reference in New Issue
Block a user