File tree Expand file tree Collapse file tree 5 files changed +124
-2
lines changed
java/it/renvins/serverpulse/fabric Expand file tree Collapse file tree 5 files changed +124
-2
lines changed Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id(" java" )
3
+ id(" fabric-loom" ) version " 1.10-SNAPSHOT"
4
+ id(" io.freefair.lombok" ) version " 8.13.1"
5
+ }
6
+
7
+ group = " it.renvins"
8
+
9
+ loom {
10
+ splitEnvironmentSourceSets()
11
+
12
+ mods {
13
+ create(" serverpulse" ) {
14
+ sourceSet(sourceSets[" main" ])
15
+ sourceSet(sourceSets[" client" ])
16
+ }
17
+ }
18
+ }
19
+
20
+ fabricApi {
21
+ configureDataGeneration {
22
+ client.set(true )
23
+ }
24
+ }
25
+
26
+ dependencies {
27
+ minecraft(" com.mojang:minecraft:1.21.5" )
28
+ mappings(" net.fabricmc:yarn:1.21.5+build.1:v2" )
29
+ modImplementation(" net.fabricmc:fabric-loader:0.16.10" )
30
+
31
+ modImplementation(" net.fabricmc.fabric-api:fabric-api:0.119.5+1.21.5" )
32
+ }
33
+
34
+ tasks.processResources {
35
+ filteringCharset = " UTF-8"
36
+
37
+ filesMatching(" fabric.mod.json" ) {
38
+ expand(mapOf (
39
+ " version" to rootProject.version,
40
+ " minecraft_version" to " 1.21.5" ,
41
+ " loader_version" to " 0.16.10"
42
+ )
43
+ )
44
+ }
45
+ }
46
+
47
+ java {
48
+ toolchain.languageVersion.set(JavaLanguageVersion .of(21 ))
49
+ }
50
+
51
+ tasks.withType<JavaCompile >().configureEach {
52
+ options.encoding = " UTF-8"
53
+ }
Original file line number Diff line number Diff line change
1
+ package it .renvins .serverpulse .fabric ;
2
+
3
+ import java .util .logging .Logger ;
4
+
5
+ import net .fabricmc .api .ModInitializer ;
6
+
7
+ public class ServerPulseFabric implements ModInitializer {
8
+
9
+ public static final String MOD_ID = "serverpulse" ;
10
+ public static final Logger LOGGER = Logger .getLogger (MOD_ID );
11
+
12
+ @ Override
13
+ public void onInitialize () {
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "schemaVersion" : 1 ,
3
+ "id" : " serverpulse" ,
4
+ "version" : " ${version}" ,
5
+
6
+ "name" : " serverpulse" ,
7
+ "description" : " Effortless Minecraft performance monitoring with pre-configured Grafana/InfluxDB via Docker. " ,
8
+ "authors" : [" renvins" ],
9
+ "contact" : {
10
+ "homepage" : " https://github.com/renvins/serverpulse/" ,
11
+ "sources" : " https://github.com/renvins/serverpulse/" ,
12
+ "issues" : " https://github.com/renvins/serverpulse/issues"
13
+ },
14
+
15
+ "license" : " unlicense" ,
16
+
17
+ "environment" : " *" ,
18
+ "entrypoints" : {
19
+ "main" : [" it.renvins.serverpulse.fabric.ServerPulseFabric" ]
20
+ },
21
+
22
+ "mixins" : [
23
+ " serverpulse.mixins.json"
24
+ ],
25
+ "depends" : {
26
+ "fabricloader" : " >=${loader_version}" ,
27
+ "fabric" : " *" ,
28
+ "minecraft" : " ${minecraft_version}"
29
+ }
30
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "required" : true ,
3
+ "minVersion" : " 0.8" ,
4
+ "package" : " it.renvins.serverpulse.mixin" ,
5
+ "compatibilityLevel" : " JAVA_21" ,
6
+ "mixins" : [
7
+ ],
8
+ "injectors" : {
9
+ "defaultRequire" : 1
10
+ }
11
+ }
Original file line number Diff line number Diff line change 1
- rootProject.name = " serverpulse"
1
+ rootProject.name =
2
+ " serverpulse"
2
3
3
4
include(" api" )
4
5
include(" bukkit" )
5
6
include(" common" )
6
- include(" velocity" )
7
+ include(" velocity" )
8
+ include(" fabric" )
9
+
10
+ pluginManagement {
11
+ repositories {
12
+ maven {
13
+ name = " Fabric"
14
+ url = uri(" https://maven.fabricmc.net/" )
15
+ }
16
+ mavenCentral()
17
+ gradlePluginPortal()
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments