mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-24 10:34:29 +00:00
Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1c8d1edb2 | ||
|
|
4b23b1949c | ||
|
|
0e32ffebae | ||
|
|
ef52fa6e51 | ||
|
|
42c59a668f | ||
|
|
9d24a015ff | ||
|
|
3b85cf7db5 | ||
|
|
15803fceff | ||
|
|
4a185892ea |
No files matched your search
@@ -26,6 +26,8 @@ This mod also contains patches for the following mods:
|
||||
- More Fun Quicksand Mod
|
||||
- Nature's Compass
|
||||
- Realistic Terrain Generation
|
||||
- Thaumcraft
|
||||
- Twilight Forest
|
||||
- Underground Biomes Constructs
|
||||
- WorldEdit
|
||||
|
||||
|
||||
+4
-1
@@ -4,7 +4,7 @@ dependencies {
|
||||
}
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.22")
|
||||
|
||||
compile("com.falsepattern:falsepatternlib-mc1.7.10:0.9.1:dev")
|
||||
compile("com.falsepattern:falsepatternlib-mc1.7.10:0.9.2:dev")
|
||||
|
||||
String curseMaven = "https://cursemaven.falsepattern.com/" //Use https://cursemaven.com/ if this is down
|
||||
compileOnly(deobfMaven(curseMaven, "curse.maven:undergroundbiomesconstructs-72744:2304497")) // 0.8-beta49
|
||||
@@ -20,6 +20,9 @@ dependencies {
|
||||
compile(deobfMaven(curseMaven, "curse.maven:naturescompass-252848:2451823")) // 1.3.1
|
||||
compile(deobfMaven(curseMaven, "curse.maven:dynamicsurrounding-238891:2642381")) // 1.0.6.4
|
||||
compile(deobfMaven(curseMaven, "curse.maven:immersivecavegen-521557:3649411")) // 1.2g
|
||||
compile(deobfMaven(curseMaven, "curse.maven:twilightforest-227639:3039937")) // 2.3.8
|
||||
compile(deobfMaven(curseMaven, "curse.maven:thaumcraft-223628:2227552")) // 4.2.3.5
|
||||
compile(deobfMaven(curseMaven, "curse.maven:baubles-227083:2224857")) // 1.0.1.10, dependency of thaumcraft
|
||||
compile("com.github.embeddedt:ArchaicFix:be8666cb2dbf2e0a8b799e88cef3c0d12e5d4911:dev")
|
||||
compileOnly(deobf("https://micdoodle8.com/new-builds/GC-1.7/504/GalacticraftCore-1.7-3.0.12.504.jar"))
|
||||
}
|
||||
@@ -5,18 +5,17 @@ import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
|
||||
@Mod(modid = Tags.MODID,
|
||||
version = Tags.VERSION,
|
||||
name = Tags.MODNAME,
|
||||
acceptedMinecraftVersions = "[1.7.10]",
|
||||
dependencies = "required-after:falsepatternlib@[0.9.1,);after:antiidconflict")
|
||||
dependencies = "required-after:falsepatternlib@[0.9.2,);after:antiidconflict")
|
||||
public class EndlessIDs {
|
||||
public static final byte[] BIOME_ARRAY_PLACEHOLDER = new byte[0];
|
||||
public static final Logger LOG = LogManager.getLogger(Tags.MODNAME);
|
||||
|
||||
private static void antiIdConflictLatePatch() {
|
||||
|
||||
@@ -36,13 +36,13 @@ public class IEPlugin implements IFMLLoadingPlugin {
|
||||
|
||||
@SneakyThrows
|
||||
public String[] getASMTransformerClass() {
|
||||
val cl = ((LaunchClassLoader)this.getClass().getClassLoader());
|
||||
val cl = ((LaunchClassLoader) this.getClass().getClassLoader());
|
||||
val field = cl.getClass().getDeclaredField("transformerExceptions");
|
||||
field.setAccessible(true);
|
||||
val exceptions = (Set<String>) field.get(cl);
|
||||
if (exceptions.contains("code.elix_x.coremods")) {
|
||||
System.out.println("AntiIDConflict detected!");
|
||||
System.out.println("Removing ASM protections so that we can fix its code.");
|
||||
IETransformer.logger.info("AntiIDConflict detected!");
|
||||
IETransformer.logger.info("Removing ASM protections so that we can fix its code.");
|
||||
exceptions.remove("code.elix_x.coremods");
|
||||
exceptions.add("code.elix_x.coremods.antiidconflict.core");
|
||||
exceptions.add("code.elix_x.coremods.antiidconflict.ByteCodeTester");
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.falsepattern.endlessids.mixin.helpers;
|
||||
|
||||
import lombok.val;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
import java.util.function.IntFunction;
|
||||
|
||||
import static com.falsepattern.endlessids.EndlessIDs.BIOME_ARRAY_PLACEHOLDER;
|
||||
|
||||
public class BiomePatchHelper {
|
||||
public static byte[] getBiomeArrayTweaked(Chunk chunk, IntFunction<BiomeGenBase> biomesForGeneration) {
|
||||
val chunkBiomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
|
||||
for (int i = 0; i < chunkBiomes.length; ++i) {
|
||||
chunkBiomes[i] = (short) biomesForGeneration.apply(i).biomeID;
|
||||
}
|
||||
return BIOME_ARRAY_PLACEHOLDER;
|
||||
}
|
||||
|
||||
public static byte[] getBiomeArrayTweaked(Chunk chunk, BiomeGenBase[] biomesForGeneration) {
|
||||
val chunkBiomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
|
||||
for (int i = 0; i < chunkBiomes.length; ++i) {
|
||||
chunkBiomes[i] = (short) biomesForGeneration[i].biomeID;
|
||||
}
|
||||
return BIOME_ARRAY_PLACEHOLDER;
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -16,7 +16,8 @@ import java.io.File;
|
||||
@Mixin(value = AntiIdConflictBase.class,
|
||||
remap = false)
|
||||
public abstract class AntiIdConflictBaseMixin {
|
||||
@Shadow public static File mainFolder;
|
||||
@Shadow
|
||||
public static File mainFolder;
|
||||
|
||||
@Inject(method = "preinit",
|
||||
at = @At("HEAD"),
|
||||
|
||||
+16
-12
@@ -10,9 +10,7 @@ import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyArg;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
@@ -25,15 +23,20 @@ import static code.elix_x.coremods.antiidconflict.managers.BiomesManager.conflic
|
||||
@Mixin(value = BiomesManager.class,
|
||||
remap = false)
|
||||
public abstract class BiomesManagerMixin {
|
||||
@Shadow public static String freeBiomeIDs;
|
||||
@Shadow
|
||||
public static String freeBiomeIDs;
|
||||
|
||||
@Shadow public static String occupiedBiomeIDs;
|
||||
@Shadow
|
||||
public static String occupiedBiomeIDs;
|
||||
|
||||
@Shadow public static boolean debug;
|
||||
@Shadow
|
||||
public static boolean debug;
|
||||
|
||||
@Shadow public static int IconflictedIds;
|
||||
@Shadow
|
||||
public static int IconflictedIds;
|
||||
|
||||
@Shadow public static String conflictedIds;
|
||||
@Shadow
|
||||
public static String conflictedIds;
|
||||
|
||||
private static String[] getIntervalNaming(int first, int last) {
|
||||
if (first == last) {
|
||||
@@ -44,6 +47,7 @@ public abstract class BiomesManagerMixin {
|
||||
return new String[]{first + "-" + last};
|
||||
}
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "<clinit>",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 1)
|
||||
@@ -77,13 +81,13 @@ public abstract class BiomesManagerMixin {
|
||||
++BiomesManager.freeIds;
|
||||
} else if (hasEmpty) {
|
||||
hasEmpty = false;
|
||||
for (val part: getIntervalNaming(emptyRegionStart, i - 1)) {
|
||||
for (val part : getIntervalNaming(emptyRegionStart, i - 1)) {
|
||||
builder.append(part).append('\n');
|
||||
}
|
||||
}
|
||||
}
|
||||
if (hasEmpty) {
|
||||
for (val part: getIntervalNaming(emptyRegionStart, ExtendedConstants.biomeIDCount - 1)) {
|
||||
for (val part : getIntervalNaming(emptyRegionStart, ExtendedConstants.biomeIDCount - 1)) {
|
||||
builder.append(part).append('\n');
|
||||
}
|
||||
}
|
||||
@@ -180,13 +184,13 @@ public abstract class BiomesManagerMixin {
|
||||
hasEmpty = false;
|
||||
emptyRegionStart = 0;
|
||||
|
||||
for(int i = 0; i < biomes.length; ++i) {
|
||||
for (int i = 0; i < biomes.length; ++i) {
|
||||
if (!ArrayUtils.isEmpty(conflicts) && conflicts[i] != null) {
|
||||
writer.println(conflicts[i].getCrashMessage());
|
||||
} else if (biomes[i] != null) {
|
||||
if (hasEmpty) {
|
||||
hasEmpty = false;
|
||||
for (val part: getIntervalNaming(emptyRegionStart, i - 1)) {
|
||||
for (val part : getIntervalNaming(emptyRegionStart, i - 1)) {
|
||||
writer.print(part);
|
||||
writer.println(" is Available");
|
||||
}
|
||||
@@ -203,7 +207,7 @@ public abstract class BiomesManagerMixin {
|
||||
}
|
||||
}
|
||||
if (hasEmpty) {
|
||||
for (val part: getIntervalNaming(emptyRegionStart, ExtendedConstants.biomeIDCount - 1)) {
|
||||
for (val part : getIntervalNaming(emptyRegionStart, ExtendedConstants.biomeIDCount - 1)) {
|
||||
writer.print(part);
|
||||
writer.println(" is Available");
|
||||
}
|
||||
|
||||
+10
-22
@@ -1,16 +1,12 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.atg;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.IChunkMixin;
|
||||
import lombok.val;
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import ttftcuts.atg.ATGChunkProvider;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
@@ -20,21 +16,13 @@ public abstract class ATGChunkProviderMixin {
|
||||
@Shadow
|
||||
private BiomeGenBase[] biomesForGeneration;
|
||||
|
||||
@Inject(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B",
|
||||
remap = true,
|
||||
shift = At.Shift.BEFORE),
|
||||
cancellable = true,
|
||||
remap = true,
|
||||
locals = LocalCapture.CAPTURE_FAILHARD,
|
||||
require = 1)
|
||||
private void hijackChunkBiomeSetup(int chunkX, int chunkY, CallbackInfoReturnable<Chunk> cir, Block[] data, byte[] abyte, Chunk chunk) {
|
||||
val chunkBiomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
for (int i = 0; i < chunkBiomes.length; i++) {
|
||||
chunkBiomes[i] = (short) biomesForGeneration[i].biomeID;
|
||||
}
|
||||
chunk.generateSkylightMap();
|
||||
cir.setReturnValue(chunk);
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B",
|
||||
remap = true),
|
||||
remap = true,
|
||||
require = 1)
|
||||
private byte[] setBiomesTweaked(Chunk chunk) {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(chunk, biomesForGeneration);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(value = BOPBiomeManager.class,
|
||||
remap = false)
|
||||
public abstract class BoPBiomeManagerMixin {
|
||||
public abstract class BOPBiomeManagerMixin {
|
||||
@ModifyConstant(method = "getNextFreeBiomeId",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 1)
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.bop;
|
||||
|
||||
import biomesoplenty.common.world.ChunkProviderBOPEnd;
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
@Mixin(value = ChunkProviderBOPEnd.class,
|
||||
remap = false)
|
||||
public abstract class ChunkProviderBOPEndMixin {
|
||||
@Shadow
|
||||
private BiomeGenBase[] biomesForGeneration;
|
||||
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B",
|
||||
remap = true),
|
||||
remap = true,
|
||||
require = 1)
|
||||
private byte[] setBiomesTweaked(Chunk chunk) {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(chunk, biomesForGeneration);
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.bop;
|
||||
|
||||
import biomesoplenty.common.world.ChunkProviderBOPHell;
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
@Mixin(value = ChunkProviderBOPHell.class,
|
||||
remap = false)
|
||||
public abstract class ChunkProviderBOPHellMixin {
|
||||
private BiomeGenBase[] bgb;
|
||||
|
||||
@Inject(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B",
|
||||
shift = At.Shift.BEFORE,
|
||||
remap = true),
|
||||
locals = LocalCapture.CAPTURE_FAILHARD,
|
||||
remap = true,
|
||||
require = 1)
|
||||
private void setBiomesTweaked1(int par1, int par2, CallbackInfoReturnable<Chunk> cir, byte[] abyte, Block[] blocks, Chunk chunk, BiomeGenBase[] abiomegenbase) {
|
||||
bgb = abiomegenbase;
|
||||
|
||||
}
|
||||
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B",
|
||||
remap = true),
|
||||
remap = true,
|
||||
require = 1)
|
||||
private byte[] setBiomesTweaked2(Chunk chunk) {
|
||||
try {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(chunk, bgb);
|
||||
} finally {
|
||||
bgb = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-8
@@ -1,6 +1,6 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.rtg;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.IChunkMixin;
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
@@ -25,13 +25,8 @@ public abstract class ChunkProviderRTGMixin {
|
||||
remap = true),
|
||||
remap = true,
|
||||
require = 1)
|
||||
private byte[] redictBiomeArrayFillLogic(Chunk chunk) {
|
||||
short[] biomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
|
||||
for (int i = 0; i < biomes.length; ++i) {
|
||||
biomes[i] = (short) baseBiomesList[xyinverted[i]].biomeID;
|
||||
}
|
||||
return new byte[0];
|
||||
private byte[] setBiomesTweaked(Chunk chunk) {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(chunk, (i) -> baseBiomesList[xyinverted[i]]);
|
||||
}
|
||||
|
||||
@Redirect(method = "provideChunk",
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.thaumcraft;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.IChunkMixin;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import thaumcraft.common.lib.network.PacketHandler;
|
||||
import thaumcraft.common.lib.network.misc.PacketBiomeChange;
|
||||
import thaumcraft.common.lib.utils.Utils;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
|
||||
@Mixin(value = Utils.class,
|
||||
remap = false)
|
||||
public abstract class UtilsMixin {
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Biome ID Extension
|
||||
*/
|
||||
@Overwrite
|
||||
public static void setBiomeAt(World world, int x, int z, BiomeGenBase biome) {
|
||||
if (biome != null) {
|
||||
Chunk chunk = world.getChunkFromBlockCoords(x, z);
|
||||
short[] array = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
array[(z & 15) << 4 | x & 15] = (short) (biome.biomeID);
|
||||
if (!world.isRemote) {
|
||||
PacketHandler.INSTANCE.sendToAllAround(new PacketBiomeChange(x, z, (short) biome.biomeID),
|
||||
new NetworkRegistry.TargetPoint(world.provider.dimensionId, x,
|
||||
world.getHeightValue(x, z), z,
|
||||
32.0));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.twilightforest;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import twilightforest.world.ChunkProviderTwilightForest;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
@Mixin(value = ChunkProviderTwilightForest.class,
|
||||
remap = false)
|
||||
public abstract class ChunkProviderTwilightForestMixin {
|
||||
@Shadow
|
||||
private BiomeGenBase[] biomesForGeneration;
|
||||
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B",
|
||||
remap = true),
|
||||
remap = true,
|
||||
require = 1)
|
||||
private byte[] setBiomesTweaked(Chunk chunk) {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(chunk, biomesForGeneration);
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.twilightforest;
|
||||
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
import twilightforest.biomes.TFBiomeBase;
|
||||
|
||||
@Mixin(value = TFBiomeBase.class,
|
||||
remap = false)
|
||||
public abstract class TFBiomeBaseMixin {
|
||||
@ModifyConstant(method = "findNextOpenBiomeId",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 1)
|
||||
private static int extendIDs(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
-3
@@ -1,6 +1,5 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.vanilla.biome;
|
||||
|
||||
import com.falsepattern.endlessids.EndlessIDs;
|
||||
import com.falsepattern.endlessids.PlaceholderBiome;
|
||||
import lombok.val;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
@@ -11,8 +10,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraftforge.common.BiomeDictionary;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@Mixin(value = BiomeDictionary.class,
|
||||
remap = false)
|
||||
public abstract class BiomeDictionaryMixin {
|
||||
|
||||
+4
-2
@@ -21,7 +21,8 @@ import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@Mixin(value = Chunk.class, priority = 900)
|
||||
@Mixin(value = Chunk.class,
|
||||
priority = 900)
|
||||
public abstract class ChunkMixin implements IChunkMixin {
|
||||
@Shadow
|
||||
@Final
|
||||
@@ -30,8 +31,9 @@ public abstract class ChunkMixin implements IChunkMixin {
|
||||
@Final
|
||||
public int zPosition;
|
||||
@Shadow
|
||||
public World worldObj;
|
||||
@Shadow
|
||||
private byte[] blockBiomeArray;
|
||||
@Shadow public World worldObj;
|
||||
private short[] blockBiomeShortArray;
|
||||
|
||||
@Inject(method = "<init>(Lnet/minecraft/world/World;II)V",
|
||||
|
||||
+9
-42
@@ -1,58 +1,25 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.vanilla.worldgen;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.IChunkMixin;
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
import net.minecraft.world.gen.ChunkProviderEnd;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@Mixin(ChunkProviderEnd.class)
|
||||
public abstract class ChunkProviderEndMixin {
|
||||
|
||||
@Shadow
|
||||
private Random endRNG;
|
||||
|
||||
@Shadow
|
||||
private BiomeGenBase[] biomesForGeneration;
|
||||
|
||||
@Shadow
|
||||
private World endWorld;
|
||||
|
||||
@Shadow
|
||||
public abstract void func_147420_a(int p_147420_1_, int p_147420_2_, Block[] p_147420_3_, BiomeGenBase[] p_147420_4_);
|
||||
|
||||
@Shadow(remap = false)
|
||||
public abstract void replaceBiomeBlocks(int p_147421_1_, int p_147421_2_, Block[] p_147421_3_, BiomeGenBase[] p_147421_4_, byte[] meta);
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Direct port from decompiled code
|
||||
*/
|
||||
@Overwrite
|
||||
public Chunk provideChunk(int x, int z) {
|
||||
this.endRNG.setSeed((long) x * 341873128712L + (long) z * 132897987541L);
|
||||
Block[] blocks = new Block[32768];
|
||||
byte[] metadatas = new byte[blocks.length];
|
||||
this.biomesForGeneration = this.endWorld.getWorldChunkManager()
|
||||
.loadBlockGeneratorData(this.biomesForGeneration, x * 16, z * 16, 16,
|
||||
16);
|
||||
this.func_147420_a(x, z, blocks, this.biomesForGeneration);
|
||||
this.replaceBiomeBlocks(x, z, blocks, this.biomesForGeneration, metadatas);
|
||||
Chunk chunk = new Chunk(this.endWorld, blocks, metadatas, x, z);
|
||||
short[] biomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
|
||||
for (int i = 0; i < biomes.length; ++i) {
|
||||
biomes[i] = (short) this.biomesForGeneration[i].biomeID;
|
||||
}
|
||||
|
||||
chunk.generateSkylightMap();
|
||||
return chunk;
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"),
|
||||
require = 1)
|
||||
private byte[] setBiomesTweaked(Chunk chunk) {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(chunk, biomesForGeneration);
|
||||
}
|
||||
}
|
||||
+25
-63
@@ -1,81 +1,43 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.vanilla.worldgen;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.IChunkMixin;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.chunk.storage.ExtendedBlockStorage;
|
||||
import net.minecraft.world.gen.ChunkProviderFlat;
|
||||
import net.minecraft.world.gen.MapGenBase;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mixin(ChunkProviderFlat.class)
|
||||
public abstract class ChunkProviderFlatMixin implements IChunkProvider {
|
||||
@Shadow
|
||||
private World worldObj;
|
||||
private BiomeGenBase[] bgb;
|
||||
|
||||
@Shadow
|
||||
@Final
|
||||
private Block[] cachedBlockIDs;
|
||||
@Inject(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B",
|
||||
shift = At.Shift.BEFORE),
|
||||
locals = LocalCapture.CAPTURE_FAILHARD,
|
||||
require = 1)
|
||||
private void setBiomesTweaked1(int p_73154_1_, int p_73154_2_, CallbackInfoReturnable<Chunk> cir, Chunk chunk, BiomeGenBase[] abiomegenbase) {
|
||||
bgb = abiomegenbase;
|
||||
|
||||
@Shadow
|
||||
@Final
|
||||
private byte[] cachedBlockMetadata;
|
||||
}
|
||||
|
||||
@Shadow
|
||||
@Final
|
||||
private List structureGenerators;
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Direct port from dumped code
|
||||
*/
|
||||
@Overwrite
|
||||
public Chunk provideChunk(int x, int z) {
|
||||
Chunk chunk = new Chunk(this.worldObj, x, z);
|
||||
|
||||
for (int Y = 0; Y < this.cachedBlockIDs.length; ++Y) {
|
||||
Block block = this.cachedBlockIDs[Y];
|
||||
if (block != null) {
|
||||
int ebsID = Y >> 4;
|
||||
ExtendedBlockStorage ebs = chunk.getBlockStorageArray()[ebsID];
|
||||
if (ebs == null) {
|
||||
ebs = new ExtendedBlockStorage(Y, !this.worldObj.provider.hasNoSky);
|
||||
chunk.getBlockStorageArray()[ebsID] = ebs;
|
||||
}
|
||||
|
||||
for (int X = 0; X < 16; ++X) {
|
||||
for (int Z = 0; Z < 16; ++Z) {
|
||||
ebs.func_150818_a(X, Y & 15, Z, block);
|
||||
ebs.setExtBlockMetadata(X, Y & 15, Z, this.cachedBlockMetadata[Y]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"),
|
||||
require = 1)
|
||||
private byte[] setBiomesTweaked2(Chunk chunk) {
|
||||
try {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(chunk, bgb);
|
||||
} finally {
|
||||
bgb = null;
|
||||
}
|
||||
|
||||
chunk.generateSkylightMap();
|
||||
BiomeGenBase[] bgb = this.worldObj.getWorldChunkManager().loadBlockGeneratorData(null, x * 16, z * 16, 16, 16);
|
||||
short[] biomeArray = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
|
||||
for (int i = 0; i < biomeArray.length; ++i) {
|
||||
biomeArray[i] = (short) bgb[i].biomeID;
|
||||
}
|
||||
|
||||
for (Object o : this.structureGenerators) {
|
||||
MapGenBase structureGenerator = (MapGenBase) o;
|
||||
structureGenerator.func_151539_a(this, this.worldObj, x, z, null);
|
||||
}
|
||||
|
||||
chunk.generateSkylightMap();
|
||||
return chunk;
|
||||
}
|
||||
|
||||
}
|
||||
+9
-69
@@ -1,86 +1,26 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.vanilla.worldgen;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.IChunkMixin;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.ChunkProviderGenerate;
|
||||
import net.minecraft.world.gen.MapGenBase;
|
||||
import net.minecraft.world.gen.structure.MapGenMineshaft;
|
||||
import net.minecraft.world.gen.structure.MapGenScatteredFeature;
|
||||
import net.minecraft.world.gen.structure.MapGenStronghold;
|
||||
import net.minecraft.world.gen.structure.MapGenVillage;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@Mixin(ChunkProviderGenerate.class)
|
||||
public abstract class ChunkProviderGenerateMixin implements IChunkProvider {
|
||||
@Shadow
|
||||
private Random rand;
|
||||
@Shadow
|
||||
private BiomeGenBase[] biomesForGeneration;
|
||||
@Shadow
|
||||
private World worldObj;
|
||||
@Shadow
|
||||
private MapGenBase caveGenerator;
|
||||
@Shadow
|
||||
private MapGenBase ravineGenerator;
|
||||
@Shadow
|
||||
@Final
|
||||
private boolean mapFeaturesEnabled;
|
||||
@Shadow
|
||||
private MapGenMineshaft mineshaftGenerator;
|
||||
@Shadow
|
||||
private MapGenVillage villageGenerator;
|
||||
@Shadow
|
||||
private MapGenStronghold strongholdGenerator;
|
||||
@Shadow
|
||||
private MapGenScatteredFeature scatteredFeatureGenerator;
|
||||
|
||||
@Shadow
|
||||
public abstract void func_147424_a(int p_147424_1_, int p_147424_2_, Block[] p_147424_3_);
|
||||
|
||||
@Shadow
|
||||
public abstract void replaceBlocksForBiome(int p_147422_1_, int p_147422_2_, Block[] p_147422_3_, byte[] p_147422_4_, BiomeGenBase[] p_147422_5_);
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Direct port from dumped code
|
||||
*/
|
||||
@Overwrite
|
||||
public Chunk provideChunk(int x, int z) {
|
||||
this.rand.setSeed((long) x * 341873128712L + (long) z * 132897987541L);
|
||||
Block[] blocks = new Block[65536];
|
||||
byte[] metadata = new byte[65536];
|
||||
this.func_147424_a(x, z, blocks);
|
||||
this.biomesForGeneration = this.worldObj.getWorldChunkManager()
|
||||
.loadBlockGeneratorData(this.biomesForGeneration, x * 16, z * 16, 16,
|
||||
16);
|
||||
this.replaceBlocksForBiome(x, z, blocks, metadata, this.biomesForGeneration);
|
||||
this.caveGenerator.func_151539_a(this, this.worldObj, x, z, blocks);
|
||||
this.ravineGenerator.func_151539_a(this, this.worldObj, x, z, blocks);
|
||||
if (this.mapFeaturesEnabled) {
|
||||
this.mineshaftGenerator.func_151539_a(this, this.worldObj, x, z, blocks);
|
||||
this.villageGenerator.func_151539_a(this, this.worldObj, x, z, blocks);
|
||||
this.strongholdGenerator.func_151539_a(this, this.worldObj, x, z, blocks);
|
||||
this.scatteredFeatureGenerator.func_151539_a(this, this.worldObj, x, z, blocks);
|
||||
}
|
||||
|
||||
Chunk chunk = new Chunk(this.worldObj, blocks, metadata, x, z);
|
||||
short[] biomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
|
||||
for (int i = 0; i < biomes.length; ++i) {
|
||||
biomes[i] = (short) this.biomesForGeneration[i].biomeID;
|
||||
}
|
||||
|
||||
chunk.generateSkylightMap();
|
||||
return chunk;
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"),
|
||||
require = 1)
|
||||
private byte[] setBiomesTweaked(Chunk chunk) {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(chunk, biomesForGeneration);
|
||||
}
|
||||
}
|
||||
+25
-43
@@ -1,61 +1,43 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.vanilla.worldgen;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.IChunkMixin;
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.ChunkProviderHell;
|
||||
import net.minecraft.world.gen.MapGenBase;
|
||||
import net.minecraft.world.gen.structure.MapGenNetherBridge;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@Mixin(ChunkProviderHell.class)
|
||||
public abstract class ChunkProviderHellMixin implements IChunkProvider {
|
||||
private BiomeGenBase[] bgb;
|
||||
|
||||
@Shadow
|
||||
public MapGenNetherBridge genNetherBridge;
|
||||
@Shadow
|
||||
private Random hellRNG;
|
||||
@Shadow
|
||||
private World worldObj;
|
||||
@Shadow
|
||||
private MapGenBase netherCaveGenerator;
|
||||
@Inject(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B",
|
||||
shift = At.Shift.BEFORE),
|
||||
locals = LocalCapture.CAPTURE_FAILHARD,
|
||||
require = 1)
|
||||
private void setBiomesTweaked1(int p_73154_1_, int p_73154_2_, CallbackInfoReturnable<Chunk> cir, Block[] ablock, byte[] meta, BiomeGenBase[] abiomegenbase, Chunk chunk) {
|
||||
bgb = abiomegenbase;
|
||||
|
||||
@Shadow
|
||||
public abstract void func_147419_a(int p_147419_1_, int p_147419_2_, Block[] p_147419_3_);
|
||||
}
|
||||
|
||||
@Shadow(remap = false)
|
||||
public abstract void replaceBiomeBlocks(int p_147418_1_, int p_147418_2_, Block[] p_147418_3_, byte[] meta, BiomeGenBase[] biomes);
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Direct port from dumped code
|
||||
*/
|
||||
@Overwrite
|
||||
public Chunk provideChunk(int x, int z) {
|
||||
this.hellRNG.setSeed((long) x * 341873128712L + (long) z * 132897987541L);
|
||||
Block[] blocks = new Block[32768];
|
||||
byte[] metadata = new byte[blocks.length];
|
||||
BiomeGenBase[] bgb = this.worldObj.getWorldChunkManager().loadBlockGeneratorData(null, x * 16, z * 16, 16, 16);
|
||||
this.func_147419_a(x, z, blocks);
|
||||
this.replaceBiomeBlocks(x, z, blocks, metadata, bgb);
|
||||
this.netherCaveGenerator.func_151539_a(this, this.worldObj, x, z, blocks);
|
||||
this.genNetherBridge.func_151539_a(this, this.worldObj, x, z, blocks);
|
||||
Chunk chunk = new Chunk(this.worldObj, blocks, metadata, x, z);
|
||||
short[] biomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
|
||||
for (int i = 0; i < biomes.length; ++i) {
|
||||
biomes[i] = (short) bgb[i].biomeID;
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"),
|
||||
require = 1)
|
||||
private byte[] setBiomesTweaked2(Chunk chunk) {
|
||||
try {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(chunk, bgb);
|
||||
} finally {
|
||||
bgb = null;
|
||||
}
|
||||
|
||||
chunk.resetRelightChecks();
|
||||
return chunk;
|
||||
}
|
||||
}
|
||||
@@ -60,19 +60,16 @@ public enum Mixin implements IMixin {
|
||||
//endregion Minecraft
|
||||
//region AntiIDConflict->common
|
||||
AIDCAntiIdConflictBaseMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT),
|
||||
"antiidconflict.AntiIdConflictBaseMixin"),
|
||||
"antiidconflict.AntiIdConflictBaseMixin"),
|
||||
AIDCBiomesGenBasePlaceholderMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT),
|
||||
"antiidconflict.BiomeGenBasePlaceholderMixin"),
|
||||
AIDCBiomesManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT),
|
||||
"antiidconflict.BiomesManagerMixin"),
|
||||
AIDCBiomesManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT), "antiidconflict.BiomesManagerMixin"),
|
||||
AIDCDimensionsManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT),
|
||||
"antiidconflict.DimensionsManagerMixin"),
|
||||
"antiidconflict.DimensionsManagerMixin"),
|
||||
AIDCEnchantementsManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT),
|
||||
"antiidconflict.EnchantementsManagerMixin"),
|
||||
AIDCEntitiesManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT),
|
||||
"antiidconflict.EntitiesManagerMixin"),
|
||||
AIDCPotionsManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT),
|
||||
"antiidconflict.PotionsManagerMixin"),
|
||||
"antiidconflict.EnchantementsManagerMixin"),
|
||||
AIDCEntitiesManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT), "antiidconflict.EntitiesManagerMixin"),
|
||||
AIDCPotionsManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT), "antiidconflict.PotionsManagerMixin"),
|
||||
//endregion AntiIDConflict->common
|
||||
//region ATG->common
|
||||
ATGBiomeConfigMixin(Side.COMMON, require(TargetedMod.ATG), "atg.ATGBiomeConfigMixin"),
|
||||
@@ -81,7 +78,9 @@ public enum Mixin implements IMixin {
|
||||
ATGWorldGenRocksMixin(Side.COMMON, require(TargetedMod.ATG), "atg.ATGWorldGenRocksMixin"),
|
||||
//endregion ATG->common
|
||||
//region BoP->common
|
||||
BoPBiomeManagerMixin(Side.COMMON, require(TargetedMod.BOP), "bop.BoPBiomeManagerMixin"),
|
||||
BOPBiomeManagerMixin(Side.COMMON, require(TargetedMod.BOP), "bop.BOPBiomeManagerMixin"),
|
||||
ChunkProviderBOPEndMixin(Side.COMMON, require(TargetedMod.BOP), "bop.ChunkProviderBOPEndMixin"),
|
||||
ChunkProviderBOPHellMixin(Side.COMMON, require(TargetedMod.BOP), "bop.ChunkProviderBOPHellMixin"),
|
||||
//endregion BoP->common
|
||||
//region CoFHLib->common
|
||||
CoFHLibCofhBlockHelperMixin(Side.COMMON, require(TargetedMod.COFHLIB), "cofhlib.BlockHelperMixin"),
|
||||
@@ -100,8 +99,7 @@ public enum Mixin implements IMixin {
|
||||
"galacticraft.ConfigManagerCoreMixin"),
|
||||
//endregion GalactiCraftCore->common
|
||||
//region ICG->common
|
||||
ICGMysteriumPatchesFixesCaveMixin(Side.COMMON, require(TargetedMod.ICG),
|
||||
"icg.MysteriumPatchesFixesCaveMixin"),
|
||||
ICGMysteriumPatchesFixesCaveMixin(Side.COMMON, require(TargetedMod.ICG), "icg.MysteriumPatchesFixesCaveMixin"),
|
||||
//endregion ICG->common
|
||||
//region MFQM->common
|
||||
MFQMMixin(Side.COMMON, require(TargetedMod.MFQM), "mfqm.MFQMMixin"),
|
||||
@@ -116,6 +114,14 @@ public enum Mixin implements IMixin {
|
||||
RTGLandscapeGeneratorMixin(Side.COMMON, require(TargetedMod.RTG), "rtg.LandscapeGeneratorMixin"),
|
||||
RTGRealisticBiomeBaseMixin(Side.COMMON, require(TargetedMod.RTG), "rtg.RealisticBiomeBaseMixin"),
|
||||
//endregion RTG->common
|
||||
//region Thaumcraft->common
|
||||
ThaumcraftUtilsMixin(Side.COMMON, require(TargetedMod.THAUMCRAFT), "thaumcraft.UtilsMixin"),
|
||||
//endregion Thaumcraft->common
|
||||
//region TwilightForest->common
|
||||
ChunkProviderTwilightForestMixin(Side.COMMON, require(TargetedMod.TWILIGHTFOREST),
|
||||
"twilightforest.ChunkProviderTwilightForestMixin"),
|
||||
TFBiomeBaseMixin(Side.COMMON, require(TargetedMod.TWILIGHTFOREST), "twilightforest.TFBiomeBaseMixin"),
|
||||
//endregion TwilightForest->common
|
||||
//region UBC->common
|
||||
UBCOreUBifierMixin(Side.COMMON, require(TargetedMod.UBC), "ubc.OreUBifierMixin"),
|
||||
UBCBiomeUndergroundDecoratorMixin(Side.COMMON, require(TargetedMod.UBC), "ubc.BiomeUndergroundDecoratorMixin"),
|
||||
|
||||
@@ -21,6 +21,8 @@ public enum TargetedMod implements ITargetedMod {
|
||||
MFQM("More Fun Quicksand Mod", false, startsWith("morefunquicksandmod-")),
|
||||
NATURESCOMPASS("Nature's Compass", true, startsWith("naturescompass")),
|
||||
RTG("Realistic Terrain Generation", true, startsWith("rtg-")),
|
||||
THAUMCRAFT("Thaumcraft", true, startsWith("thaumcraft")),
|
||||
TWILIGHTFOREST("Twilight Forest", true, startsWith("twilightforest")),
|
||||
UBC("Underground Biomes Constructs", false, startsWith("undergroundbiomesconstructs-")),
|
||||
WORLDEDIT("WorldEdit", false, startsWith("worldedit-")),
|
||||
;
|
||||
|
||||
Reference in new issue
Block a user