initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package me.zacharias.speedometer.fabric;
|
||||
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
import me.shedaniel.clothconfig2.api.ConfigBuilder;
|
||||
import me.shedaniel.clothconfig2.api.ConfigCategory;
|
||||
import me.shedaniel.clothconfig2.api.ConfigEntryBuilder;
|
||||
import me.zacharias.speedometer.SpeedTypes;
|
||||
import me.zacharias.speedometer.Speedometer;
|
||||
import net.minecraft.network.chat.Component;
|
||||
|
||||
public class Config implements ModMenuApi {
|
||||
@Override
|
||||
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||
return parent -> {
|
||||
ConfigBuilder builder = Speedometer.getConfig(parent);
|
||||
|
||||
return builder.build();
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package me.zacharias.speedometer.fabric;
|
||||
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
import me.shedaniel.clothconfig2.api.ConfigBuilder;
|
||||
import me.zacharias.speedometer.Speedometer;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.network.chat.Component;
|
||||
|
||||
public class SpeedometerFabric implements ModInitializer {
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
Speedometer.init();
|
||||
|
||||
}
|
||||
}
|
||||
23
fabric/src/main/resources/fabric.mod.json
Normal file
23
fabric/src/main/resources/fabric.mod.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "speedometer",
|
||||
"version": "${version}",
|
||||
|
||||
"name": "speedometer",
|
||||
"description": "just displaying your speed",
|
||||
"authors": [],
|
||||
"contact": {},
|
||||
|
||||
"license": "All Rights Reserved",
|
||||
"icon": "icon.png",
|
||||
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": ["me.zacharias.speedometer.fabric.SpeedometerFabric"],
|
||||
"modmenu": ["me.zacharias.speedometer.fabric.Config"]
|
||||
},
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.21",
|
||||
"minecraft": ">=1.20"
|
||||
}
|
||||
}
|
||||
BIN
fabric/src/main/resources/icon.png
Normal file
BIN
fabric/src/main/resources/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 453 B |
Reference in New Issue
Block a user