mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
Feat: Upgrade to Java25 gradle-9.8.2, Delete Stubs
This commit is contained in:
1 parent
0599e48ebe
commit
fea7089ff8
20 files changed
+7
-193
No files matched your search
Generated
-1
@@ -11,7 +11,6 @@
|
||||
<option value="$PROJECT_DIR$/Injector" />
|
||||
<option value="$PROJECT_DIR$/Loader" />
|
||||
<option value="$PROJECT_DIR$/Minecraft1.8.8" />
|
||||
<option value="$PROJECT_DIR$/Minecraft262Stubs" />
|
||||
<option value="$PROJECT_DIR$/OrangeX" />
|
||||
</set>
|
||||
</option>
|
||||
|
||||
Generated
+1
-1
@@ -12,7 +12,7 @@
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="zulu-25" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id("com.gradleup.shadow") version "8.3.11"
|
||||
id("com.gradleup.shadow") version "9.6.1"
|
||||
}
|
||||
|
||||
group = 'cn.xiaozhou233.orangex.injector'
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
plugins {
|
||||
id 'java-library'
|
||||
}
|
||||
|
||||
group = 'cn.xiaozhou233.orangex'
|
||||
version = 'unspecified'
|
||||
@@ -1,11 +0,0 @@
|
||||
package com.mojang.blaze3d.platform;
|
||||
|
||||
/**
|
||||
* Compile-time stub only.
|
||||
*/
|
||||
public class InputConstants {
|
||||
|
||||
public static boolean isKeyDown(Window window, int key) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package com.mojang.blaze3d.platform;
|
||||
|
||||
/**
|
||||
* Compile-time stub only.
|
||||
*/
|
||||
public class Window {
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package net.minecraft.client;
|
||||
|
||||
import com.mojang.blaze3d.platform.Window;
|
||||
import net.minecraft.client.gui.Gui;
|
||||
import net.minecraft.client.multiplayer.ClientLevel;
|
||||
|
||||
/**
|
||||
* Compile-time stub only. Field types matter: they determine the descriptors
|
||||
* emitted into OrangeX bytecode.
|
||||
*/
|
||||
public class Minecraft {
|
||||
|
||||
public final Gui gui = null;
|
||||
public final MouseHandler mouseHandler = null;
|
||||
public ClientLevel level;
|
||||
|
||||
public static Minecraft getInstance() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Window getWindow() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package net.minecraft.client;
|
||||
|
||||
import com.mojang.blaze3d.platform.Window;
|
||||
|
||||
/**
|
||||
* Compile-time stub only.
|
||||
*/
|
||||
public class MouseHandler {
|
||||
|
||||
public double getScaledXPos(Window window) {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public double getScaledYPos(Window window) {
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package net.minecraft.client.gui;
|
||||
|
||||
import net.minecraft.client.gui.screens.Screen;
|
||||
|
||||
/**
|
||||
* Compile-time stub only.
|
||||
*/
|
||||
public class Gui {
|
||||
|
||||
public Screen screen() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setScreen(Screen screen) {
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package net.minecraft.client.gui;
|
||||
|
||||
/**
|
||||
* Compile-time stub only.
|
||||
*/
|
||||
public class GuiGraphicsExtractor {
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
package net.minecraft.client.gui.screens;
|
||||
|
||||
import net.minecraft.client.gui.GuiGraphicsExtractor;
|
||||
import net.minecraft.client.input.MouseButtonEvent;
|
||||
import net.minecraft.network.chat.Component;
|
||||
|
||||
/**
|
||||
* Compile-time stub only. Declares exactly the members OrangeX overrides or
|
||||
* calls; the real class comes from the game at runtime.
|
||||
*/
|
||||
public abstract class Screen {
|
||||
|
||||
protected Screen(Component title) {
|
||||
}
|
||||
|
||||
public void extractBackground(GuiGraphicsExtractor graphics,
|
||||
int mouseX, int mouseY, float partialTick) {
|
||||
}
|
||||
|
||||
public void extractRenderState(GuiGraphicsExtractor graphics,
|
||||
int mouseX, int mouseY, float partialTick) {
|
||||
}
|
||||
|
||||
public boolean isPauseScreen() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void mouseMoved(double x, double y) {
|
||||
}
|
||||
|
||||
public boolean mouseClicked(MouseButtonEvent event, boolean doubleClick) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean mouseReleased(MouseButtonEvent event) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean mouseDragged(MouseButtonEvent event,
|
||||
double dragX, double dragY) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean mouseScrolled(double x, double y,
|
||||
double scrollX, double scrollY) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
package net.minecraft.client.input;
|
||||
|
||||
/**
|
||||
* Compile-time stub only. Mirrors the record accessors used by OrangeX.
|
||||
*/
|
||||
public class MouseButtonEvent {
|
||||
|
||||
public double x() {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public double y() {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public int button() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package net.minecraft.client.multiplayer;
|
||||
|
||||
/**
|
||||
* Compile-time stub only. Used as the type of Minecraft#level so the generated
|
||||
* field descriptor matches the real client.
|
||||
*/
|
||||
public class ClientLevel {
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package net.minecraft.network.chat;
|
||||
|
||||
/**
|
||||
* Compile-time stub only. Never packaged; the real 26.2 class is provided by
|
||||
* the game at runtime.
|
||||
*/
|
||||
public interface Component {
|
||||
|
||||
static MutableComponent empty() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package net.minecraft.network.chat;
|
||||
|
||||
/**
|
||||
* Compile-time stub only.
|
||||
*/
|
||||
public interface MutableComponent extends Component {
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id("com.gradleup.shadow") version "8.3.11"
|
||||
id("com.gradleup.shadow") version "9.6.1"
|
||||
}
|
||||
|
||||
group = 'cn.xiaozhou233.orangex'
|
||||
@@ -29,10 +29,8 @@ dependencies {
|
||||
// never loads these classes.
|
||||
compileOnly files('../libraries/lwjgl-2.9.4-nightly-20150209.jar')
|
||||
|
||||
// The real 26.2 client jar is Java 25 bytecode and cannot be read by the
|
||||
// JDK 17 used for this build. These compile-time stubs mirror only the
|
||||
// members OrangeX touches; the real jar is still the runtime reference.
|
||||
compileOnly project(':Minecraft262Stubs')
|
||||
compileOnly files("../libraries/Minecraft26.2.jar")
|
||||
compileOnly files("../libraries/brigadier-1.3.10.jar")
|
||||
|
||||
// JuiceAgent is provided at runtime by the agent (see JuiceAgentBridge).
|
||||
// Do NOT bundle it: Fabric's KnotClassLoader would load a second copy of
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ subprojects {
|
||||
options.encoding = 'UTF-8'
|
||||
if (JavaVersion.current().isJava9Compatible()) {
|
||||
// Fail fast if a post-Java-8 API is used.
|
||||
options.release = 8
|
||||
options.release = 25
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#Thu Oct 22 20:28:16 CST 2026
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
Binary file not shown.
@@ -3,4 +3,3 @@ include 'Loader'
|
||||
include 'OrangeX'
|
||||
include 'Injector'
|
||||
include 'Minecraft1.8.8'
|
||||
include 'Minecraft262Stubs'
|
||||
Reference in new issue
Block a user