Skip to content

Commit 3e5a630

Browse files
committed
Merge branch 'master' into zb/more-molds
2 parents 13cc358 + d1c7382 commit 3e5a630

333 files changed

Lines changed: 12314 additions & 5874 deletions

File tree

Some content is hidden

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

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//version: 1723428048
1+
//version: 1743737794
22
/*
33
* DO NOT CHANGE THIS FILE!
44
* Also, you may replace this file at any time if there is an update available.
@@ -80,6 +80,7 @@ propertyDefaultIfUnset("includeWellKnownRepositories", true)
8080
propertyDefaultIfUnset("includeCommonDevEnvMods", true)
8181
propertyDefaultIfUnset("stripForgeRequirements", false)
8282
propertyDefaultIfUnset("noPublishedSources", false)
83+
propertyDefaultIfUnset("mixinProviderSpec", "zone.rong:mixinbooter:10.6")
8384
propertyDefaultIfUnset("forceEnableMixins", false)
8485
propertyDefaultIfUnset("mixinConfigRefmap", "mixins.${project.modId}.refmap.json")
8586
propertyDefaultIfUnsetWithEnvVar("enableCoreModDebug", false, "CORE_MOD_DEBUG")
@@ -518,7 +519,6 @@ configurations {
518519
testRuntimeClasspath.extendsFrom(runtimeOnlyNonPublishable)
519520
}
520521

521-
String mixinProviderSpec = 'zone.rong:mixinbooter:9.1'
522522
dependencies {
523523
if (usesMixins.toBoolean()) {
524524
annotationProcessor 'org.ow2.asm:asm-debug-all:5.2'
@@ -1009,7 +1009,7 @@ abstract class RunHotswappableMinecraftTask extends RunMinecraftTask {
10091009

10101010
if (project.usesMixins.toBoolean()) {
10111011
this.extraJvmArgs.addAll(project.provider(() -> {
1012-
def mixinCfg = project.configurations.detachedConfiguration(project.dependencies.create(project.mixinProviderSpec))
1012+
def mixinCfg = project.configurations.detachedConfiguration(project.dependencies.create(mixinProviderSpec))
10131013
mixinCfg.canBeConsumed = false
10141014
mixinCfg.canBeResolved = true
10151015
mixinCfg.transitive = false

dependencies.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
4040
dependencies {
4141
// Published dependencies
4242
api("codechicken:codechickenlib:3.2.3.358")
43-
api("com.cleanroommc:modularui:2.5.0-rc1") { transitive = false }
43+
api("com.cleanroommc:modularui:2.5.0-rc4") { transitive = false }
4444
api("com.cleanroommc:groovyscript:1.2.0-hotfix1") { transitive = false }
45+
api("curse.maven:inventory-bogosorter-632327:4951607-deobf-4951608-sources-4951609")
4546
api("CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.20.700")
4647
api("appeng:ae2-uel:v0.56.4") { transitive = false }
4748
api rfg.deobf("curse.maven:ctm-267602:2915363") // CTM 1.0.2.31

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ 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+
2930
# Additional arguments applied to the JVM when launching minecraft
3031
# Syntax: -arg1=value1;-arg2=value2;...
3132
# Example value: -Dmixin.debug.verify=true;-XX:+UnlockExperimentalVMOptions
@@ -35,6 +36,7 @@ additionalJavaArguments=
3536
# See https://github.com/bsideup/jabel for details on how this works.
3637
# Using this requires that you use a Java 17 JDK for development.
3738
enableModernJavaSyntax = true
39+
3840
# Enables runClient/runServer tasks for Java 17 and Java 21 using LWJGL3ify.
3941
# This is primarily used to test if your mod is compatible with platforms running
4042
# Minecraft 1.12.2 on modern versions of Java and LWJGL, and assist in fixing any problems with it.
@@ -62,6 +64,8 @@ accessTransformersFile = gregtech_at.cfg
6264

6365
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
6466
usesMixins = true
67+
# Mixin Provider to use. Primarily changed when needing to use a different version.
68+
mixinProviderSpec=zone.rong:mixinbooter:10.6
6569
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
6670
mixinsPackage = mixins
6771
# Location of the mixin config refmap. If left, blank, defaults to "mixins.${modId}.refmap.json". Target file must have the "json" extension.
@@ -90,6 +94,7 @@ includeWellKnownRepositories=true
9094
# be available at compiletime and runtime for your mod (in-game and in-code).
9195
# Overrides the above setting to be always true, as these repositories are needed to fetch the mods
9296
includeCommonDevEnvMods = true
97+
9398
# Some mods require a specific forge version to launch in. When you need to use one of those mods as a dependency,
9499
# and cannot launch with the forge version required, enable this to strip the forge version requirements from that mod.
95100
# This will add 'strip-latest-forge-requirements' as 'runtimeOnlyNonPublishable'.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package meldexun.nothirium.api.renderer.chunk;
2+
3+
/**
4+
* Adapted and minimized from <a
5+
* href="https://github.com/Meldexun/Nothirium/blob/main/src/main/java/meldexun/nothirium/api/renderer/chunk/ChunkRenderPass.java">ChunkRenderPass.java</a>
6+
*/
7+
public enum ChunkRenderPass {
8+
;
9+
10+
public static final ChunkRenderPass[] ALL = ChunkRenderPass.values();
11+
12+
}

src/main/java/gregtech/GregTechMod.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
acceptedMinecraftVersions = "[1.12.2,1.13)",
3232
version = GTInternalTags.VERSION,
3333
dependencies = "required:forge@[14.23.5.2847,);" + "required-after:codechickenlib@[3.2.3,);" +
34-
"required-after:modularui@[2.3,);" + "required-after:mixinbooter@[8.0,);" + "after:appliedenergistics2;" +
34+
"required-after:modularui@[2.5.0-rc,);" + "required-after:mixinbooter@[8.0,);" +
35+
"after:appliedenergistics2;" +
3536
"after:forestry;" + "after:extrabees;" + "after:extratrees;" + "after:genetics;" + "after:magicbees;" +
3637
"after:jei@[4.15.0,);" + "after:crafttweaker@[4.1.20,);" + "after:groovyscript@[1.2.0,);" +
3738
"after:theoneprobe;" + "after:hwyla;")

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

Lines changed: 17 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
package gregtech.api;
22

3-
import gregtech.api.util.XSTR;
3+
import gregtech.api.util.random.XoShiRo256PlusPlusRandom;
44
import gregtech.common.ConfigHolder;
55

66
import net.minecraftforge.fml.common.FMLCommonHandler;
77
import net.minecraftforge.fml.relauncher.FMLLaunchHandler;
88
import net.minecraftforge.oredict.OreDictionary;
99

10-
import org.jetbrains.annotations.ApiStatus;
11-
1210
import java.time.LocalDate;
1311
import java.util.Random;
1412
import java.util.function.Supplier;
@@ -45,7 +43,7 @@ public class GTValues {
4543
*/
4644
public static final short W = OreDictionary.WILDCARD_VALUE;
4745

48-
public static final Random RNG = new XSTR();
46+
public static final Random RNG = new XoShiRo256PlusPlusRandom();
4947

5048
/** Current time on the Client. Will always be zero on the server. */
5149
public static long CLIENT_TIME = 0;
@@ -71,7 +69,7 @@ public class GTValues {
7169
/**
7270
* The Voltage Tiers adjusted for cable loss, divided by 2.
7371
*/
74-
public static final int[] VHA = { 7, 16, 60, 240, 960, 3840, 15360, 61440, 245760, 983040, 3932160, 15728640,
72+
public static final int[] VHA = { 4, 16, 60, 240, 960, 3840, 15360, 61440, 245760, 983040, 3932160, 15728640,
7573
62914560, 251658240, 1006632960 };
7674

7775
/**
@@ -83,6 +81,13 @@ public class GTValues {
8381
9007199254740992L, 36028797018963968L, 144115188075855872L, 576460752303423488L, 2305843009213693952L,
8482
Long.MAX_VALUE };
8583

84+
public static final long[] VAOC = { 7, 30, 120, 480, 1920, 7680, 30720, 123880, 491520, 1966080, 7864320,
85+
31457280, 125829120, 503316480, 2013265920, 8053063680L, 32212254720L, 128849018880L, 515396075520L,
86+
2061584302080L, 8246337208320L, 32985348833280L, 131948427333120L, 527865581332480L, 2111062325297920L,
87+
8444249301319680L, 33777097205278720L, 135108988821415880L, 540431751284459520L, 2161727821137838080L,
88+
8646911284550352320L
89+
};
90+
8691
public static final int ULV = 0;
8792
public static final int LV = 1;
8893
public static final int MV = 2;
@@ -115,28 +120,28 @@ public class GTValues {
115120
"MAX+9", "MAX+10", "MAX+11", "MAX+12", "MAX+13", "MAX+14", "MAX+15", "MAX+16",
116121
};
117122

118-
private static final String MAX_PLUS = RED.toString() + BOLD + "M" + YELLOW + BOLD + "A" + GREEN + BOLD + "X" +
119-
AQUA + BOLD + "+" + LIGHT_PURPLE + BOLD;
120-
121123
/**
122124
* The short names for the voltages, formatted for text
123125
*/
124126
public static final String[] VNF = new String[] {
125127
DARK_GRAY + "ULV", GRAY + "LV", AQUA + "MV",
126-
GOLD + "HV", DARK_PURPLE + "EV", DARK_BLUE + "IV",
128+
GOLD + "HV", DARK_PURPLE + "EV", BLUE + "IV",
127129
LIGHT_PURPLE + "LuV", RED + "ZPM", DARK_AQUA + "UV",
128130
DARK_RED + "UHV", GREEN + "UEV", DARK_GREEN + "UIV",
129-
YELLOW + "UXV", BLUE + "OpV", RED.toString() + BOLD + "MAX" };
131+
YELLOW + "UXV", BLUE.toString() + BOLD + "OpV", RED.toString() + BOLD + "MAX" };
132+
133+
private static final String MAX_PLUS = RED.toString() + BOLD + "M" + YELLOW + BOLD + "A" + GREEN + BOLD + "X" +
134+
AQUA + BOLD + "+" + LIGHT_PURPLE + BOLD;
130135

131136
/**
132137
* The short names for the voltages, up to max Long, formatted for text
133138
*/
134139
public static final String[] VOCNF = new String[] {
135140
DARK_GRAY + "ULV", GRAY + "LV", AQUA + "MV",
136-
GOLD + "HV", DARK_PURPLE + "EV", DARK_BLUE + "IV",
141+
GOLD + "HV", DARK_PURPLE + "EV", BLUE + "IV",
137142
LIGHT_PURPLE + "LuV", RED + "ZPM", DARK_AQUA + "UV",
138143
DARK_RED + "UHV", GREEN + "UEV", DARK_GREEN + "UIV",
139-
YELLOW + "UXV", BLUE + "OpV", RED.toString() + BOLD + "MAX",
144+
YELLOW + "UXV", BLUE.toString() + BOLD + "OpV", RED.toString() + BOLD + "MAX",
140145
MAX_PLUS + "1", MAX_PLUS + "2", MAX_PLUS + "3", MAX_PLUS + "4",
141146
MAX_PLUS + "5", MAX_PLUS + "6", MAX_PLUS + "7", MAX_PLUS + "8",
142147
MAX_PLUS + "9", MAX_PLUS + "10", MAX_PLUS + "11", MAX_PLUS + "12",
@@ -166,48 +171,6 @@ public class GTValues {
166171
*/
167172
public static final String MOD_NAME = "GregTech";
168173

169-
/** @deprecated Use {@link gregtech.api.util.Mods} instead */
170-
@Deprecated
171-
@ApiStatus.ScheduledForRemoval(inVersion = "2.9")
172-
public static final String MODID_FR = "forestry",
173-
MODID_CT = "crafttweaker",
174-
MODID_TOP = "theoneprobe",
175-
MODID_CTM = "ctm",
176-
MODID_CC = "cubicchunks",
177-
MODID_AR = "advancedrocketry",
178-
MODID_ECORE = "endercore",
179-
MODID_EIO = "enderio",
180-
MODID_BC = "buildcraftcore",
181-
MODID_COFH = "cofhcore",
182-
MODID_APPENG = "appliedenergistics2",
183-
MODID_JEI = "jei",
184-
MODID_GROOVYSCRIPT = "groovyscript",
185-
MODID_NC = "nuclearcraft",
186-
MODID_IE = "immersiveengineering",
187-
MODID_OC = "opencomputers",
188-
MODID_JOURNEYMAP = "journeymap",
189-
MODID_VOXELMAP = "voxelmap",
190-
MODID_XAERO_MINIMAP = "xaerominimap",
191-
MODID_HWYLA = "hwyla",
192-
MODID_BAUBLES = "baubles",
193-
MODID_TOP_ADDONS = "topaddons",
194-
MODID_IC2 = "ic2",
195-
MODID_GTFO = "gregtechfoodoption",
196-
MODID_BINNIE = "binniecore",
197-
MODID_XU2 = "extrautils2",
198-
MODID_TR = "techreborn",
199-
MODID_MB = "magicbees",
200-
MODID_EB = "extrabees",
201-
MODID_ET = "extratrees",
202-
MODID_GENETICS = "genetics",
203-
MODID_BOP = "biomesoplenty",
204-
MODID_TCON = "tconstruct",
205-
MODID_PROJRED_CORE = "projectred-core",
206-
MODID_RC = "railcraft",
207-
MODID_CHISEL = "chisel",
208-
MODID_RS = "refinedstorage",
209-
MODID_LITTLETILES = "littletiles";
210-
211174
private static Boolean isClient;
212175

213176
public static boolean isClientSide() {

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

Lines changed: 0 additions & 27 deletions
This file was deleted.

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@
2626
import java.util.Collections;
2727
import java.util.List;
2828

29-
@SuppressWarnings("deprecation")
30-
public class VariantBlock<T extends Enum<T> & IStringSerializable> extends Block implements IWalkingSpeedBonus {
29+
public class VariantBlock<T extends Enum<T> & IStringSerializable> extends Block {
3130

3231
protected PropertyEnum<T> VARIANT;
3332
protected T[] VALUES;
3433

35-
@SuppressWarnings("DataFlowIssue")
36-
public VariantBlock(Material materialIn) {
34+
public VariantBlock(@NotNull Material materialIn) {
3735
super(materialIn);
3836
if (VALUES.length > 0 && VALUES[0] instanceof IStateHarvestLevel) {
3937
for (T t : VALUES) {

0 commit comments

Comments
 (0)