-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
270 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
fabric/src/main/java/com/numelon/threatengl/fabric/client/ThreatenGLFabricClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
/*package com.numelon.threatengl.fabric.client; | ||
package com.numelon.threatengl.fabric.client; | ||
|
||
import net.fabricmc.api.ClientModInitializer; | ||
|
||
import com.numelon.threatengl.ThreatenGL; | ||
|
||
public final class ThreatenGLFabricClient implements ClientModInitializer { | ||
@Override | ||
public void onInitializeClient() { | ||
// This entrypoint is suitable for setting up client-specific logic, such as rendering. | ||
|
||
// Initialise on client only | ||
ThreatenGL.init(); | ||
} | ||
}*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 14 additions & 3 deletions
17
forge/src/main/java/com/numelon/threatengl/forge/ThreatenGLForge.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
modLoader = "javafml" | ||
loaderVersion = "[2,)" | ||
issueTrackerURL = "https://github.com/Numelon-Softworks/ThreatenGL/issues" | ||
license = "Unknown" | ||
|
||
[[mods]] | ||
modId = "threatengl" | ||
version = "${version}" | ||
displayName = "ThreatenGL" | ||
authors = "Richy Z, Numelon" | ||
description = ''' | ||
Threatens Minecraft to use a different version of OpenGL. | ||
''' | ||
logoFile = "threatengl-icon-notext-128.png" | ||
modUrl = "https://modrinth.com/mod/threatengl" | ||
displayURL = "https://modrinth.com/mod/threatengl" | ||
|
||
[[dependencies.threatengl]] | ||
modId = "neoforge" | ||
type = "required" | ||
# 1.20.1 has the old Forge Mod Loader versioning system | ||
# 1.20.1 has 40* version naming, whereas 1.20.2 has 20.2.* and 1.20.3 has 20.3.* etc | ||
# Therefore we have to specify [20,) instead of [40,) otherwise that will invalidate future Minecraft releases and future NeoForge loader releases who have the new versioning system instead of the fml versioning system | ||
versionRange = "[20,)" | ||
ordering = "NONE" | ||
side = "CLIENT" | ||
|
||
[[dependencies.threatengl]] | ||
modId = "minecraft" | ||
type = "required" | ||
# Note that NeoForged was created in July 2023 and thus does not have support before Minecraft 1.20.1 | ||
versionRange = "[1.20.1,)" | ||
ordering = "NONE" | ||
side = "CLIENT" | ||
|
||
#[[dependencies.threatengl]] | ||
#modId = "architectury" | ||
#type = "optional" | ||
# NeoForge specific versions of architectury arent available for 1.20.1 | ||
# however Forge specific versions are, and this is the last version supporting 1.20.1 | ||
#versionRange = "[9.2.14,)" | ||
#ordering = "AFTER" | ||
#side = "CLIENT" | ||
|
||
[[mixins]] | ||
config = "threatengl.mixins.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
quilt/src/main/java/com/numelon/threatengl/quilt/ThreatenGLQuilt.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
package com.numelon.threatengl.quilt; | ||
|
||
import org.quiltmc.loader.api.ModContainer; | ||
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer; | ||
import org.quiltmc.loader.api.ModContainer; | ||
|
||
import com.numelon.threatengl.ThreatenGL; | ||
|
||
import net.fabricmc.api.EnvType; | ||
import org.quiltmc.loader.api.minecraft.MinecraftQuiltLoader; | ||
|
||
public final class ThreatenGLQuilt implements ModInitializer { | ||
@Override | ||
public void onInitialize(ModContainer mod) { | ||
// Run our common setup. | ||
|
||
if (MinecraftQuiltLoader.getEnvironmentType() == EnvType.SERVER) { | ||
ThreatenGL.warnServer(); | ||
return; | ||
} | ||
|
||
// moved to client initialiser | ||
ThreatenGL.init(); | ||
} | ||
} |
Oops, something went wrong.