Skip to content

Commit ff83524

Browse files
authored
Sync fork (#11)
1 parent 1c1dd91 commit ff83524

File tree

280 files changed

+7759
-3348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+7759
-3348
lines changed

.github/workflows/format_java.yml

-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ on:
55
push:
66
branches:
77
- master
8-
paths: ['src/main/java/**', 'src/test/**']
98
pull_request:
10-
paths: ['src/main/java/**', 'src/test/**']
119

1210
concurrency:
1311
group: formatting-${{ github.head_ref || github.ref }}

.github/workflows/test_java.yml

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches:
77
- master
88
pull_request:
9-
branches:
10-
- '*'
119

1210
concurrency:
1311
group: tests-${{ github.head_ref || github.ref }}

.github/workflows/validate_gradle_wrapper.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
paths:
99
- 'gradle/**'
1010
pull_request:
11-
branches:
12-
- '*'
1311
paths:
1412
- 'gradle/**'
1513

@@ -26,4 +24,4 @@ jobs:
2624
uses: actions/checkout@v4
2725

2826
- name: Validate Gradle Wrapper
29-
uses: gradle/actions/wrapper-validation
27+
uses: gradle/actions/wrapper-validation@v3

build.gradle

+29-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//version: 1720106721
1+
//version: 1707682661
22
/*
33
* DO NOT CHANGE THIS FILE!
44
* Also, you may replace this file at any time if there is an update available.
@@ -371,9 +371,9 @@ minecraft {
371371
extraRunJvmArguments.add("-ea:${modGroup}")
372372
if (usesMixins.toBoolean()) {
373373
extraRunJvmArguments.addAll([
374-
'-Dmixin.hotSwap=true',
375-
'-Dmixin.checks.interfaces=true',
376-
'-Dmixin.debug.export=true'
374+
'-Dmixin.hotSwap=true',
375+
'-Dmixin.checks.interfaces=true',
376+
'-Dmixin.debug.export=true'
377377
])
378378
}
379379

@@ -1237,6 +1237,30 @@ if (cfApiKey.isPresent() || deploymentDebug.toBoolean()) {
12371237
additionalFile.changelog = changelogRaw
12381238
}
12391239
}
1240+
doLast {
1241+
// No File IDs in Debug Mode
1242+
if (!deploymentDebug.toBoolean()) {
1243+
def list = []
1244+
for (def artifact : tasks.curseforge.getUploadArtifacts()) {
1245+
list.add(artifact)
1246+
for (def additionalArtifact : artifact.getAdditionalArtifacts()) {
1247+
list.add(additionalArtifact)
1248+
}
1249+
}
1250+
def summary = "## CurseForge Build Summary (Mod ${modName} | Project ID ${curseForgeProjectId})"
1251+
for (def artifact : list) {
1252+
def fileId = artifact.getCurseFileId()
1253+
def fileName = artifact.getArtifact().getSingleFile().name
1254+
println("Uploaded File ${fileName}, With File ID: ${fileId}")
1255+
summary = summary + "\n - File: ${fileName} | File ID: ${fileId}"
1256+
}
1257+
println(summary)
1258+
def stepSummary = providers.environmentVariable("GITHUB_STEP_SUMMARY")
1259+
if (stepSummary.isPresent()) {
1260+
file(stepSummary.get()).write(summary)
1261+
}
1262+
}
1263+
}
12401264
}
12411265
tasks.curseforge.dependsOn(build)
12421266
tasks.curseforge.dependsOn('generateChangelog')
@@ -1367,7 +1391,7 @@ def getChangelog() {
13671391

13681392
// Buildscript updating
13691393

1370-
def buildscriptGradleVersion = '8.5'
1394+
def buildscriptGradleVersion = '8.9'
13711395

13721396
tasks.named('wrapper', Wrapper).configure {
13731397
gradleVersion = buildscriptGradleVersion

dependencies.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
dependencies {
4141
// Published dependencies
4242
api("codechicken:codechickenlib:3.2.3.358")
43-
api("com.cleanroommc:modularui:2.4.3") { transitive = false }
44-
api("com.cleanroommc:groovyscript:1.1.0") { transitive = false }
45-
api("CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.20.698")
43+
api("com.cleanroommc:modularui:2.5.0-rc1") { transitive = false }
44+
api("com.cleanroommc:groovyscript:1.1.1") { transitive = false }
45+
api("CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.20.700")
4646
api("appeng:ae2-uel:v0.56.4") { transitive = false }
4747
api rfg.deobf("curse.maven:ctm-267602:2915363") // CTM 1.0.2.31
4848

gradle.properties

+23-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ modGroup = gregtech
1010
modVersion = 0.1
1111

1212
# Whether to use the old jar naming structure (modid-mcversion-version) instead of the new version (modid-version)
13-
includeMCVersionJar = true
13+
includeMCVersionJar = false
1414

1515
# The name of your jar when you produce builds, not including any versioning info
1616
modArchivesBaseName = gregtech-tk-fork
@@ -26,11 +26,20 @@ minecraftVersion = 1.12.2
2626
# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
2727
# Alternatively this can be set with the 'DEV_USERNAME' environment variable.
2828
developmentEnvironmentUserName = Developer
29+
# Additional arguments applied to the JVM when launching minecraft
30+
# Syntax: -arg1=value1;-arg2=value2;...
31+
# Example value: -Dmixin.debug.verify=true;-XX:+UnlockExperimentalVMOptions
32+
additionalJavaArguments=
2933

3034
# Enables using modern java syntax (up to version 17) via Jabel, while still targeting JVM 8.
3135
# See https://github.com/bsideup/jabel for details on how this works.
3236
# Using this requires that you use a Java 17 JDK for development.
3337
enableModernJavaSyntax = true
38+
# Enables runClient/runServer tasks for Java 17 and Java 21 using LWJGL3ify.
39+
# This is primarily used to test if your mod is compatible with platforms running
40+
# Minecraft 1.12.2 on modern versions of Java and LWJGL, and assist in fixing any problems with it.
41+
# Using this requires that you use a Java 17/Java 21 JDK for development.
42+
enableJava17RunTasks=false
3443

3544
# Generate a class with String fields for the mod id, name and version named with the fields below
3645
generateGradleTokenClass = gregtech.GTInternalTags
@@ -42,6 +51,7 @@ gradleTokenVersion = VERSION
4251
# leave this property empty.
4352
# Example value: apiPackage = api + modGroup = com.myname.mymodid -> com.myname.mymodid.api
4453
apiPackage =
54+
4555
# If you want to keep your API code in src/api instead of src/main
4656
useSrcApiPath=false
4757

@@ -54,6 +64,8 @@ accessTransformersFile = gregtech_at.cfg
5464
usesMixins = true
5565
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
5666
mixinsPackage = mixins
67+
# Location of the mixin config refmap. If left, blank, defaults to "mixins.${modId}.refmap.json". Target file must have the "json" extension.
68+
mixinConfigRefmap=
5769
# Automatically generates a mixin config json if enabled, with the name mixins.modid.json
5870
generateMixinConfig = false
5971
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
@@ -62,18 +74,27 @@ coreModClass = asm.GregTechLoadingPlugin
6274
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod (meaning that
6375
# there is no class annotated with @Mod) you want this to be true. When in doubt: leave it on false!
6476
containsMixinsAndOrCoreModOnly=false
77+
6578
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
6679
forceEnableMixins=false
80+
6781
# Outputs pre-transformed and post-transformed loaded classes to run/CLASSLOADER_TEMP. Can be used in combination with
6882
# diff to see exactly what your ASM or Mixins are changing in the target file.
6983
# Optionally can be specified with the 'CORE_MOD_DEBUG' env var. Will output a lot of files!
7084
enableCoreModDebug=false
85+
7186
# Adds CurseMaven, Modrinth Maven, BlameJared maven, and some more well-known 1.12.2 repositories
7287
includeWellKnownRepositories=true
88+
7389
# Adds JEI and TheOneProbe to your development environment. Adds them as 'implementation', meaning they will
7490
# be available at compiletime and runtime for your mod (in-game and in-code).
7591
# Overrides the above setting to be always true, as these repositories are needed to fetch the mods
7692
includeCommonDevEnvMods = true
93+
# Some mods require a specific forge version to launch in. When you need to use one of those mods as a dependency,
94+
# and cannot launch with the forge version required, enable this to strip the forge version requirements from that mod.
95+
# This will add 'strip-latest-forge-requirements' as 'runtimeOnlyNonPublishable'.
96+
# Requires useMixins or forceEnableMixins to be true, as the mod uses mixins to function.
97+
stripForgeRequirements=false
7798

7899

79100
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated in your jar. It is your
@@ -141,7 +162,7 @@ noPublishedSources = false
141162
# For maven credentials:
142163
# Username is set with the 'MAVEN_USER' environment variable, default to "NONE"
143164
# Password is set with the 'MAVEN_PASSWORD' environment variable, default to "NONE"
144-
customMavenPublishUrl=
165+
customMavenPublishUrl= https://maven.gtceu.com
145166
# The group for maven artifacts. Defaults to the 'project.modGroup' until the last '.' (if any).
146167
# So 'mymod' becomes 'mymod' and 'com.myname.mymodid' 'becomes com.myname'
147168
mavenArtifactGroup=

gradle/wrapper/gradle-wrapper.jar

-19.5 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

+10-9
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum
@@ -144,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144145
case $MAX_FD in #(
145146
max*)
146147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
148149
MAX_FD=$( ulimit -H -n ) ||
149150
warn "Could not query maximum file descriptor limit"
150151
esac
151152
case $MAX_FD in #(
152153
'' | soft) :;; #(
153154
*)
154155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
156157
ulimit -n "$MAX_FD" ||
157158
warn "Could not set maximum file descriptor limit to $MAX_FD"
158159
esac
@@ -201,11 +202,11 @@ fi
201202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203204

204-
# Collect all arguments for the java command;
205-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206-
# shell script including quotes and variable substitutions, so put them in
207-
# double quotes to make sure that they get re-expanded; and
208-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
209210

210211
set -- \
211212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

gradlew.bat

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

src/main/java/gregtech/api/GTValues.java

+36-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class GTValues {
5454
* The Voltage Tiers. Use this Array instead of the old named Voltage Variables
5555
*/
5656
public static final long[] V = { 8, 32, 128, 512, 2048, 8192, 32768, 131072, 524288, 2097152, 8388608, 33554432,
57-
134217728, 536870912, Integer.MAX_VALUE };
57+
134217728, 536870912, 2147483648L };
5858

