diff --git a/.gitignore b/.gitignore index 75c41f6..38d39a4 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ src/main/resources/mixins.*.json *.bat *.DS_Store !gradlew.bat +layout.json diff --git a/dependencies.gradle b/dependencies.gradle index bcb3668..592046b 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,7 +1,8 @@ // Add your dependencies here dependencies { - implementation('com.github.GTNewHorizons:NotEnoughItems:2.6.11-GTNH:dev') - compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.48.56:dev') - compileOnly('com.github.GTNewHorizons:EnderIO:2.8.6:dev') + implementation('com.github.GTNewHorizons:NotEnoughItems:2.6.22-GTNH:dev') + compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.48.150:dev') + compileOnly('com.github.GTNewHorizons:EnderIO:2.8.17:dev') + compileOnly('com.github.GTNewHorizons:Draconic-Evolution:1.3.6-GTNH:dev') } diff --git a/gradle.properties b/gradle.properties index b53f5fb..1662a70 100644 --- a/gradle.properties +++ b/gradle.properties @@ -85,6 +85,11 @@ accessTransformersFile = findit_at.cfg # Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled! usesMixins = false +# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main. +# This can speed up compile times thanks to not running the mixin annotation processor on all input sources. +# Mixin classes will have access to "main" classes, but not the other way around. +separateMixinSourceSet = + # Adds some debug arguments like verbose output and class export. usesMixinDebug = false @@ -117,9 +122,15 @@ minimizeShadowedDependencies = true # If disabled, won't rename the shadowed classes. relocateShadowedDependencies = true -# Adds the GTNH maven, CurseMaven, Modrinth, and some more well-known 1.7.10 repositories. +# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories. includeWellKnownRepositories = true +# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated +# list of strings, with the acceptable keys being(case does not matter): +# cursemaven +# modrinth +excludeWellKnownRepositories = + # Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven. # Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables. # If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle. diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a441313..09523c0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/settings.gradle b/settings.gradle index 6fe010c..242692e 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,7 +17,7 @@ pluginManagement { } plugins { - id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.23' + id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.26' } diff --git a/src/main/java/com/gtnh/findit/FindIt.java b/src/main/java/com/gtnh/findit/FindIt.java index 7b35e4d..14b46b0 100644 --- a/src/main/java/com/gtnh/findit/FindIt.java +++ b/src/main/java/com/gtnh/findit/FindIt.java @@ -32,6 +32,8 @@ public class FindIt { private boolean gregTechloaded; private boolean enderIOloaded; + private boolean draconicEvolutionLoaded; + private SearchCooldownService cooldownService; private BlockFindService blockFindService; private ItemFindService itemFindService; @@ -41,6 +43,7 @@ public class FindIt { this.extraUtilitiesLoaded = Loader.isModLoaded("ExtraUtilities"); this.gregTechloaded = Loader.isModLoaded("gregtech"); this.enderIOloaded = Loader.isModLoaded("EnderIO"); + this.draconicEvolutionLoaded = Loader.isModLoaded("DraconicEvolution"); FindItConfig.setup(event.getSuggestedConfigurationFile()); boolean isClient = event.getSide() == Side.CLIENT; @@ -73,4 +76,8 @@ public class FindIt { public static boolean isEnderIOLoaded() { return INSTANCE.enderIOloaded; } + + public static boolean isDraconicEvolutionLoaded() { + return INSTANCE.draconicEvolutionLoaded; + } } diff --git a/src/main/java/com/gtnh/findit/service/itemfinder/ItemFindService.java b/src/main/java/com/gtnh/findit/service/itemfinder/ItemFindService.java index 2a2065c..eea96f9 100644 --- a/src/main/java/com/gtnh/findit/service/itemfinder/ItemFindService.java +++ b/src/main/java/com/gtnh/findit/service/itemfinder/ItemFindService.java @@ -12,6 +12,7 @@ import net.minecraftforge.fluids.FluidTankInfo; import net.minecraftforge.fluids.IFluidHandler; import net.minecraftforge.fluids.IFluidTank; +import com.brandon3055.draconicevolution.common.tileentities.TilePlacedItem; import com.gtnh.findit.FindIt; import com.gtnh.findit.FindItConfig; import com.gtnh.findit.FindItNetwork; @@ -65,6 +66,12 @@ public class ItemFindService { } } + if (FindIt.isDraconicEvolutionLoaded()) { + if (tileEntity instanceof TilePlacedItem placedItem && request.isStackSatisfies(placedItem.getStack())) { + return true; + } + } + if (request.hasFluidStack()) { if (tileEntity instanceof IFluidTank && request.isFluidSatisfies(((IFluidTank) tileEntity).getFluid())) { return true;