Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
RawDiamondMC committed Sep 21, 2024
1 parent 2c57002 commit 5460c5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,18 @@
import net.fabricmc.loader.api.FabricLoader;
import net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint;

public class KessokuEntrypointFabric implements ModInitializer, ClientModInitializer, DedicatedServerModInitializer, PreLaunchEntrypoint {

public final class KessokuEntrypointFabric implements ModInitializer, ClientModInitializer, DedicatedServerModInitializer, PreLaunchEntrypoint {
@Override
public void onInitialize() {
ModUtils.getLogger().info(KessokuEntrypoint.MARKER, "KessokuLib-Entrypoint is loaded!");
FabricLoader.getInstance().invokeEntrypoints("kMain", KessokuModInitializer.class, KessokuModInitializer::onInitialize);
}

@Override
public void onInitializeClient() {
FabricLoader.getInstance().invokeEntrypoints("kClient", KessokuClientModInitializer.class, KessokuClientModInitializer::onInitializeClient);
}

@Override
public void onInitializeServer() {
FabricLoader.getInstance().invokeEntrypoints("kServer", KessokuDedicatedServerModInitializer.class, KessokuDedicatedServerModInitializer::onInitializeServer);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import net.neoforged.fml.common.Mod;

@Mod(KessokuEntrypoint.MOD_ID)
public final class KessokuEntrypointEntrypoint {
public KessokuEntrypointEntrypoint(Dist dist) {
public final class KessokuEntrypointNeoforge {
public KessokuEntrypointNeoforge() {
}

public static void init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package band.kessoku.lib.entrypoint.mixin;
package band.kessoku.lib.entrypoint.mixin.neo;

import band.kessoku.lib.entrypoint.KessokuEntrypoint;
import band.kessoku.lib.entrypoint.KessokuEntrypointEntrypoint;
import band.kessoku.lib.entrypoint.KessokuEntrypointNeoforge;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand All @@ -28,6 +27,6 @@
public class FMLLoaderMixin {
@Inject(method = "beforeStart", at = @At("HEAD"))
private static void preLaunch(ModuleLayer gameLayer, CallbackInfo ci) {
KessokuEntrypointEntrypoint.init();
KessokuEntrypointNeoforge.init();
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"required": true,
"package": "band.kessoku.lib.entrypoint.mixin",
"package": "band.kessoku.lib.entrypoint.mixin.neo",
"compatibilityLevel": "JAVA_21",
"mixins": [
"FMLLoaderMixin"
Expand Down

0 comments on commit 5460c5c

Please sign in to comment.