Add a clientside mod #114
@@ -0,0 +1,14 @@
|
|||||||
|
package net.fabricmc.example.client;
|
||||||
|
|
||||||
|
import net.fabricmc.api.ClientModInitializer;
|
||||||
|
|
||||||
|
public class ExampleClientMod implements ClientModInitializer {
|
||||||
|
@Override
|
||||||
|
public void onInitializeClient() {
|
||||||
|
// This code runs on the client side only, and should be used to set up
|
||||||
|
// client-side logic, such as render or integrated-server tweaks.
|
||||||
|
// Proceed with mild caution.
|
||||||
|
|
||||||
|
System.out.println("Hello client world!");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -20,6 +20,9 @@
|
|||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"main": [
|
"main": [
|
||||||
"net.fabricmc.example.ExampleMod"
|
"net.fabricmc.example.ExampleMod"
|
||||||
|
],
|
||||||
|
"client": [
|
||||||
|
"net.fabricmc.example.client.ExampleClientMod"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
|
|||||||
Reference in New Issue
Block a user