renames
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package io.github.jumperonjava.template;
|
||||
package com.example.template;
|
||||
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.text.Text;
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.jumperonjava.template;
|
||||
package com.example.template;
|
||||
|
||||
public interface ModPlatform {
|
||||
String getModloader();
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.jumperonjava.template;
|
||||
package com.example.template;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -1,6 +1,6 @@
|
||||
package io.github.jumperonjava.template.mixin;
|
||||
package com.example.template.mixin;
|
||||
|
||||
import io.github.jumperonjava.template.TempLateInit;
|
||||
import com.example.template.TempLateInit;
|
||||
import net.minecraft.client.gui.screen.TitleScreen;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
@@ -1,9 +1,9 @@
|
||||
//? if fabric {
|
||||
/*package io.github.jumperonjava.customcursor.platforms.fabric;
|
||||
/*package com.example.platforms.fabric;
|
||||
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
import io.github.jumperonjava.customcursor.ConfigScreen;
|
||||
import com.example.template.ConfigScreen;
|
||||
|
||||
public class ModMenuIntegration implements ModMenuApi {
|
||||
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||
@@ -1,15 +1,15 @@
|
||||
//? if fabric {
|
||||
/*package io.github.jumperonjava.customcursor.platforms.fabric;
|
||||
/*package com.example.platforms.fabric;
|
||||
|
||||
import io.github.jumperonjava.customcursor.ModPlatform;
|
||||
import com.example.template.ModPlatform;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import io.github.jumperonjava.customcursor.CustomCursorInit;
|
||||
import com.example.template.TempLateInit;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
|
||||
public class CustomCursorFabric implements ModInitializer {
|
||||
public class TempLateFabric implements ModInitializer {
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
CustomCursorInit.entrypoint(new FabricPlatform());
|
||||
TempLateInit.entrypoint(new FabricPlatform());
|
||||
}
|
||||
public static class FabricPlatform implements ModPlatform{
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
//? if forge {
|
||||
/*package io.github.jumperonjava.customcursor.platforms.forge;
|
||||
/*package com.example.platforms.forge;
|
||||
|
||||
import io.github.jumperonjava.customcursor.ConfigScreen;
|
||||
import io.github.jumperonjava.customcursor.CustomCursorInit;
|
||||
import io.github.jumperonjava.customcursor.ModPlatform;
|
||||
import com.example.template.ConfigScreen;
|
||||
import com.example.template.TempLateInit;
|
||||
import com.example.template.ModPlatform;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.fml.ModList;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
|
||||
@Mod("customcursor")
|
||||
public class CustomCursorForge {
|
||||
public CustomCursorForge() {
|
||||
CustomCursorInit.entrypoint(new ForgePlatform());
|
||||
@Mod("template")
|
||||
public class TempLateForge {
|
||||
public TempLateForge() {
|
||||
TempLateInit.entrypoint(new ForgePlatform());
|
||||
MinecraftForge.registerConfigScreen(ConfigScreen::createCursorEditScreen);
|
||||
}
|
||||
public static class ForgePlatform implements ModPlatform {
|
||||
@@ -1,9 +1,9 @@
|
||||
//? if neoforge {
|
||||
package io.github.jumperonjava.customcursor.platforms.neoforge;
|
||||
package com.example.template.platforms.neoforge;
|
||||
|
||||
import io.github.jumperonjava.customcursor.ConfigScreen;
|
||||
import io.github.jumperonjava.customcursor.CustomCursorInit;
|
||||
import io.github.jumperonjava.customcursor.ModPlatform;
|
||||
import com.example.template.ConfigScreen;
|
||||
import com.example.template.TempLateInit;
|
||||
import com.example.template.ModPlatform;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.neoforged.fml.ModList;
|
||||
import net.neoforged.fml.ModLoadingContext;
|
||||
@@ -13,10 +13,10 @@ import net.neoforged.neoforge.client.ConfigScreenHandler;
|
||||
//?} else {
|
||||
/*import net.neoforged.neoforge.client.gui.IConfigScreenFactory;
|
||||
*///?}
|
||||
@Mod("customcursor")
|
||||
public class CustomCursorNeoForge {
|
||||
public CustomCursorNeoForge() {
|
||||
CustomCursorInit.entrypoint(new NeoForgePlatform());
|
||||
@Mod("template")
|
||||
public class TempLateNeoForge {
|
||||
public TempLateNeoForge() {
|
||||
TempLateInit.entrypoint(new NeoForgePlatform());
|
||||
ModLoadingContext.get().registerExtensionPoint(
|
||||
//? if <1.21 {
|
||||
ConfigScreenHandler.ConfigScreenFactory.class,
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.jumperonjava.customcursor.util;
|
||||
package com.example.template.util;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
@@ -1,19 +1,19 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "*"
|
||||
license = "LGPLv3"
|
||||
issueTrackerURL="https://JavaJumper/CustomCursor/issues"
|
||||
issueTrackerURL="https://JavaJumper/TempLate/issues"
|
||||
|
||||
[[mods]]
|
||||
modId = "customcursor"
|
||||
modId = "template"
|
||||
version = "${version}"
|
||||
displayName = "${name}"
|
||||
authors = "JavaJumper"
|
||||
description = ""
|
||||
logoFile = "assets/customcursor/icon.png"
|
||||
logoFile = "assets/template/icon.png"
|
||||
logoBlur = false
|
||||
|
||||
[[mixins]]
|
||||
config = "customcursor-common.mixins.json"
|
||||
config = "template-common.mixins.json"
|
||||
|
||||
[[mixins]]
|
||||
config = "customcursor-neoforge.mixins.json"
|
||||
config = "template-neoforge.mixins.json"
|
||||
@@ -1,19 +1,19 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "*"
|
||||
license = "LGPLv3"
|
||||
issueTrackerURL="https://JavaJumper/CustomCursor/issues"
|
||||
issueTrackerURL="https://JavaJumper/TempLate/issues"
|
||||
|
||||
[[mods]]
|
||||
modId = "customcursor"
|
||||
modId = "template"
|
||||
version = "${version}"
|
||||
displayName = "${name}"
|
||||
authors = "JavaJumper"
|
||||
description = ""
|
||||
logoFile = "assets/customcursor/icon.png"
|
||||
logoFile = "assets/template/icon.png"
|
||||
logoBlur = false
|
||||
|
||||
[[mixins]]
|
||||
config = "customcursor-common.mixins.json"
|
||||
config = "template-common.mixins.json"
|
||||
|
||||
[[mixins]]
|
||||
config = "customcursor-neoforge.mixins.json"
|
||||
config = "template-neoforge.mixins.json"
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"accessWidener": "customcursor.accesswidener"
|
||||
"accessWidener": "template.accesswidener"
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB |
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"customcursor.confirm": "Confirm",
|
||||
"customcursor.cancel": "Cancel"
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 594 B |
Binary file not shown.
|
Before Width: | Height: | Size: 163 B |
4
src/main/resources/assets/template/lang/en_us.json
Normal file
4
src/main/resources/assets/template/lang/en_us.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"template.confirm": "Confirm",
|
||||
"template.cancel": "Cancel"
|
||||
}
|
||||
Binary file not shown.
BIN
src/main/resources/assets/template/textures/gui/pointer.png
Normal file
BIN
src/main/resources/assets/template/textures/gui/pointer.png
Normal file
Binary file not shown.
@@ -14,15 +14,15 @@
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"io.github.jumperonjava.customcursor.platforms.fabric.CustomCursorFabric"
|
||||
"com.example.platforms.fabric.TempLateFabric"
|
||||
],
|
||||
"modmenu": [
|
||||
"io.github.jumperonjava.customcursor.platforms.fabric.ModMenuIntegration"
|
||||
"com.example.platforms.fabric.ModMenuIntegration"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"customcursor-common.mixins.json",
|
||||
"customcursor-fabric.mixins.json"
|
||||
"template-common.mixins.json",
|
||||
"template-fabric.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.15",
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "io.github.jumperonjava.customcursor.platforms.neoforge.mixin",
|
||||
"package": "com.example.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
"com.example.template.mixin.ExampleMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "io.github.jumperonjava.customcursor.platforms.forge.mixin",
|
||||
"package": "com.example.platforms.fabric.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
],
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "io.github.jumperonjava.customcursor.platforms.fabric.mixin",
|
||||
"package": "com.example.platforms.forge.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
],
|
||||
@@ -1,9 +1,8 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "io.github.jumperonjava.customcursor.mixin",
|
||||
"package": "com.example.platforms.neoforge.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
"ExampleMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
Reference in New Issue
Block a user