Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Dec 11, 2020
1 parent 89d7191 commit 1900762
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx1G

# Mod Properties
maven_group = net.fabricmc
archives_base_name = fabric-example-mod
archives_base_name = kube-diorite

# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.fabricmc.example;
package net.fabricmc.diorite;

import java.io.File;
import java.io.IOException;
Expand All @@ -14,7 +14,7 @@ public class DioriteConfig {
public HashMap<String, String> queryParams;

private static String getConfigFileLocation() {
File root = new File(ExampleMod.class.getProtectionDomain().getCodeSource().getLocation().getPath());
File root = new File(DioriteMod.class.getProtectionDomain().getCodeSource().getLocation().getPath());

return root.getParent() + "/diorite/config.yaml";
}
Expand All @@ -31,7 +31,7 @@ private static void createConfigSkeleton() throws IOException {

// Create file
if (!file.exists()) {
Files.copy(ExampleMod.class.getClassLoader().getResourceAsStream("config.sample.yaml"), Paths.get(file.getAbsolutePath()));
Files.copy(DioriteMod.class.getClassLoader().getResourceAsStream("config.sample.yaml"), Paths.get(file.getAbsolutePath()));
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.fabricmc.example;
package net.fabricmc.diorite;

import java.io.BufferedReader;
import java.io.IOException;
Expand All @@ -16,14 +16,14 @@
import net.minecraft.util.Util;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.example.mixin.ServerLoginNetworkHandlerAccessor;
import net.fabricmc.diorite.mixin.ServerLoginNetworkHandlerAccessor;
import net.fabricmc.fabric.api.networking.v1.ServerLoginConnectionEvents;
import net.fabricmc.fabric.api.networking.v1.PacketSender;
import net.fabricmc.fabric.api.networking.v1.ServerLoginNetworking;

import net.minecraft.text.LiteralText;

public final class ExampleMod implements ModInitializer {
public final class DioriteMod implements ModInitializer {
private DioriteConfig config;

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.fabricmc.example;
package net.fabricmc.diorite;

import java.io.UnsupportedEncodingException;
import java.net.URL;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.fabricmc.example.mixin;
package net.fabricmc.diorite.mixin;

import net.minecraft.server.network.ServerLoginNetworkHandler;

Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"id": "modid",
"version": "${version}",

"name": "Example Mod",
"description": "This is an example description! Tell everyone what your mod is about!",
"name": "Diorite",
"description": "an ultra-simple whitelist plugin that calls an external HTTP API",
"authors": [
"Me!"
"Max Isom"
],
"contact": {
"homepage": "https://kubemtu.com",
Expand All @@ -19,7 +19,7 @@
"environment": "*",
"entrypoints": {
"main": [
"net.fabricmc.example.ExampleMod"
"net.fabricmc.diorite.DioriteMod"
]
},
"mixins": [
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/modid.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"minVersion": "0.8",
"package": "net.fabricmc.example.mixin",
"package": "net.fabricmc.diorite.mixin",
"compatibilityLevel": "JAVA_8",
"mixins": ["ServerLoginNetworkHandlerAccessor"],
"client": [],
Expand Down

0 comments on commit 1900762

Please sign in to comment.