mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-11 23:07:29 +00:00
galacticraft compat
This commit is contained in:
7 files changed
+34
-1
No files matched your search
+2
-1
@@ -145,4 +145,5 @@ gradle-app.setting
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/intellij+all,gradle,forgegradle,java
|
||||
|
||||
srgmap.cfg
|
||||
srgmap.cfg
|
||||
!lib/*.jar
|
||||
@@ -8,6 +8,7 @@ EndlessIDs is a modern rewrite of NotEnoughIDs which increases the limit even mo
|
||||
This mod also contains patches for the following mods:
|
||||
|
||||
- AntiIDConflict
|
||||
- GalactiCraft
|
||||
- UndergroundBiomesConstructs
|
||||
- More Fun Quicksand Mod
|
||||
- WorldEdit
|
||||
|
||||
@@ -13,4 +13,5 @@ dependencies {
|
||||
compileOnly(deobfMaven("curse.maven:dragonapi-235591:3574508")) // V31b
|
||||
|
||||
compileOnly(deobfMaven("curse.maven:antiidconflict-246288:2308279")) // 1.3.5
|
||||
compileOnly(files("lib/GalacticraftCore-1.7-3.0.12.504-deobf.jar"))
|
||||
}
|
||||
Binary file not shown.
+26
@@ -0,0 +1,26 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.galacticraft;
|
||||
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import micdoodle8.mods.galacticraft.core.util.ConfigManagerCore;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(value = ConfigManagerCore.class,
|
||||
remap = false)
|
||||
public abstract class ConfigManagerCoreMixin {
|
||||
@ModifyConstant(method = "syncConfig",
|
||||
constant = @Constant(stringValue = "Biome ID for Moon (Mars will be this + 1, Asteroids + 2 etc). Allowed range 40-250."),
|
||||
require = 1)
|
||||
private static String modifyHint(String constant) {
|
||||
return "Biome ID for Moon (Mars will be this + 1, Asteroids + 2 etc). Allowed range 40-" + (ExtendedConstants.biomeIDCount - 6);
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "syncConfig",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount - 6),
|
||||
require = 1)
|
||||
private static int modifyLimit(int constant) {
|
||||
return ExtendedConstants.biomeIDCount - 6;
|
||||
}
|
||||
}
|
||||
@@ -54,6 +54,9 @@ public enum Mixin implements IMixin {
|
||||
RenderGlobalMixin(Side.CLIENT, always(), "vanilla.RenderGlobalMixin"),
|
||||
//endregion client
|
||||
//endregion Minecraft
|
||||
//region GalactiCraftCore->common
|
||||
ConfigManagerCoreMixin(Side.COMMON, require(TargetedMod.GALACTICRAFTCORE), "galacticraft.ConfigManagerCoreMixin"),
|
||||
//endregion GalactiCraftCore->common
|
||||
//region UBC->common
|
||||
OreUBifierMixin(Side.COMMON, require(TargetedMod.UBC), "ubc.OreUBifierMixin"),
|
||||
BiomeUndergroundDecoratorMixin(Side.COMMON, require(TargetedMod.UBC), "ubc.BiomeUndergroundDecoratorMixin"),
|
||||
|
||||
@@ -11,6 +11,7 @@ import static com.falsepattern.lib.mixin.ITargetedMod.PredicateHelpers.*;
|
||||
@RequiredArgsConstructor
|
||||
public enum TargetedMod implements ITargetedMod {
|
||||
|
||||
GALACTICRAFTCORE("GalactiCraftCore", false, startsWith("galacticraftcore")),
|
||||
UBC("Underground Biomes Constructs", false, startsWith("undergroundbiomesconstructs-")),
|
||||
COFHLIB("CoFH Lib", false, startsWith("cofhlib-")),
|
||||
DRAGONAPI("DragonAPI", false, startsWith("dragonapi")),
|
||||
|
||||
Reference in new issue
Block a user