5959
/**
6060
* The Voltage Tiers divided by 2.
@@ -74,6 +74,15 @@ public class GTValues {
7474
public static final int[] VHA = { 7, 16, 60, 240, 960, 3840, 15360, 61440, 245760, 983040, 3932160, 15728640,
7575
62914560, 251658240, 1006632960 };
7676

77+
/**
78+
* The Voltage Tiers extended all the way to max Long value for overclocking
79+
*/
80+
public static final long[] VOC = { 8, 32, 128, 512, 2048, 8192, 32768, 131072, 524288, 2097152, 8388608, 33554432,
81+
134217728, 536870912, 2147483648L, 8589934592L, 34359738368L, 137438953472L, 549755813888L,
82+
2199023255552L, 8796093022208L, 35184372088832L, 140737488355328L, 562949953421312L, 2251799813685248L,
83+
9007199254740992L, 36028797018963968L, 144115188075855872L, 576460752303423488L, 2305843009213693952L,
84+
Long.MAX_VALUE };
85+
7786
public static final int ULV = 0;
7887
public static final int LV = 1;
7988
public static final int MV = 2;
@@ -90,13 +99,25 @@ public class GTValues {
9099
public static final int UXV = 12;
91100
public static final int OpV = 13;
92101
public static final int MAX = 14;
102+
public static final int MAX_TRUE = 30;
93103

94104
/**
95105
* The short names for the voltages, used for registration primarily
96106
*/
97107
public static final String[] VN = new String[] { "ULV", "LV", "MV", "HV", "EV", "IV", "LuV", "ZPM", "UV", "UHV",
98108
"UEV", "UIV", "UXV", "OpV", "MAX" };
99109

110+
/**
111+
* The short names for the voltages, up to max Long, used for registration primarily
112+
*/
113+
public static final String[] VOCN = new String[] { "ULV", "LV", "MV", "HV", "EV", "IV", "LuV", "ZPM", "UV", "UHV",
114+
"UEV", "UIV", "UXV", "OpV", "MAX", "MAX+1", "MAX+2", "MAX+3", "MAX+4", "MAX+5", "MAX+6", "MAX+7", "MAX+8",
115+
"MAX+9", "MAX+10", "MAX+11", "MAX+12", "MAX+13", "MAX+14", "MAX+15", "MAX+16",
116+
};
117+
118+
private static final String MAX_PLUS = RED.toString() + BOLD + "M" + YELLOW + BOLD + "A" + GREEN + BOLD + "X" +
119+
AQUA + BOLD + "+" + LIGHT_PURPLE + BOLD;
120+
100121
/**
101122
* The short names for the voltages, formatted for text
102123
*/
@@ -107,6 +128,20 @@ public class GTValues {
107128
DARK_RED + "UHV", GREEN + "UEV", DARK_GREEN + "UIV",
108129
YELLOW + "UXV", BLUE + "OpV", RED.toString() + BOLD + "MAX" };
109130

131+
/**
132+
* The short names for the voltages, up to max Long, formatted for text
133+
*/
134+
public static final String[] VOCNF = new String[] {
135+
DARK_GRAY + "ULV", GRAY + "LV", AQUA + "MV",
136+
GOLD + "HV", DARK_PURPLE + "EV", DARK_BLUE + "IV",
137+
LIGHT_PURPLE + "LuV", RED + "ZPM", DARK_AQUA + "UV",
138+
DARK_RED + "UHV", GREEN + "UEV", DARK_GREEN + "UIV",
139+
YELLOW + "UXV", BLUE + "OpV", RED.toString() + BOLD + "MAX",
140+
MAX_PLUS + "1", MAX_PLUS + "2", MAX_PLUS + "3", MAX_PLUS + "4",
141+
MAX_PLUS + "5", MAX_PLUS + "6", MAX_PLUS + "7", MAX_PLUS + "8",
142+
MAX_PLUS + "9", MAX_PLUS + "10", MAX_PLUS + "11", MAX_PLUS + "12",
143+
MAX_PLUS + "13", MAX_PLUS + "14", MAX_PLUS + "15", MAX_PLUS + "16", };
144+
110145
/**
111146
* Color values for the voltages
112147
*/

src/main/java/gregtech/api/GregTechAPI.java

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import gregtech.api.metatileentity.registry.MTEManager;
1212
import gregtech.api.modules.IModuleManager;
1313
import gregtech.api.network.INetworkHandler;
14+
import gregtech.api.recipes.properties.RecipePropertyRegistry;
1415
import gregtech.api.sound.ISoundManager;
1516
import gregtech.api.unification.material.Material;
1617
import gregtech.api.unification.material.registry.IMaterialRegistryManager;
@@ -56,6 +57,7 @@ public class GregTechAPI {
5657
public static MTEManager mteManager;
5758
/** GT's data migrations API */
5859
public static final MigrationAPI MIGRATIONS = new MigrationAPI();
60+
public static final RecipePropertyRegistry RECIPE_PROPERTIES = new RecipePropertyRegistry();
5961

6062
/** Will be available at the Pre-Initialization stage */
6163
private static boolean highTier;

src/main/java/gregtech/api/block/IHeatingCoilBlockStats.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package gregtech.api.block;
22

3-
import gregtech.api.recipes.recipeproperties.TemperatureProperty;
3+
import gregtech.api.recipes.properties.impl.TemperatureProperty;
44
import gregtech.api.unification.material.Material;
55

66
import org.jetbrains.annotations.NotNull;

0 commit comments

Comments
 (0)