Change a few packages and fix the fabric.mod.json file
This commit is contained in:
parent
f0fe913d7c
commit
6771734add
|
@ -1,12 +1,20 @@
|
||||||
architectury {
|
architectury {
|
||||||
common()
|
common()
|
||||||
}
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "SpongePowered"
|
||||||
|
url = uri("https://repo.spongepowered.org/repository/maven-public/")
|
||||||
|
}
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
|
compileOnly("org.spongepowered:mixin:0.8-SNAPSHOT")
|
||||||
mappings(loom.officialMojangMappings())
|
mappings(loom.officialMojangMappings())
|
||||||
}
|
}
|
||||||
|
|
||||||
loom {
|
loom {
|
||||||
silentMojangMappingsLicense()
|
silentMojangMappingsLicense()
|
||||||
mixinConfig("sharplapis-mixins.json")
|
mixinConfig("snowygui-mixins.json")
|
||||||
refmapName = "sharplapis-common-refmap.json"
|
refmapName = "snowygui-common-refmap.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
package fr.username404.snowygui
|
||||||
|
|
||||||
|
abstract class CommonSnow {
|
||||||
|
fun atInit() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"required": true,
|
||||||
|
"package": "fr.username404.snowygui.mixins",
|
||||||
|
"compatibilityLevel": "JAVA_8",
|
||||||
|
"client": [],
|
||||||
|
"injectors": {
|
||||||
|
"defaultRequire": 1
|
||||||
|
},
|
||||||
|
"minVersion": "0.8"
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package fr.username404.snowygui.fabric
|
||||||
|
|
||||||
|
import com.terraformersmc.modmenu.api.ConfigScreenFactory
|
||||||
|
import com.terraformersmc.modmenu.api.ModMenuApi
|
||||||
|
import net.minecraft.client.gui.screens.Screen
|
||||||
|
import net.minecraft.network.chat.TranslatableComponent
|
||||||
|
|
||||||
|
class ModMenuConf: ModMenuApi {
|
||||||
|
override fun getModConfigScreenFactory(): ConfigScreenFactory<Screen> {
|
||||||
|
return ConfigScreenFactory<Screen> { screen: Screen? ->
|
||||||
|
object : Screen(TranslatableComponent("snowygui.config")) { // TODO Actual config screen
|
||||||
|
override fun onClose() {
|
||||||
|
minecraft!!.setScreen(screen)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
package fr.username404.snowygui.fabric
|
||||||
|
|
||||||
|
import fr.username404.snowygui.CommonSnow
|
||||||
|
import net.fabricmc.api.ClientModInitializer
|
||||||
|
|
||||||
|
class fabricInit: CommonSnow(), ClientModInitializer {
|
||||||
|
override fun onInitializeClient() = atInit()
|
||||||
|
}
|
|
@ -18,10 +18,10 @@
|
||||||
"environment": "client",
|
"environment": "client",
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"client": [
|
"client": [
|
||||||
"fr.username404.snowygui.main.SharpLapis"
|
"fr.username404.snowygui.fabric.FabricInitKt"
|
||||||
],
|
],
|
||||||
"modmenu": [
|
"modmenu": [
|
||||||
"fr.username404.snowygui.main.ModMenuSupport"
|
"fr.username404.snowygui.fabric.ModMenuConfKt"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
package fr.username404.snowygui.forge
|
||||||
|
|
||||||
|
import fr.username404.snowygui.CommonSnow
|
||||||
|
import net.minecraftforge.fml.common.Mod
|
||||||
|
|
||||||
|
@Mod("snowygui")
|
||||||
|
class ForgeInit: CommonSnow() {
|
||||||
|
init {
|
||||||
|
atInit()
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"pack":{
|
||||||
|
"pack_format":6,
|
||||||
|
"description":"SharpLapis Resources"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue