Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Migrate to new RecipeMap #788

Merged
merged 15 commits into from
Dec 3, 2023
Merged
23 changes: 4 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//version: 1700844281
//version: 1701530445
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
Expand Down Expand Up @@ -28,27 +28,12 @@ import java.util.concurrent.TimeUnit

buildscript {
repositories {
mavenCentral()

maven {
name 'forge'
url 'https://maven.minecraftforge.net'
}
maven {
// GTNH RetroFuturaGradle and ASM Fork
name "GTNH Maven"
url "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
allowInsecureProtocol = true
}
maven {
name 'sonatype'
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
name 'Scala CI dependencies'
url 'https://repo1.maven.org/maven2/'
}

mavenLocal()
}
}
Expand Down Expand Up @@ -793,12 +778,12 @@ ext.java17PatchDependenciesCfg = configurations.create("java17PatchDependencies"
}

dependencies {
def lwjgl3ifyVersion = '1.5.1'
def lwjgl3ifyVersion = '1.5.7'
if (modId != 'lwjgl3ify') {
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
}
if (modId != 'hodgepodge') {
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.17')
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.35')
}

java17PatchDependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}:forgePatches") {transitive = false}
Expand Down Expand Up @@ -1310,7 +1295,7 @@ def addCurseForgeRelation(String type, String name) {

// Updating

def buildscriptGradleVersion = "8.2.1"
def buildscriptGradleVersion = "8.5"

tasks.named('wrapper', Wrapper).configure {
gradleVersion = buildscriptGradleVersion
Expand Down
6 changes: 3 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
dependencies {
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.44.91:dev')
api("com.github.GTNewHorizons:bartworks:0.8.13:dev")
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.44.96:dev')
api("com.github.GTNewHorizons:bartworks:0.8.19:dev")

implementation('curse.maven:cofh-core-69162:2388751')
// https://www.curseforge.com/minecraft/mc-mods/advancedsolarpanels
implementation('curse.maven:advsolar-362768:2885953')

compileOnly('com.github.GTNewHorizons:Baubles:1.0.1.16:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:Baubles:1.0.3:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderCore:0.2.18:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:SC2:2.0.2:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:Binnie:2.2.3:dev') {transitive = false}
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
5 changes: 4 additions & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,13 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi

# Increase the maximum file descriptors if we can.
Expand Down
43 changes: 0 additions & 43 deletions src/main/java/gregtech/api/util/AdvFusionPower.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package gregtech.api.util;

import javax.annotation.ParametersAreNonnullByDefault;

import gregtech.api.objects.overclockdescriber.FusionOverclockDescriber;

@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
public class AdvancedFusionOverclockDescriber extends FusionOverclockDescriber {

public AdvancedFusionOverclockDescriber(byte energyTier, long capableStartup) {
super(energyTier, capableStartup);
}

@Override
protected int getEUtIncreasePerOC() {
return 2;
}

protected int getDurationDecreasePerOC() {
return 2;
}
}
5 changes: 3 additions & 2 deletions src/main/java/gregtech/api/util/FishPondFakeRecipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.api.objects.data.AutoMap;
import gtPlusPlus.api.recipe.GTPPRecipeMaps;
import gtPlusPlus.core.recipe.common.CI;
import gtPlusPlus.core.util.minecraft.ItemUtils;
import gtPlusPlus.core.util.reflect.ReflectionUtils;
Expand Down Expand Up @@ -59,7 +60,7 @@ public static boolean generateFishPondRecipes() {
}

public static void addNewFishPondLoot(int circuit, ItemStack[] outputItems, int[] chances) {
GTPP_Recipe x = new GTPP_Recipe(
GT_Recipe x = new GT_Recipe(
true,
new ItemStack[] { CI.getNumberedCircuit(circuit) },
outputItems,
Expand All @@ -71,6 +72,6 @@ public static void addNewFishPondLoot(int circuit, ItemStack[] outputItems, int[
0, // No Eu produced
0);
Logger.INFO("Fishing [" + circuit + "]: " + ItemUtils.getArrayStackNames(outputItems));
GTPP_Recipe.GTPP_Recipe_Map.sFishPondRecipes.addRecipe(x, false, false, false);
GTPPRecipeMaps.fishPondRecipes.addRecipe(x, false, false, false);
}
}
Loading