mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-13 16:54:01 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6337536dc3 | ||
|
|
9b96560119 |
No files matched your search
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("com.github.GTNewHorizons:GTNHLib:0.4.2:dev")
|
api("com.github.GTNewHorizons:GTNHLib:0.5.19:dev")
|
||||||
runtimeOnly("com.github.GTNewHorizons:NotEnoughItems:2.6.19-GTNH:dev")
|
runtimeOnly("com.github.GTNewHorizons:NotEnoughItems:2.6.44-GTNH:dev")
|
||||||
|
|
||||||
testImplementation(platform('org.junit:junit-bom:5.9.2'))
|
testImplementation(platform('org.junit:junit-bom:5.9.2'))
|
||||||
testImplementation('org.junit.jupiter:junit-jupiter')
|
testImplementation('org.junit.jupiter:junit-jupiter')
|
||||||
|
|||||||
+3
-3
@@ -50,10 +50,10 @@ enableGenericInjection = true
|
|||||||
# Generate a class with a String field for the mod version named as defined below.
|
# Generate a class with a String field for the mod version named as defined below.
|
||||||
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
|
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
|
||||||
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
|
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
|
||||||
generateGradleTokenClass =
|
generateGradleTokenClass = com.gtnewhorizon.structurelib.Tags
|
||||||
|
|
||||||
# Name of the token containing the project's current version to generate/replace.
|
# Name of the token containing the project's current version to generate/replace.
|
||||||
gradleTokenVersion = GRADLETOKEN_VERSION
|
gradleTokenVersion = VERSION
|
||||||
|
|
||||||
# [DEPRECATED] Mod ID replacement token.
|
# [DEPRECATED] Mod ID replacement token.
|
||||||
gradleTokenModId =
|
gradleTokenModId =
|
||||||
@@ -70,7 +70,7 @@ gradleTokenGroupName =
|
|||||||
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
|
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
|
||||||
# version in @Mod([...], version = VERSION, [...]).
|
# version in @Mod([...], version = VERSION, [...]).
|
||||||
# Leave these properties empty to skip individual token replacements.
|
# Leave these properties empty to skip individual token replacements.
|
||||||
replaceGradleTokenInFile = StructureLib.java
|
replaceGradleTokenInFile =
|
||||||
|
|
||||||
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
|
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
|
||||||
# leave this property empty.
|
# leave this property empty.
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.26'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.29'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||||||
@Mod(
|
@Mod(
|
||||||
modid = StructureLibAPI.MOD_ID,
|
modid = StructureLibAPI.MOD_ID,
|
||||||
name = "StructureLib",
|
name = "StructureLib",
|
||||||
version = "GRADLETOKEN_VERSION",
|
version = Tags.VERSION,
|
||||||
acceptableRemoteVersions = "*",
|
acceptableRemoteVersions = "*",
|
||||||
guiFactory = "com.gtnewhorizon.structurelib.GuiFactory")
|
guiFactory = "com.gtnewhorizon.structurelib.GuiFactory")
|
||||||
public class StructureLib {
|
public class StructureLib {
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ public class StructureLibAPI {
|
|||||||
*/
|
*/
|
||||||
public static void enableInstrument(Object identifier) {
|
public static void enableInstrument(Object identifier) {
|
||||||
if (isInstrumentEnabled()) throw new IllegalStateException();
|
if (isInstrumentEnabled()) throw new IllegalStateException();
|
||||||
instrument.set(instrument);
|
instrument.set(identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ public interface IStructureElementChain<T> extends IStructureElement<T> {
|
|||||||
if (e == null) continue;
|
if (e == null) continue;
|
||||||
if (predicate == null) predicate = e.getPredicate();
|
if (predicate == null) predicate = e.getPredicate();
|
||||||
else predicate = predicate.or(e.getPredicate());
|
else predicate = predicate.or(e.getPredicate());
|
||||||
is.add(e.getStacks());
|
Iterable<ItemStack> stacks = e.getStacks();
|
||||||
|
if (stacks != null) is.add(stacks);
|
||||||
}
|
}
|
||||||
if (predicate == null) return null;
|
if (predicate == null) return null;
|
||||||
return new BlocksToPlace(predicate, Iterables.concat(is));
|
return new BlocksToPlace(predicate, Iterables.concat(is));
|
||||||
|
|||||||
Reference in new issue
Block a user