mod generation
This commit is contained in:
22
src/main/java/de/jottyfan/minecraft/Quickly.java
Normal file
22
src/main/java/de/jottyfan/minecraft/Quickly.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package de.jottyfan.minecraft;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jotty
|
||||
*
|
||||
*/
|
||||
public class Quickly implements ModInitializer {
|
||||
public static final String MOD_ID = "quickly";
|
||||
|
||||
public static final Logger LOGGER = LogManager.getLogger(MOD_ID);
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
LOGGER.info("Hello Fabric world!");
|
||||
}
|
||||
}
|
||||
20
src/main/java/de/jottyfan/minecraft/mixin/QuicklyMixin.java
Normal file
20
src/main/java/de/jottyfan/minecraft/mixin/QuicklyMixin.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package de.jottyfan.minecraft.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jotty
|
||||
*
|
||||
*/
|
||||
@Mixin(MinecraftServer.class)
|
||||
public class QuicklyMixin {
|
||||
@Inject(at = @At("HEAD"), method = "loadLevel")
|
||||
private void init(CallbackInfo info) {
|
||||
}
|
||||
}
|
||||
BIN
src/main/resources/assets/quickly/icon.png
Normal file
BIN
src/main/resources/assets/quickly/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
31
src/main/resources/fabric.mod.json
Normal file
31
src/main/resources/fabric.mod.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "quickly",
|
||||
"version": "${version}",
|
||||
"name": "quickly",
|
||||
"description": "The successor of the quickie mod. With this, one can play minecraft quicker.",
|
||||
"authors": [
|
||||
"Jotty"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "https://git.jottyfan.de/minecraft/quickly",
|
||||
"sources": "https://git.jottyfan.de/minecraft/quickly"
|
||||
},
|
||||
"license": "AGPL-3",
|
||||
"icon": "assets/quickly/icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"de.jottyfan.minecraft.Quickly"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"quickly.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.18.3",
|
||||
"minecraft": "~26.1-",
|
||||
"java": ">=25",
|
||||
"fabric-api": "*"
|
||||
}
|
||||
}
|
||||
14
src/main/resources/quickly.mixins.json
Normal file
14
src/main/resources/quickly.mixins.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "de.jottyfan.minecraft.mixin",
|
||||
"compatibilityLevel": "JAVA_25",
|
||||
"mixins": [
|
||||
"QuicklyMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
},
|
||||
"overwrites": {
|
||||
"requireAnnotations": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user