mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-24 10:34:29 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c620a87819 | ||
|
|
0a1895370b | ||
|
|
7220faae24 | ||
|
|
36cb1b4b32 | ||
|
|
337a34108d | ||
|
|
49a376b48d | ||
|
|
7a6dd9adaa | ||
|
|
76fdd16906 | ||
|
|
f4623ebf2e | ||
|
|
206c745716 | ||
|
|
ebdfcd21aa | ||
|
|
9637c27159 | ||
|
|
b1ebe33403 |
No files matched your search
Generated
+1
@@ -11,6 +11,7 @@
|
||||
</option>
|
||||
<option name="IMPORT_LAYOUT_TABLE">
|
||||
<value>
|
||||
<package name="" withSubpackages="true" static="false" module="true" />
|
||||
<package name="" withSubpackages="true" static="false" />
|
||||
<emptyLine />
|
||||
<package name="net.minecraft" withSubpackages="true" static="false" />
|
||||
|
||||
@@ -61,6 +61,7 @@ This mod also contains patches for the following mods:
|
||||
- Atum
|
||||
- Biomes O' Plenty
|
||||
- Biome Wand
|
||||
- BlockPhysics
|
||||
- BuildCraft
|
||||
- ChromatiCraft
|
||||
- Climate Control
|
||||
@@ -77,14 +78,17 @@ This mod also contains patches for the following mods:
|
||||
- Extra Planets
|
||||
- Extra Utilities
|
||||
- Factorization
|
||||
- FastCraft
|
||||
- Futurepack
|
||||
- Gadomancy
|
||||
- GalactiCraft
|
||||
- Highlands
|
||||
- Immersive Cavegen
|
||||
- Industrial Revolution by Redstone Rebooted
|
||||
- Just Another Spawner
|
||||
- Matter Overdrive
|
||||
- More Fun Quicksand Mod
|
||||
- Mystcraft
|
||||
- Nature's Compass
|
||||
- Netherlicious
|
||||
- Nomadic Tents
|
||||
@@ -94,6 +98,7 @@ This mod also contains patches for the following mods:
|
||||
- Restructured
|
||||
- Realistic Terrain Generation
|
||||
- Realistic World Generation
|
||||
- Ruins
|
||||
- Thaumcraft
|
||||
- The Lord of the Rings Mod: Legacy
|
||||
- The Mists of RioV
|
||||
|
||||
+19
-4
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id("com.falsepattern.fpgradle-mc") version ("0.17.1")
|
||||
id("com.falsepattern.fpgradle-mc") version ("1.0.0")
|
||||
}
|
||||
|
||||
group = "com.falsepattern"
|
||||
@@ -64,9 +64,9 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
// region Our deps
|
||||
implementationSplit("com.falsepattern:falsepatternlib-mc1.7.10:1.7.0")
|
||||
implementation("it.unimi.dsi:fastutil:8.5.15")
|
||||
implementationSplit("com.falsepattern:chunkapi-mc1.7.10:0.6.3")
|
||||
implementationSplit("com.falsepattern:falsepatternlib-mc1.7.10:1.8.1")
|
||||
compileOnly("it.unimi.dsi:fastutil:8.5.16")
|
||||
implementationSplit("com.falsepattern:chunkapi-mc1.7.10:0.6.4")
|
||||
// endregion
|
||||
|
||||
// region maintained mods
|
||||
@@ -112,6 +112,9 @@ dependencies {
|
||||
//Source: https://spacechase0.com/wp-content/uploads/2014/10/1.7.10-Biome-Wand-1.1.9.jar
|
||||
compileOnly(deobf("mirror:1.7.10-Biome-Wand:1.1.9"))
|
||||
|
||||
//Block Physics 0.9.5
|
||||
compileOnly(deobfCurse("blockphysics-229921:2259034"))
|
||||
|
||||
//Buildcraft 7.1.24
|
||||
compileOnly(deobfCurse("buildcraft-61811:3538651"))
|
||||
|
||||
@@ -156,6 +159,9 @@ dependencies {
|
||||
//Factorization 0.8.109
|
||||
compileOnly(deobfModrinth("factorization:0.8.109"))
|
||||
|
||||
//Fastcraft 1.23
|
||||
compileOnly("curse.maven:fastcraft-242677:2292386")
|
||||
|
||||
//Futurepack v18.7
|
||||
compileOnly(deobfCurse("futurepack-237333:2263966"))
|
||||
|
||||
@@ -175,6 +181,9 @@ dependencies {
|
||||
//Industrial Revolution by Redstone Rebooted 1.1.1
|
||||
compileOnly(deobfCurse("industrialrevolutionbyredstonerebooted-241812:2538035"))
|
||||
|
||||
//Just Another Spawner 0.17.9
|
||||
compileOnly(deobfCurse("justanotherspawner-228952:2380961"))
|
||||
|
||||
//LOTR Mod 36.15
|
||||
compileOnly(deobfCurse("lotrmod-423748:4091561"))
|
||||
|
||||
@@ -184,6 +193,9 @@ dependencies {
|
||||
//More Fun Quicksands Mod 1.0.8.8-fixed
|
||||
compileOnly(deobfCurse("more-fun-quicksand-mod-321960:2717318"))
|
||||
|
||||
//Mystcraft 0.12.3.04
|
||||
compileOnly(deobfCurse("mystcraft-224599:2417042"))
|
||||
|
||||
//Nature's Compass 1.3.1
|
||||
compileOnly(deobfCurse("naturescompass-252848:2451823"))
|
||||
|
||||
@@ -205,6 +217,9 @@ dependencies {
|
||||
//Restructured 1.0.4.2
|
||||
compileOnly(deobfCurse("restructured-230570:2276784"))
|
||||
|
||||
//Ruins (AtomicStryker) 15.4 nbtfix
|
||||
compileOnly(deobf("mirror:Ruins:1.7.10"))
|
||||
|
||||
//TARDIS Mod 0.995
|
||||
compileOnly(deobfCurse("tardismod-230170:2305503"))
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
org.gradle.configuration-cache=true
|
||||
org.gradle.caching=true
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -42,8 +42,8 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
version = Tags.VERSION,
|
||||
name = Tags.MODNAME,
|
||||
acceptedMinecraftVersions = "[1.7.10]",
|
||||
dependencies = "required-after:chunkapi@[0.6.3,);" +
|
||||
"required-after:falsepatternlib@[1.7.0,);" +
|
||||
dependencies = "required-after:chunkapi@[0.6.4,);" +
|
||||
"required-after:falsepatternlib@[1.8.1,);" +
|
||||
"after:antiidconflict")
|
||||
public class EndlessIDs {
|
||||
public static final byte[] ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER = new byte[0];
|
||||
|
||||
@@ -24,6 +24,7 @@ package com.falsepattern.endlessids.asm;
|
||||
|
||||
import com.falsepattern.endlessids.Tags;
|
||||
import com.falsepattern.endlessids.config.GeneralConfig;
|
||||
import com.falsepattern.endlessids.util.ConfigFixUtil;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.val;
|
||||
|
||||
@@ -32,6 +33,7 @@ import net.minecraft.launchwrapper.LaunchClassLoader;
|
||||
import cpw.mods.fml.relauncher.FMLInjectionData;
|
||||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -46,6 +48,17 @@ import static cpw.mods.fml.relauncher.IFMLLoadingPlugin.TransformerExclusions;
|
||||
@DependsOn("falsepatternlib")
|
||||
public class EndlessIDsCore implements IFMLLoadingPlugin {
|
||||
public static boolean deobfuscated;
|
||||
static {
|
||||
if (GeneralConfig.extendBlockItem) {
|
||||
try {
|
||||
if (Launch.classLoader.getClassBytes("fastcraft.Tweaker") != null) {
|
||||
FCCompat.patchConfig();
|
||||
}
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public EndlessIDsCore() {
|
||||
super();
|
||||
try {
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.asm;
|
||||
|
||||
import com.falsepattern.endlessids.util.ConfigFixUtil;
|
||||
|
||||
public class FCCompat {
|
||||
public static void patchConfig() {
|
||||
//Breaks with the blockitem module
|
||||
ConfigFixUtil.fixConfig("fastcraft.ini", (line) -> {
|
||||
if (line.contains("asyncCulling") || line.contains("enableCullingTweaks")) {
|
||||
return line.replace("true", "false");
|
||||
}
|
||||
return line;
|
||||
}, () -> "[extra tweaks]\nasyncCulling = false\n[transparent tweaks]\nenableCullingTweaks=false\n",
|
||||
e -> {
|
||||
System.err.println(
|
||||
"Failed to apply FastCraft occlusion tweak compatibility patches!");
|
||||
e.printStackTrace();
|
||||
});
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.client.blockitem.fastcraft;
|
||||
|
||||
import org.spongepowered.asm.mixin.Dynamic;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
import net.minecraft.client.renderer.EntityRenderer;
|
||||
import net.minecraft.client.renderer.RenderGlobal;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
|
||||
@Mixin(EntityRenderer.class)
|
||||
public class EntityRendererMixin {
|
||||
@Dynamic
|
||||
@Redirect(method = "renderWorld",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lfastcraft/HC;t(Lnet/minecraft/client/renderer/RenderGlobal;Lnet/minecraft/entity/EntityLivingBase;Z)Z",
|
||||
remap = false))
|
||||
private boolean killHook2(RenderGlobal rg, EntityLivingBase entity, boolean doUpdates) {
|
||||
return rg.updateRenderers(entity, doUpdates);
|
||||
}
|
||||
}
|
||||
+14
-14
@@ -22,28 +22,28 @@
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.biome.arocketry;
|
||||
|
||||
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
|
||||
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
import zmaster587.advancedRocketry.AdvancedRocketry;
|
||||
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
import net.minecraftforge.common.config.Property;
|
||||
|
||||
@Mixin(value = AdvancedRocketry.class,
|
||||
remap = false)
|
||||
public abstract class AdvancedRocketryMixin {
|
||||
@ModifyConstant(method = "load",
|
||||
constant = {@Constant(intValue = 110, ordinal = 0),
|
||||
@Constant(intValue = 111, ordinal = 0),
|
||||
@Constant(intValue = 112, ordinal = 0),
|
||||
@Constant(intValue = 113, ordinal = 0),
|
||||
@Constant(intValue = 114, ordinal = 0),
|
||||
@Constant(intValue = 115, ordinal = 0),
|
||||
@Constant(intValue = 116, ordinal = 0),
|
||||
@Constant(intValue = 117, ordinal = 0),
|
||||
@Constant(intValue = 118, ordinal = 0),
|
||||
@Constant(intValue = 119, ordinal = 0)},
|
||||
require = 10)
|
||||
private int shiftBiomeIDsUp(int constant) {
|
||||
return constant + 9000;
|
||||
@WrapOperation(method = "load",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraftforge/common/config/Configuration;get(Ljava/lang/String;Ljava/lang/String;I)Lnet/minecraftforge/common/config/Property;"))
|
||||
private Property shiftBiomeIDsUp(Configuration instance, String category, String key, int defaultValue, Operation<Property> original) {
|
||||
if ("Biomes".equals(category)) {
|
||||
defaultValue += 9000;
|
||||
}
|
||||
return original.call(instance, category, key, defaultValue);
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "preInit",
|
||||
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.biome.jas;
|
||||
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.mixin.helpers.ChunkBiomeHook;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import jas.spawner.legacy.spawner.creature.type.CreatureType;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
@Mixin(CreatureType.class)
|
||||
public class LegacyCreatureTypeMixin {
|
||||
@Shadow(remap = false) @Final public int defaultBiomeCap;
|
||||
|
||||
@Shadow(remap = false) @Final public ImmutableMap<Integer, Integer> biomeCaps;
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Painful to do with normal injects because of control flow
|
||||
*/
|
||||
@Overwrite(remap = false)
|
||||
public int getChunkCap(Chunk chunk) {
|
||||
if (chunk != null && this.defaultBiomeCap > 0) {
|
||||
int chunkCap = 0;
|
||||
int counter = 0;
|
||||
short[] biomeArray = ((ChunkBiomeHook)chunk).getBiomeShortArray();
|
||||
|
||||
for (short value : biomeArray) {
|
||||
int biomeID = value & ExtendedConstants.biomeIDMask;
|
||||
int columnCap = this.biomeCaps.getOrDefault(biomeID, defaultBiomeCap);
|
||||
chunkCap += columnCap;
|
||||
++counter;
|
||||
}
|
||||
|
||||
return counter > 0 ? chunkCap / counter : -1;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.biome.jas;
|
||||
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.mixin.helpers.ChunkBiomeHook;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import jas.spawner.modern.spawner.creature.type.CreatureType;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
@Mixin(CreatureType.class)
|
||||
public class ModernCreatureTypeMixin {
|
||||
@Shadow(remap = false) @Final public int defaultBiomeCap;
|
||||
|
||||
@Shadow(remap = false) @Final public ImmutableMap<Integer, Integer> biomeCaps;
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Painful to do with normal injects because of control flow
|
||||
*/
|
||||
@Overwrite(remap = false)
|
||||
public int getChunkCap(Chunk chunk) {
|
||||
if (chunk != null && this.defaultBiomeCap > 0) {
|
||||
int chunkCap = 0;
|
||||
int counter = 0;
|
||||
short[] biomeArray = ((ChunkBiomeHook)chunk).getBiomeShortArray();
|
||||
|
||||
for (short value : biomeArray) {
|
||||
int biomeID = value & ExtendedConstants.biomeIDMask;
|
||||
int columnCap = this.biomeCaps.getOrDefault(biomeID, defaultBiomeCap);
|
||||
chunkCap += columnCap;
|
||||
++counter;
|
||||
}
|
||||
|
||||
return counter > 0 ? chunkCap / counter : -1;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.biome.mystcraft;
|
||||
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.mixin.helpers.ChunkBiomeHook;
|
||||
import com.xcompwiz.mystcraft.symbol.symbols.SymbolFloatingIslands;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@Mixin(SymbolFloatingIslands.BiomeReplacer.class)
|
||||
public abstract class BiomeReplacerMixin {
|
||||
@Shadow(remap = false) private HashMap<List<Integer>, boolean[]> chunks;
|
||||
|
||||
@Shadow(remap = false) private BiomeGenBase biome;
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Control flow, hard to fix with mixins
|
||||
*/
|
||||
@Overwrite(remap = false)
|
||||
public void finalizeChunk(Chunk chunk, int chunkX, int chunkZ) {
|
||||
boolean[] modified = this.chunks.remove(Arrays.asList(chunkX, chunkZ));
|
||||
if (modified != null) {
|
||||
short[] biomes = ((ChunkBiomeHook)chunk).getBiomeShortArray();
|
||||
|
||||
for(int coords = 0; coords < modified.length; ++coords) {
|
||||
if (modified[coords]) {
|
||||
biomes[coords] = (short)(this.biome.biomeID & ExtendedConstants.biomeIDMask);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.biome.ruins;
|
||||
|
||||
import atomicstryker.ruins.common.FileHandler;
|
||||
import atomicstryker.ruins.common.RuinsMod;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(FileHandler.class)
|
||||
public class FileHandlerMixin {
|
||||
@ModifyConstant(method = "useGeneric",
|
||||
constant = {@Constant(intValue = RuinsMod.BIOME_NONE)},
|
||||
remap = false)
|
||||
private int extendBiomeNone(int constant) {
|
||||
return constant - RuinsMod.BIOME_NONE + ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.biome.ruins;
|
||||
|
||||
import atomicstryker.ruins.common.RuinsMod;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(targets = "atomicstryker.ruins.common.FileHandler$LoaderThread")
|
||||
public abstract class LoaderThreadMixin extends Thread {
|
||||
@ModifyConstant(method = "run",
|
||||
constant = {@Constant(intValue = RuinsMod.BIOME_NONE),
|
||||
@Constant(intValue = RuinsMod.BIOME_NONE + 1)},
|
||||
remap = false)
|
||||
private int extendBiomeNone(int constant) {
|
||||
return constant - RuinsMod.BIOME_NONE + ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.biome.ruins;
|
||||
|
||||
import atomicstryker.ruins.common.RuinGenerator;
|
||||
import atomicstryker.ruins.common.RuinsMod;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(RuinGenerator.class)
|
||||
public abstract class RuinGeneratorMixin {
|
||||
@ModifyConstant(method = "createBuilding",
|
||||
constant = {@Constant(intValue = RuinsMod.BIOME_NONE)},
|
||||
remap = false)
|
||||
private int extendBiomeNone(int constant) {
|
||||
return constant - RuinsMod.BIOME_NONE + ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
@ModifyConstant(method = "printStats",
|
||||
constant = {@Constant(intValue = RuinsMod.BIOME_NONE)},
|
||||
remap = false)
|
||||
private int extendBiomeNone2(int constant) {
|
||||
return constant - RuinsMod.BIOME_NONE + ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -59,7 +59,8 @@ public abstract class BrewActionBiomeChangeMixin {
|
||||
|
||||
@Redirect(method = "changeBiome",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;setBiomeArray([B)V"),
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;setBiomeArray([B)V",
|
||||
remap = true),
|
||||
remap = false,
|
||||
require = 1)
|
||||
private void extendedSetBiomeArray(Chunk instance, byte[] ignored, @Share("biomeArray") LocalRef<short[]> biome) {
|
||||
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.biome.worldedit;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.ChunkBiomeHook;
|
||||
import com.sk89q.worldedit.Vector2D;
|
||||
import com.sk89q.worldedit.forge.ForgeWorld;
|
||||
import com.sk89q.worldedit.world.biome.BaseBiome;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
@Mixin(ForgeWorld.class)
|
||||
public abstract class ForgeWorldMixin {
|
||||
@Shadow(remap = false) public abstract World getWorld();
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason ID Extension
|
||||
*/
|
||||
@Overwrite(remap = false)
|
||||
public boolean setBiome(Vector2D position, BaseBiome biome) {
|
||||
checkNotNull(position);
|
||||
checkNotNull(biome);
|
||||
|
||||
Chunk chunk = getWorld().getChunkFromBlockCoords(position.getBlockX(), position.getBlockZ());
|
||||
if ((chunk != null) && (chunk.isChunkLoaded)) {
|
||||
((ChunkBiomeHook)chunk).getBiomeShortArray()[((position.getBlockZ() & 0xF) << 4 | position.getBlockX() & 0xF)] = (short) biome.getId();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.blockitem.blockphysics;
|
||||
|
||||
import com.bloodnbonesgaming.blockphysics.util.DefinitionMaps;
|
||||
import lombok.val;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
@Mixin(value = DefinitionMaps.class,
|
||||
remap = false)
|
||||
public abstract class DefinitionMapsMixin {
|
||||
|
||||
@Shadow private static HashMap<String, String[]> blockToBlockDefMap;
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Extra null safety and stuff. Hard to do with normal mixins.
|
||||
*/
|
||||
@Overwrite
|
||||
public static String getBlockToBlockDef(String blockName, int meta) {
|
||||
val arr = blockToBlockDefMap.get(blockName);
|
||||
if (arr == null) {
|
||||
return "default";
|
||||
}
|
||||
if (arr.length <= meta) {
|
||||
return "default";
|
||||
}
|
||||
val elem = arr[meta];
|
||||
if (elem == null) {
|
||||
return "default";
|
||||
}
|
||||
return elem;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -31,7 +31,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import net.minecraft.world.chunk.storage.ExtendedBlockStorage;
|
||||
|
||||
@Mixin(ChunkRadiationHandlerPRISM.SubChunk.class)
|
||||
public abstract class ChunkRadiationHandlerPRISM_SubChunkMixin {
|
||||
public abstract class ChunkRadiationHandlerPRISMSubChunkMixin {
|
||||
@Redirect(method = "rebuild",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/storage/ExtendedBlockStorage;getBlockLSBArray()[B"),
|
||||
@@ -26,323 +26,413 @@ import com.falsepattern.endlessids.config.GeneralConfig;
|
||||
import com.falsepattern.lib.mixin.IMixin;
|
||||
import com.falsepattern.lib.mixin.ITargetedMod;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.val;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.ABYSSALCRAFT;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.AM2;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.ANTIIDCONFLICT;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.ANTIQUEATLAS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.ATG;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.BIOMETWEAKER;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.BIOMEWAND;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.BLOCKPHYSICS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.BOP;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.BUILDCRAFT;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.CLIMATECONTROL;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.COFHLIB;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.COMPACTMACHINES;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.DARKWORLD;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.DIMDOORS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.DRAGONAPI;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.EB;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.ENDERLICIOUS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.EREBUS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.EXTENDEDPLANETS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.EXTRAPLANETS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.EXTRAUTILITIES;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.FACTORIZATION;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.FASTCRAFT;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.FUTUREPACK;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.GADOMANCY;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.GALACTICRAFTCORE;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.GALAXYSPACE;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.HBM_NTM;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.HIGHLANDS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.ICG;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.IR3;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.JAS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.LOTR;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.MATTERMEGADRIVE;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.MATTEROVERDRIVE;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.MFQM;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.MYSTCRAFT;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.NATURESCOMPASS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.NETHERLICIOUS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.NOMADICTENTS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.OWG;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.RANDOMTHINGS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.RESTRUCTURED;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.RTG;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.RUINS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.RWG;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.TARDIS;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.THAUMCRAFT;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.THUTCORE;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.TMOR;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.TROPICRAFT;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.TWILIGHTFOREST;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.UBC;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.WITCHERY;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.WORLDEDIT;
|
||||
import static com.falsepattern.lib.mixin.IMixin.PredicateHelpers.avoid;
|
||||
import static com.falsepattern.lib.mixin.IMixin.PredicateHelpers.condition;
|
||||
import static com.falsepattern.lib.mixin.IMixin.PredicateHelpers.require;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public enum Mixin implements IMixin {
|
||||
//region common
|
||||
//region AntiIDConflict
|
||||
AIDCAntiIdConflictBaseMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT), "antiidconflict.AntiIdConflictBaseMixin"),
|
||||
AIDCBiomesGenBasePlaceholderMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT), "antiidconflict.BiomeGenBasePlaceholderMixin"),
|
||||
AIDCBiomesManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT), "antiidconflict.BiomesManagerMixin"),
|
||||
AIDCDimensionsManagerMixin(Side.COMMON, require(TargetedMod.ANTIIDCONFLICT), "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"),
|
||||
//endregion AntiIDConflict
|
||||
//region biome
|
||||
//region vanilla
|
||||
BiomeDictionaryMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome), "biome.vanilla.BiomeDictionaryMixin"),
|
||||
BiomeGenBaseMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome), "biome.vanilla.BiomeGenBaseMixin"),
|
||||
BiomeGenBasePlaceholderMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome && GeneralConfig.biomeConflictAvoidancePlaceholders), "biome.vanilla.BiomeGenBasePlaceholderMixin"),
|
||||
ChunkMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome), "biome.vanilla.ChunkMixin"),
|
||||
GenLayerRiverMixMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(avoid(TargetedMod.DRAGONAPI)), "biome.vanilla.GenLayerRiverMixMixin"),
|
||||
GenLayerVoronoiZoomMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome), "biome.vanilla.GenLayerVoronoiZoomMixin"),
|
||||
//endregion vanilla
|
||||
//region AbyssalCraft
|
||||
AbyssalCraftMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.ABYSSALCRAFT)), "biome.abyssalcraft.AbyssalCraftMixin"),
|
||||
//endregion AbyssalCraft
|
||||
//region AntiqueAtlas
|
||||
BiomeDetectorBaseMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.ANTIQUEATLAS)), "biome.antiqueatlas.BiomeDetectorBaseMixin"),
|
||||
BiomeDetectorNetherMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.ANTIQUEATLAS)), "biome.antiqueatlas.BiomeDetectorNetherMixin"),
|
||||
//endregion AntiqueAtlas
|
||||
//region AdvancedRocketry
|
||||
AdvancedRocketryMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.AROCKETRY)), "biome.arocketry.AdvancedRocketryMixin"),
|
||||
ARocketryChunkProviderSpaceMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.AROCKETRY)), "biome.arocketry.ChunkProviderSpaceMixin"),
|
||||
//endregion AdvancedRocketry
|
||||
//region ATG
|
||||
ATGBiomeConfigMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.ATG)), "biome.atg.ATGBiomeConfigMixin"),
|
||||
ATGBiomeManagerMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.ATG)), "biome.atg.ATGBiomeManagerMixin"),
|
||||
ATGWorldGenRocksMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.ATG)), "biome.atg.ATGWorldGenRocksMixin"),
|
||||
//endregion ATG
|
||||
//region BiomeTweaker
|
||||
BiomeEventHandlerMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.BIOMETWEAKER)), "biome.biometweaker.BiomeEventHandlerMixin"),
|
||||
//endregion BiomeTweaker
|
||||
//region Biome Wand
|
||||
BiomeWandItemMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.BIOMEWAND)), "biome.biomewand.BiomeWandItemMixin"),
|
||||
//endregion Biome Wand
|
||||
//region BoP
|
||||
BOPBiomeManagerMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.BOP)), "biome.bop.BOPBiomeManagerMixin"),
|
||||
BOPBiomesMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.BOP)), "biome.bop.BOPBiomesMixin"),
|
||||
//endregion BoP
|
||||
//region Buildcraft
|
||||
BuildcraftEnergyMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.BUILDCRAFT)), "biome.buildcraft.BuildcraftEnergyMixin"),
|
||||
//endregion Buildcraft
|
||||
//region ClimateControl
|
||||
ClimateControl_api_BiomeSettingsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.api.BiomeSettingsMixin"),
|
||||
ClimateControl_api_ClimateControlRulesMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.api.ClimateControlRulesMixin"),
|
||||
ClimateControl_customGenLayer_ConfirmBiomeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.customGenLayer.ConfirmBiomeMixin"),
|
||||
ClimateControl_customGenLayer_GenLayerBiomeByClimateMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.customGenLayer.GenLayerBiomeByClimateMixin"),
|
||||
ClimateControl_customGenLayer_GenLayerBiomeByTaggedClimateMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.customGenLayer.GenLayerBiomeByTaggedClimateMixin"),
|
||||
ClimateControl_customGenLayer_GenLayerDefineClimateMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.customGenLayer.GenLayerDefineClimateMixin"),
|
||||
ClimateControl_customGenLayer_GenLayerLowlandRiverMixMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.customGenLayer.GenLayerLowlandRiverMixMixin"),
|
||||
ClimateControl_customGenLayer_GenLayerSmoothCoastMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.customGenLayer.GenLayerSmoothCoastMixin"),
|
||||
ClimateControl_customGenLayer_GenLayerSubBiomeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.customGenLayer.GenLayerSubBiomeMixin"),
|
||||
ClimateControl_generator_AbstractWorldGeneratorMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.generator.AbstractWorldGeneratorMixin"),
|
||||
ClimateControl_generator_BiomeSwapperMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.generator.BiomeSwapperMixin"),
|
||||
ClimateControl_generator_SubBiomeChooserMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.generator.SubBiomeChooserMixin"),
|
||||
ClimateControl_genLayerPack_GenLayerHillsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.genLayerPack.GenLayerHillsMixin"),
|
||||
ClimateControl_genLayerPack_GenLayerPackMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.genLayerPack.GenLayerPackMixin"),
|
||||
ClimateControl_genLayerPack_GenLayerSmoothMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.genLayerPack.GenLayerSmoothMixin"),
|
||||
ClimateControl_genLayerPack_GenLayerVoronoiZoomMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.genLayerPack.GenLayerVoronoiZoomMixin"),
|
||||
ClimateControl_genLayerPack_GenLayerZoomMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.CLIMATECONTROL)), "biome.climatecontrol.genLayerPack.GenLayerZoomMixin"),
|
||||
//endregion ClimateControl
|
||||
//region CompactMachines
|
||||
CMCubeToolsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.COMPACTMACHINES)), "biome.compactmachines.CubeToolsMixin"),
|
||||
//endregion CompactMachines
|
||||
//region DarkWorld
|
||||
DarkWorldModBiomesMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.DARKWORLD)), "biome.darkworld.ModBiomesMixin"),
|
||||
//endregion DarkWorld
|
||||
//region DimDoors
|
||||
DDBiomeGenBaseMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.DIMDOORS)), "biome.dimdoors.DDBiomeGenBaseMixin"),
|
||||
//endregion DimDoors
|
||||
//region DragonAPI
|
||||
DragonAPIGenLayerRiverMixVanillaMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.DRAGONAPI)), "biome.dragonapi.vanilla.GenLayerRiverMixMixin"),
|
||||
DragonAPIGenLayerRiverEventMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.DRAGONAPI)), "biome.dragonapi.GenLayerRiverEventMixin"),
|
||||
DragonAPIBiomeIDTypeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.DRAGONAPI)), "biome.dragonapi.IDTypeMixin"),
|
||||
ReikaChunkHelperMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.DRAGONAPI)), "biome.dragonapi.ReikaChunkHelperMixin"),
|
||||
ReikaWorldHelperMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.DRAGONAPI)), "biome.dragonapi.ReikaWorldHelperMixin"),
|
||||
//endregion DragonAPI
|
||||
//region EnhancedBiomes
|
||||
EBBiomeIDsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EB)), "biome.eb.BiomeIDsMixin"),
|
||||
EBGenLayerArchipelagoEdgeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EB)), "biome.eb.GenLayerArchipelagoEdgeMixin"),
|
||||
EBGenLayerEBHillsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EB)), "biome.eb.GenLayerEBHillsMixin"),
|
||||
EBGenLayerEBRiverMixMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EB)), "biome.eb.GenLayerEBRiverMixMixin"),
|
||||
EBGenLayerEBVoronoiZoomMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EB)), "biome.eb.GenLayerEBVoronoiZoomMixin"),
|
||||
//endregion EnhancedBiomes
|
||||
//region Enderlicious
|
||||
EnderliciousBiomeConfigurationMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.ENDERLICIOUS)), "biome.enderlicious.BiomeConfigurationMixin"),
|
||||
EnderliciousEndChunkProviderMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.ENDERLICIOUS)), "biome.enderlicious.EndChunkProviderMixin"),
|
||||
//endregion Enderlicious
|
||||
//region Erebus
|
||||
ErebusModBiomesMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EREBUS)), "biome.erebus.ModBiomesMixin"),
|
||||
//endregion Erebus
|
||||
//region Extended Planets
|
||||
ChunkProviderOceanMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EXTENDEDPLANETS)), "biome.extendedplanets.ChunkProviderOceanMixin"),
|
||||
//endregion
|
||||
//region ExtraPlanets
|
||||
ExtraPlanetsConfigMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EXTRAPLANETS)), "biome.extraplanets.ConfigMixin"),
|
||||
//endregion ExtraPlanets
|
||||
//region ExtraUtilities
|
||||
ChunkProviderEndOfTimeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EXTRAUTILITIES)), "biome.extrautilities.ChunkProviderEndOfTimeMixin"),
|
||||
//endregion ExtraUtilities
|
||||
//region Factorization
|
||||
HammerChunkProviderMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.FACTORIZATION)), "biome.factorization.HammerChunkProviderMixin"),
|
||||
//endregion
|
||||
//region Futurepack
|
||||
FuturepackBiomeGenSpaceMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.FUTUREPACK)), "biome.futurepack.BiomeGenSpaceMixin"),
|
||||
//endregion Futurepack
|
||||
//region Gadomancy
|
||||
ChunkProviderTCOuterMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.GADOMANCY)), "biome.gadomancy.ChunkProviderTCOuterMixin"),
|
||||
//endregion
|
||||
//region GalactiCraftCore
|
||||
GalactiCraftConfigManagerCoreMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.GALACTICRAFTCORE)), "biome.galacticraft.ConfigManagerCoreMixin"),
|
||||
//endregion GalactiCraftCore
|
||||
//region GalaxySpace
|
||||
GSChunkProviderKuiperMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.GALAXYSPACE)), "biome.galaxyspace.ChunkProviderKuiperMixin"),
|
||||
GSChunkProviderMarsSSMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.GALAXYSPACE)), "biome.galaxyspace.ChunkProviderMarsSSMixin"),
|
||||
GSChunkProviderSpaceLakesMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.GALAXYSPACE)), "biome.galaxyspace.ChunkProviderSpaceLakesMixin"),
|
||||
GSChunkProviderVenusSSMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.GALAXYSPACE)), "biome.galaxyspace.ChunkProviderVenusSSMixin"),
|
||||
//endregion GalaxySpace
|
||||
//region Highlands
|
||||
HighlandsConfigMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.HIGHLANDS)), "biome.highlands.ConfigMixin"),
|
||||
//endregion Highlands
|
||||
//region ICG
|
||||
ICGMysteriumPatchesFixesCaveMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.ICG)), "biome.icg.MysteriumPatchesFixesCaveMixin"),
|
||||
//endregion ICG
|
||||
//region Industrial Revolution by Redstone Rebooted
|
||||
IR3IR2Mixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.IR3)), "biome.ir3.IR2Mixin"),
|
||||
//endregion Industrial Revolution by Redstone Rebooted
|
||||
//region LOTR
|
||||
LOTRBiomeVariantStorageMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.LOTR)), "biome.lotr.LOTRBiomeVariantStorageMixin"),
|
||||
LOTRChunkProviderMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.LOTR)), "biome.lotr.LOTRChunkProviderMixin"),
|
||||
LOTRChunkProviderUtumnoMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.LOTR)), "biome.lotr.LOTRChunkProviderUtumnoMixin"),
|
||||
LOTRDimensionMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.LOTR)), "biome.lotr.LOTRDimensionMixin"),
|
||||
LOTRPacketBiomeVariantsWatchHandlerMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.LOTR)), "biome.lotr.LOTRPacketBiomeVariantsWatchHandlerMixin"),
|
||||
LOTRWorldChunkManagerMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.LOTR)), "biome.lotr.LOTRWorldChunkManagerMixin"),
|
||||
LOTRWorldProviderMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.LOTR)), "biome.lotr.LOTRWorldProviderMixin"),
|
||||
//endregion LOTR
|
||||
//region NaturesCompass
|
||||
NaturesCompassBiomeUtilsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.NATURESCOMPASS)), "biome.naturescompass.BiomeUtilsMixin"),
|
||||
//endregion NaturesCompass
|
||||
//region Netherlicious
|
||||
NetherliciousBiomeConfigurationMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.NETHERLICIOUS)), "biome.netherlicious.BiomeConfigurationMixin"),
|
||||
//endregion Netherlicious
|
||||
//region NomadicTents
|
||||
NomadicTentsTentChunkProviderMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.NOMADICTENTS)), "biome.nomadictents.TentChunkProviderMixin"),
|
||||
//endregion NomadicTents
|
||||
//region OWG
|
||||
OWGChunkGeneratorBetaMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.OWG)), "biome.owg.ChunkGeneratorBetaMixin"),
|
||||
//endregion OWG
|
||||
//region RandomThings
|
||||
ItemBiomePainterMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.RANDOMTHINGS)), "biome.randomthings.ItemBiomePainterMixin"),
|
||||
MessagePaintBiomeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.RANDOMTHINGS)), "biome.randomthings.MessagePaintBiomeMixin"),
|
||||
//endregion RandomThings
|
||||
//region Restructured
|
||||
RSBiomeHelperMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.RESTRUCTURED)), "biome.restructured.BiomeHelperMixin"),
|
||||
//endregion Restructured
|
||||
//region RTG
|
||||
RTGChunkProviderRTGMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.RTG)), "biome.rtg.ChunkProviderRTGMixin"),
|
||||
RTGLandscapeGeneratorMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.RTG)), "biome.rtg.LandscapeGeneratorMixin"),
|
||||
RTGWorldChunkManagerRTGMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.RTG)), "biome.rtg.WorldChunkManagerRTGMixin"),
|
||||
//endregion RTG
|
||||
//region RWG
|
||||
RWGChunkGeneratorRealisticMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.RWG)), "biome.rwg.ChunkGeneratorRealisticMixin"),
|
||||
RWGRealisticBiomeBaseMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.RWG)), "biome.rwg.RealisticBiomeBaseMixin"),
|
||||
RWGVillageMaterialsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.RWG)), "biome.rwg.VillageMaterialsMixin"),
|
||||
//endregion RWG
|
||||
//region TARDIS Mod
|
||||
TardisChunkProviderMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.TARDIS)), "biome.tardismod.TardisChunkProviderMixin"),
|
||||
//endregion
|
||||
//region Thaumcraft
|
||||
ThaumcraftUtilsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.THAUMCRAFT)), "biome.thaumcraft.UtilsMixin"),
|
||||
//endregion Thaumcraft
|
||||
//region ThutCore
|
||||
ThutVector3Mixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.THUTCORE)), "biome.thut.Vector3Mixin"),
|
||||
//endregion ThutCore
|
||||
//region The Mists of RioV
|
||||
ChunkProviderSanctuatiteMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.TMOR)), "biome.tmor.ChunkProviderSanctuatiteMixin"),
|
||||
//endregion
|
||||
//region Tropicraft
|
||||
GenLayerTropiVoronoiZoomMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.TROPICRAFT)), "biome.tropicraft.GenLayerTropiVoronoiZoomMixin"),
|
||||
//endregion Tropicraft
|
||||
//region TwilightForest
|
||||
TFBiomeBaseMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.TWILIGHTFOREST)), "biome.twilightforest.TFBiomeBaseMixin"),
|
||||
//endregion TwilightForest
|
||||
//region Witchery
|
||||
WitcheryWorldChunkManagerMirrorMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.WITCHERY)), "biome.witchery.WorldChunkManagerMirrorMixin"),
|
||||
WitcheryBrewActionBiomeChangeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.WITCHERY)), "biome.witchery.BrewActionBiomeChangeMixin"),
|
||||
//endregion Witchery
|
||||
//endregion biome
|
||||
//region blockitem
|
||||
//region vanilla
|
||||
BlockFireMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.BlockFireMixin"),
|
||||
BlockMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.BlockMixin"),
|
||||
ExtendedBlockStorageMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.ExtendedBlockStorageMixin"),
|
||||
ItemInWorldManagerMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.ItemInWorldManagerMixin"),
|
||||
ItemStackMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.ItemStackMixin"),
|
||||
PacketBufferMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.PacketBufferMixin"),
|
||||
S22PacketMultiBlockChangeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.S22PacketMultiBlockChangeMixin"),
|
||||
S24PacketBlockActionMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.S24PacketBlockActionMixin"),
|
||||
StatListMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.StatListMixin"),
|
||||
WorldMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.WorldMixin"),
|
||||
//endregion vanilla
|
||||
//region CoFHLib
|
||||
CoFHLibCofhBlockHelperMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.COFHLIB)), "blockitem.cofhlib.BlockHelperMixin"),
|
||||
//endregion CoFHLib
|
||||
//region DragonAPI
|
||||
DragonAPIBlockPropertiesMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.DRAGONAPI)), "blockitem.dragonapi.BlockPropertiesMixin"),
|
||||
DragonAPIBlockItemIDTypeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.DRAGONAPI)), "blockitem.dragonapi.IDTypeMixin"),
|
||||
//endregion DragonAPI
|
||||
//region HBM's Nuclear Tech Nod
|
||||
NTMChunkRadiationHandlerPRISMMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.HBM_NTM)), "blockitem.ntm.ChunkRadiationHandlerPRISMMixin"),
|
||||
NTMChunkRadiationHandlerPRISM_SubChunkMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.HBM_NTM)), "blockitem.ntm.ChunkRadiationHandlerPRISM_SubChunkMixin"),
|
||||
//endregion HBM's Nuclear Tech Nod
|
||||
//region Matter Overdrive
|
||||
MOInventoryMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.MATTEROVERDRIVE).or(require(TargetedMod.MATTERMEGADRIVE))), "blockitem.matteroverdrive.InventoryMixin"),
|
||||
MOItemPatternMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.MATTEROVERDRIVE).or(require(TargetedMod.MATTERMEGADRIVE))), "blockitem.matteroverdrive.ItemPatternMixin"),
|
||||
//endregion Matter Overdrive
|
||||
//region MFQM
|
||||
MFQMMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.MFQM)), "blockitem.mfqm.MFQMMixin"),
|
||||
//endregion MFQM
|
||||
//region WorldEdit
|
||||
WorldEditBaseBlockMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.WORLDEDIT)), "blockitem.worldedit.BaseBlockMixin"),
|
||||
//endregion WorldEdit
|
||||
//region UBC
|
||||
UBCOreUBifierMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.UBC)), "blockitem.ubc.OreUBifierMixin"),
|
||||
UBCBiomeUndergroundDecoratorMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem).and(require(TargetedMod.UBC)), "blockitem.ubc.BiomeUndergroundDecoratorMixin"),
|
||||
//endregion UBC
|
||||
//endregion blockitem
|
||||
//region datawatcher
|
||||
//region vanilla
|
||||
DataWatcherMixin(Side.COMMON, condition(() -> GeneralConfig.extendDataWatcher), "datawatcher.vanilla.DataWatcherMixin"),
|
||||
//endregion vanilla
|
||||
//region MFQM
|
||||
MFQMDataWatcherMixin(Side.COMMON, condition(() -> GeneralConfig.extendDataWatcher).and(require(TargetedMod.MFQM)), "datawatcher.mfqm.MFQMDataWatcherMixin"),
|
||||
//endregion MFQM
|
||||
//endregion datawatcher
|
||||
//region enchantment
|
||||
//region vanilla
|
||||
EnchantmentMixin(Side.COMMON, condition(() -> GeneralConfig.extendEnchantment), "enchantment.vanilla.EnchantmentMixin"),
|
||||
//endregion vanilla
|
||||
//endregion enchantment
|
||||
//region potion
|
||||
//region vanilla
|
||||
PotionEffectMixin(Side.COMMON, condition(() -> GeneralConfig.extendPotion), "potion.vanilla.PotionEffectMixin"),
|
||||
PotionMixin(Side.COMMON, condition(() -> GeneralConfig.extendPotion), "potion.vanilla.PotionMixin"),
|
||||
S1DPacketEntityEffectMixin(Side.COMMON, condition(() -> GeneralConfig.extendPotion).and(avoid(AM2)), "potion.vanilla.network.S1DPacketEntityEffectMixin"),
|
||||
S1EPacketRemoveEntityEffectMixin(Side.COMMON, condition(() -> GeneralConfig.extendPotion).and(avoid(AM2)), "potion.vanilla.network.S1EPacketRemoveEntityEffectMixin"),
|
||||
//endregion vanilla
|
||||
//region Thaumcraft
|
||||
common_potion_Thaumcraft_ConfigMixin(Side.COMMON, condition(() -> GeneralConfig.extendPotion).and(require(TargetedMod.THAUMCRAFT)), "potion.thaumcraft.ConfigMixin"),
|
||||
//endregion Thaumcraft
|
||||
//endregion potion
|
||||
//region entity
|
||||
//region vanilla
|
||||
EntityListMixin(Side.COMMON, condition(() -> GeneralConfig.extendEntity), "entity.vanilla.EntityListMixin"),
|
||||
EntityRegistryMixin(Side.COMMON, condition(() -> GeneralConfig.extendEntity), "entity.vanilla.EntityRegistryMixin"),
|
||||
S0FPacketSpawnMobMixin(Side.COMMON, condition(() -> GeneralConfig.extendEntity), "entity.vanilla.S0FPacketSpawnMobMixin"),
|
||||
//endregion vanilla
|
||||
//endregion entity
|
||||
//endregion common
|
||||
public class Mixin {
|
||||
private Mixin() {
|
||||
}
|
||||
|
||||
//region client
|
||||
//region biome
|
||||
//region Biome Wand
|
||||
BiomeWandItemClientMixin(Side.CLIENT, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.BIOMEWAND)), "biome.biomewand.BiomeWandItemMixin"),
|
||||
//endregion Biome Wand
|
||||
//endregion biome
|
||||
//region blockitem
|
||||
//region vanilla
|
||||
NetHandlerPlayClientMixinBlockItem(Side.CLIENT, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.NetHandlerPlayClientMixin"),
|
||||
PlayerControllerMPMixin(Side.CLIENT, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.PlayerControllerMPMixin"),
|
||||
RenderGlobalMixin(Side.CLIENT, condition(() -> GeneralConfig.extendBlockItem), "blockitem.vanilla.RenderGlobalMixin"),
|
||||
//endregion vanilla
|
||||
//endregion blockitem
|
||||
//region potion
|
||||
//region vanilla
|
||||
NetHandlerPlayClientMixinPotion(Side.CLIENT, condition(() -> GeneralConfig.extendPotion).and(avoid(AM2)), "potion.vanilla.NetHandlerPlayClientMixin"),
|
||||
//endregion vanilla
|
||||
//endregion potion
|
||||
//endregion client
|
||||
public enum Common implements IMixin {
|
||||
//region antiidconflict
|
||||
antiidconflict_AntiIdConflictBaseMixin(require(ANTIIDCONFLICT)),
|
||||
antiidconflict_BiomeGenBasePlaceholderMixin(require(ANTIIDCONFLICT)),
|
||||
antiidconflict_BiomesManagerMixin(require(ANTIIDCONFLICT)),
|
||||
antiidconflict_DimensionsManagerMixin(require(ANTIIDCONFLICT)),
|
||||
antiidconflict_EnchantementsManagerMixin(require(ANTIIDCONFLICT)),
|
||||
antiidconflict_EntitiesManagerMixin(require(ANTIIDCONFLICT)),
|
||||
antiidconflict_PotionsManagerMixin(require(ANTIIDCONFLICT)),
|
||||
//endregion
|
||||
|
||||
//region redstone
|
||||
//region common
|
||||
BlockCompressedPoweredMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem && GeneralConfig.extendRedstone), "redstone.BlockCompressedPoweredMixin"),
|
||||
BlockRedstoneDiodeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem && GeneralConfig.extendRedstone), "redstone.BlockRedstoneDiodeMixin"),
|
||||
BlockRedstoneTorchMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem && GeneralConfig.extendRedstone), "redstone.BlockRedstoneTorchMixin"),
|
||||
RedstoneWorldMixin(Side.COMMON, condition(() -> GeneralConfig.extendBlockItem && GeneralConfig.extendRedstone), "redstone.WorldMixin"),
|
||||
//endregion common
|
||||
//region client
|
||||
BlockRedstoneWireMixin(Side.CLIENT, condition(() -> GeneralConfig.extendBlockItem && GeneralConfig.extendRedstone), "redstone.BlockRedstoneWireMixin"),
|
||||
RedstoneRenderBlocksMixin(Side.CLIENT, condition(() -> GeneralConfig.extendBlockItem && GeneralConfig.extendRedstone), "redstone.RenderBlocksMixin"),
|
||||
//endregion client
|
||||
//endregion redstone
|
||||
//region biome
|
||||
biome_vanilla_BiomeDictionaryMixin(EXT_BIOME),
|
||||
biome_vanilla_BiomeGenBaseMixin(EXT_BIOME),
|
||||
biome_vanilla_BiomeGenBasePlaceholderMixin(
|
||||
all(EXT_BIOME, () -> GeneralConfig.biomeConflictAvoidancePlaceholders)),
|
||||
biome_vanilla_ChunkMixin(EXT_BIOME),
|
||||
biome_vanilla_GenLayerRiverMixMixin(EXT_BIOME, avoid(DRAGONAPI)),
|
||||
biome_vanilla_GenLayerVoronoiZoomMixin(EXT_BIOME),
|
||||
|
||||
;
|
||||
@Getter
|
||||
private final Side side;
|
||||
@Getter
|
||||
private final Predicate<List<ITargetedMod>> filter;
|
||||
@Getter
|
||||
private final String mixin;
|
||||
biome_abyssalcraft_AbyssalCraftMixin(EXT_BIOME, require(ABYSSALCRAFT)),
|
||||
|
||||
biome_antiqueatlas_BiomeDetectorBaseMixin(EXT_BIOME, require(ANTIQUEATLAS)),
|
||||
biome_antiqueatlas_BiomeDetectorNetherMixin(EXT_BIOME, require(ANTIQUEATLAS)),
|
||||
|
||||
biome_atg_ATGBiomeConfigMixin(EXT_BIOME, require(ATG)),
|
||||
biome_atg_ATGBiomeManagerMixin(EXT_BIOME, require(ATG)),
|
||||
biome_atg_ATGWorldGenRocksMixin(EXT_BIOME, require(ATG)),
|
||||
|
||||
biome_biometweaker_BiomeEventHandlerMixin(EXT_BIOME, require(BIOMETWEAKER)),
|
||||
|
||||
biome_biomewand_BiomeWandItemMixin(EXT_BIOME, require(BIOMEWAND)),
|
||||
|
||||
biome_bop_BOPBiomeManagerMixin(EXT_BIOME, require(BOP)),
|
||||
biome_bop_BOPBiomesMixin(EXT_BIOME, require(BOP)),
|
||||
|
||||
biome_buildcraft_BuildcraftEnergyMixin(EXT_BIOME, require(BUILDCRAFT)),
|
||||
|
||||
biome_climatecontrol_api_BiomeSettingsMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_api_ClimateControlRulesMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_customGenLayer_ConfirmBiomeMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_customGenLayer_GenLayerBiomeByClimateMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_customGenLayer_GenLayerBiomeByTaggedClimateMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_customGenLayer_GenLayerDefineClimateMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_customGenLayer_GenLayerLowlandRiverMixMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_customGenLayer_GenLayerSmoothCoastMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_customGenLayer_GenLayerSubBiomeMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_generator_AbstractWorldGeneratorMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_generator_BiomeSwapperMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_generator_SubBiomeChooserMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_genLayerPack_GenLayerHillsMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_genLayerPack_GenLayerPackMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_genLayerPack_GenLayerSmoothMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_genLayerPack_GenLayerVoronoiZoomMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
biome_climatecontrol_genLayerPack_GenLayerZoomMixin(EXT_BIOME, require(CLIMATECONTROL)),
|
||||
|
||||
biome_compactmachines_CubeToolsMixin(EXT_BIOME, require(COMPACTMACHINES)),
|
||||
|
||||
biome_darkworld_ModBiomesMixin(EXT_BIOME, require(DARKWORLD)),
|
||||
|
||||
biome_dimdoors_DDBiomeGenBaseMixin(EXT_BIOME, require(DIMDOORS)),
|
||||
|
||||
biome_dragonapi_vanilla_GenLayerRiverMixMixin(EXT_BIOME, require(DRAGONAPI)),
|
||||
biome_dragonapi_GenLayerRiverEventMixin(EXT_BIOME, require(DRAGONAPI)),
|
||||
biome_dragonapi_IDTypeMixin(EXT_BIOME, require(DRAGONAPI)),
|
||||
biome_dragonapi_ReikaChunkHelperMixin(EXT_BIOME, require(DRAGONAPI)),
|
||||
biome_dragonapi_ReikaWorldHelperMixin(EXT_BIOME, require(DRAGONAPI)),
|
||||
|
||||
biome_eb_BiomeIDsMixin(EXT_BIOME, require(EB)),
|
||||
biome_eb_GenLayerArchipelagoEdgeMixin(EXT_BIOME, require(EB)),
|
||||
biome_eb_GenLayerEBHillsMixin(EXT_BIOME, require(EB)),
|
||||
biome_eb_GenLayerEBRiverMixMixin(EXT_BIOME, require(EB)),
|
||||
biome_eb_GenLayerEBVoronoiZoomMixin(EXT_BIOME, require(EB)),
|
||||
|
||||
biome_enderlicious_BiomeConfigurationMixin(EXT_BIOME, require(ENDERLICIOUS)),
|
||||
biome_enderlicious_EndChunkProviderMixin(EXT_BIOME, require(ENDERLICIOUS)),
|
||||
|
||||
biome_erebus_ModBiomesMixin(EXT_BIOME, require(EREBUS)),
|
||||
|
||||
biome_extendedplanets_ChunkProviderOceanMixin(EXT_BIOME, require(EXTENDEDPLANETS)),
|
||||
|
||||
biome_extraplanets_ConfigMixin(EXT_BIOME, require(EXTRAPLANETS)),
|
||||
|
||||
biome_extrautilities_ChunkProviderEndOfTimeMixin(EXT_BIOME, require(EXTRAUTILITIES)),
|
||||
|
||||
biome_factorization_HammerChunkProviderMixin(EXT_BIOME, require(FACTORIZATION)),
|
||||
|
||||
biome_futurepack_BiomeGenSpaceMixin(EXT_BIOME, require(FUTUREPACK)),
|
||||
|
||||
biome_gadomancy_ChunkProviderTCOuterMixin(EXT_BIOME, require(GADOMANCY)),
|
||||
|
||||
biome_galacticraft_ConfigManagerCoreMixin(EXT_BIOME, require(GALACTICRAFTCORE)),
|
||||
|
||||
biome_galaxyspace_ChunkProviderKuiperMixin(EXT_BIOME, require(GALAXYSPACE)),
|
||||
biome_galaxyspace_ChunkProviderMarsSSMixin(EXT_BIOME, require(GALAXYSPACE)),
|
||||
biome_galaxyspace_ChunkProviderSpaceLakesMixin(EXT_BIOME, require(GALAXYSPACE)),
|
||||
biome_galaxyspace_ChunkProviderVenusSSMixin(EXT_BIOME, require(GALAXYSPACE)),
|
||||
|
||||
biome_highlands_ConfigMixin(EXT_BIOME, require(HIGHLANDS)),
|
||||
|
||||
biome_icg_MysteriumPatchesFixesCaveMixin(EXT_BIOME, require(ICG)),
|
||||
|
||||
biome_ir3_IR2Mixin(EXT_BIOME, require(IR3)),
|
||||
|
||||
biome_jas_LegacyCreatureTypeMixin(EXT_BIOME, require(JAS)),
|
||||
biome_jas_ModernCreatureTypeMixin(EXT_BIOME, require(JAS)),
|
||||
|
||||
biome_lotr_LOTRBiomeVariantStorageMixin(EXT_BIOME, require(LOTR)),
|
||||
biome_lotr_LOTRChunkProviderMixin(EXT_BIOME, require(LOTR)),
|
||||
biome_lotr_LOTRChunkProviderUtumnoMixin(EXT_BIOME, require(LOTR)),
|
||||
biome_lotr_LOTRDimensionMixin(EXT_BIOME, require(LOTR)),
|
||||
biome_lotr_LOTRPacketBiomeVariantsWatchHandlerMixin(EXT_BIOME, require(LOTR)),
|
||||
biome_lotr_LOTRWorldChunkManagerMixin(EXT_BIOME, require(LOTR)),
|
||||
biome_lotr_LOTRWorldProviderMixin(EXT_BIOME, require(LOTR)),
|
||||
|
||||
biome_mystcraft_BiomeReplacerMixin(EXT_BIOME, require(MYSTCRAFT)),
|
||||
|
||||
biome_naturescompass_BiomeUtilsMixin(EXT_BIOME, require(NATURESCOMPASS)),
|
||||
|
||||
biome_netherlicious_BiomeConfigurationMixin(EXT_BIOME, require(NETHERLICIOUS)),
|
||||
|
||||
biome_nomadictents_TentChunkProviderMixin(EXT_BIOME, require(NOMADICTENTS)),
|
||||
|
||||
biome_owg_ChunkGeneratorBetaMixin(EXT_BIOME, require(OWG)),
|
||||
|
||||
biome_randomthings_ItemBiomePainterMixin(EXT_BIOME, require(RANDOMTHINGS)),
|
||||
biome_randomthings_MessagePaintBiomeMixin(EXT_BIOME, require(RANDOMTHINGS)),
|
||||
|
||||
biome_restructured_BiomeHelperMixin(EXT_BIOME, require(RESTRUCTURED)),
|
||||
biome_rtg_ChunkProviderRTGMixin(EXT_BIOME, require(RTG)),
|
||||
biome_rtg_LandscapeGeneratorMixin(EXT_BIOME, require(RTG)),
|
||||
biome_rtg_WorldChunkManagerRTGMixin(EXT_BIOME, require(RTG)),
|
||||
|
||||
biome_ruins_FileHandlerMixin(EXT_BIOME, require(RUINS)),
|
||||
biome_ruins_LoaderThreadMixin(EXT_BIOME, require(RUINS)),
|
||||
biome_ruins_RuinGeneratorMixin(EXT_BIOME, require(RUINS)),
|
||||
|
||||
biome_rwg_ChunkGeneratorRealisticMixin(EXT_BIOME, require(RWG)),
|
||||
biome_rwg_RealisticBiomeBaseMixin(EXT_BIOME, require(RWG)),
|
||||
biome_rwg_VillageMaterialsMixin(EXT_BIOME, require(RWG)),
|
||||
|
||||
biome_tardismod_TardisChunkProviderMixin(EXT_BIOME, require(TARDIS)),
|
||||
|
||||
biome_thaumcraft_UtilsMixin(EXT_BIOME, require(THAUMCRAFT)),
|
||||
|
||||
biome_thut_Vector3Mixin(EXT_BIOME, require(THUTCORE)),
|
||||
|
||||
biome_tmor_ChunkProviderSanctuatiteMixin(EXT_BIOME, require(TMOR)),
|
||||
|
||||
biome_tropicraft_GenLayerTropiVoronoiZoomMixin(EXT_BIOME, require(TROPICRAFT)),
|
||||
|
||||
biome_twilightforest_TFBiomeBaseMixin(EXT_BIOME, require(TWILIGHTFOREST)),
|
||||
|
||||
biome_witchery_WorldChunkManagerMirrorMixin(EXT_BIOME, require(WITCHERY)),
|
||||
biome_witchery_BrewActionBiomeChangeMixin(EXT_BIOME, require(WITCHERY)),
|
||||
|
||||
biome_worldedit_ForgeWorldMixin(EXT_BIOME, require(WORLDEDIT)),
|
||||
//endregion
|
||||
|
||||
//region blockitem
|
||||
blockitem_vanilla_BlockFireMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_BlockMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_ExtendedBlockStorageMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_ItemInWorldManagerMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_ItemStackMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_PacketBufferMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_S22PacketMultiBlockChangeMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_S24PacketBlockActionMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_StatListMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_WorldMixin(EXT_BLOCK_ITEM),
|
||||
|
||||
blockitem_blockphysics_DefinitionMapsMixin(EXT_BLOCK_ITEM, require(BLOCKPHYSICS)),
|
||||
|
||||
blockitem_cofhlib_BlockHelperMixin(EXT_BLOCK_ITEM, require(COFHLIB)),
|
||||
|
||||
blockitem_dragonapi_BlockPropertiesMixin(EXT_BLOCK_ITEM, require(DRAGONAPI)),
|
||||
blockitem_dragonapi_IDTypeMixin(EXT_BLOCK_ITEM, require(DRAGONAPI)),
|
||||
|
||||
blockitem_ntm_ChunkRadiationHandlerPRISMMixin(EXT_BLOCK_ITEM, require(HBM_NTM)),
|
||||
blockitem_ntm_ChunkRadiationHandlerPRISMSubChunkMixin(EXT_BLOCK_ITEM, require(HBM_NTM)),
|
||||
|
||||
blockitem_matteroverdrive_InventoryMixin(EXT_BLOCK_ITEM, require(MATTEROVERDRIVE).or(require(MATTERMEGADRIVE))),
|
||||
blockitem_matteroverdrive_ItemPatternMixin(EXT_BLOCK_ITEM,
|
||||
require(MATTEROVERDRIVE).or(require(MATTERMEGADRIVE))),
|
||||
|
||||
blockitem_mfqm_MFQMMixin(EXT_BLOCK_ITEM, require(MFQM)),
|
||||
|
||||
blockitem_worldedit_BaseBlockMixin(EXT_BLOCK_ITEM, require(WORLDEDIT)),
|
||||
|
||||
blockitem_ubc_OreUBifierMixin(EXT_BLOCK_ITEM, require(UBC)),
|
||||
blockitem_ubc_BiomeUndergroundDecoratorMixin(EXT_BLOCK_ITEM, require(UBC)),
|
||||
//endregion
|
||||
|
||||
//region datawatcher
|
||||
datawatcher_vanilla_DataWatcherMixin(EXT_DATA_WATCHER),
|
||||
|
||||
datawatcher_mfqm_MFQMDataWatcherMixin(EXT_DATA_WATCHER, require(MFQM)),
|
||||
//endregion
|
||||
|
||||
//region enchantment
|
||||
enchantment_vanilla_EnchantmentMixin(EXT_ENCHANTMENT),
|
||||
//endregion
|
||||
|
||||
//region entity
|
||||
entity_vanilla_EntityListMixin(EXT_ENTITY),
|
||||
entity_vanilla_EntityRegistryMixin(EXT_ENTITY),
|
||||
entity_vanilla_S0FPacketSpawnMobMixin(EXT_ENTITY),
|
||||
//endregion
|
||||
|
||||
//region potion
|
||||
potion_vanilla_PotionEffectMixin(EXT_POTION),
|
||||
potion_vanilla_PotionMixin(EXT_POTION),
|
||||
potion_vanilla_network_S1DPacketEntityEffectMixin(EXT_POTION, avoid(AM2)),
|
||||
potion_vanilla_network_S1EPacketRemoveEntityEffectMixin(EXT_POTION, avoid(AM2)),
|
||||
|
||||
potion_thaumcraft_ConfigMixin(EXT_POTION, require(THAUMCRAFT)),
|
||||
//endregion
|
||||
|
||||
//region redstone
|
||||
redstone_BlockCompressedPoweredMixin(all(EXT_BLOCK_ITEM, EXT_REDSTONE)),
|
||||
redstone_BlockRedstoneDiodeMixin(all(EXT_BLOCK_ITEM, EXT_REDSTONE)),
|
||||
redstone_BlockRedstoneTorchMixin(all(EXT_BLOCK_ITEM, EXT_REDSTONE)),
|
||||
redstone_WorldMixin(all(EXT_BLOCK_ITEM, EXT_REDSTONE)),
|
||||
//endregion
|
||||
;
|
||||
|
||||
//region boilerplate
|
||||
@Getter
|
||||
private final Predicate<List<ITargetedMod>> filter;
|
||||
@Getter
|
||||
private final String mixin;
|
||||
|
||||
Common(Predicate<List<ITargetedMod>> predicate) {
|
||||
filter = predicate;
|
||||
mixin = buildMixin(name());
|
||||
}
|
||||
|
||||
Common(Supplier<Boolean> condition) {
|
||||
filter = buildPredicate(condition);
|
||||
mixin = buildMixin(name());
|
||||
}
|
||||
|
||||
Common(Supplier<Boolean> condition, Predicate<List<ITargetedMod>> predicate) {
|
||||
filter = buildPredicate(condition).and(predicate);
|
||||
mixin = buildMixin(name());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Side getSide() {
|
||||
return Side.COMMON;
|
||||
}
|
||||
//endregion
|
||||
}
|
||||
|
||||
public enum Client implements IMixin {
|
||||
//region biome
|
||||
biome_biomewand_BiomeWandItemMixin(EXT_BIOME, require(BIOMEWAND)),
|
||||
//endregion
|
||||
|
||||
//region blockitem
|
||||
blockitem_vanilla_NetHandlerPlayClientMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_PlayerControllerMPMixin(EXT_BLOCK_ITEM),
|
||||
blockitem_vanilla_RenderGlobalMixin(EXT_BLOCK_ITEM),
|
||||
|
||||
blockitem_fastcraft_EntityRendererMixin(EXT_BLOCK_ITEM, require(FASTCRAFT)),
|
||||
//endregion
|
||||
|
||||
//region potion
|
||||
potion_vanilla_NetHandlerPlayClientMixin(EXT_POTION, avoid(AM2)),
|
||||
//endregion
|
||||
|
||||
//region redstone
|
||||
redstone_BlockRedstoneWireMixin(all(EXT_BLOCK_ITEM, EXT_REDSTONE)),
|
||||
redstone_RenderBlocksMixin(all(EXT_BLOCK_ITEM, EXT_REDSTONE)),
|
||||
//endregion
|
||||
;
|
||||
|
||||
//region boilerplate
|
||||
@Getter
|
||||
private final Predicate<List<ITargetedMod>> filter;
|
||||
@Getter
|
||||
private final String mixin;
|
||||
|
||||
Client(Supplier<Boolean> condition) {
|
||||
filter = buildPredicate(condition);
|
||||
mixin = buildMixin(name());
|
||||
}
|
||||
|
||||
Client(Supplier<Boolean> condition, Predicate<List<ITargetedMod>> predicate) {
|
||||
filter = buildPredicate(condition).and(predicate);
|
||||
mixin = buildMixin(name());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Side getSide() {
|
||||
return Side.CLIENT;
|
||||
}
|
||||
//endregion
|
||||
}
|
||||
|
||||
public static IMixin[] values() {
|
||||
val common = Common.values();
|
||||
val client = Client.values();
|
||||
val result = new IMixin[common.length + client.length];
|
||||
System.arraycopy(common, 0, result, 0, common.length);
|
||||
System.arraycopy(client, 0, result, common.length, client.length);
|
||||
return result;
|
||||
}
|
||||
|
||||
//region boilerplate
|
||||
private static Predicate<List<ITargetedMod>> buildPredicate(Supplier<Boolean> condition) {
|
||||
return condition(condition);
|
||||
}
|
||||
|
||||
private static String buildMixin(String name) {
|
||||
return name.replace('_', '.');
|
||||
}
|
||||
|
||||
private static final Supplier<Boolean> EXT_BIOME = () -> GeneralConfig.extendBiome;
|
||||
private static final Supplier<Boolean> EXT_BLOCK_ITEM = () -> GeneralConfig.extendBlockItem;
|
||||
private static final Supplier<Boolean> EXT_DATA_WATCHER = () -> GeneralConfig.extendDataWatcher;
|
||||
private static final Supplier<Boolean> EXT_ENCHANTMENT = () -> GeneralConfig.extendEnchantment;
|
||||
private static final Supplier<Boolean> EXT_POTION = () -> GeneralConfig.extendPotion;
|
||||
private static final Supplier<Boolean> EXT_ENTITY = () -> GeneralConfig.extendEntity;
|
||||
private static final Supplier<Boolean> EXT_REDSTONE = () -> GeneralConfig.extendRedstone;
|
||||
|
||||
@SafeVarargs
|
||||
private static Supplier<Boolean> all(Supplier<Boolean>... conds) {
|
||||
return () -> {
|
||||
for (Supplier<Boolean> cond : conds) {
|
||||
if (!cond.get()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
}
|
||||
//endregion
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ public enum TargetedMod implements ITargetedMod {
|
||||
AM2("Ars Magica 2", false, contains("am2").or(contains("arsmagica2"))),
|
||||
ANTIQUEATLAS("Antique Atlas", false, contains("antiqueatlas")),
|
||||
ANTIIDCONFLICT("Anti ID Conflict", false, contains("antiidconflict")),
|
||||
BLOCKPHYSICS("Block Physics", false, contains("blockphysics-")),
|
||||
BOP("Biomes O' Plenty", false, contains("biomesoplenty-")),
|
||||
BIOMETWEAKER("Biome Tweaker", false, contains("biometweaker-")),
|
||||
BIOMEWAND("Biome Wand", false, contains("biome-wand")),
|
||||
@@ -55,6 +56,7 @@ public enum TargetedMod implements ITargetedMod {
|
||||
EXTRAPLANETS("Extra Planets", false, contains("extraplanets-")),
|
||||
EXTRAUTILITIES("Extra Utilities", false, contains("extrautilities-")),
|
||||
FACTORIZATION("Factorization", false, contains("factorization-")),
|
||||
FASTCRAFT("Fastcraft", false, contains("fastcraft-")),
|
||||
FUTUREPACK("Futurepack", false, contains("futurepack")),
|
||||
GADOMANCY("Gadomancy", false, contains("gadomancy-")),
|
||||
GALACTICRAFTCORE("GalactiCraftCore", false, contains("galacticraftcore")),
|
||||
@@ -63,15 +65,18 @@ public enum TargetedMod implements ITargetedMod {
|
||||
HIGHLANDS("Highlands", false, contains("highlands")),
|
||||
ICG("Immersive Cavegen", false, contains("immersivecavegen")),
|
||||
IR3("Industrial Revolution by Redstone Rebooted", false, contains("industrialrevolutionbyredstonerebooted-")),
|
||||
JAS("Just Another Spawner", false, contains("justanotherspawner-")),
|
||||
LOTR("LOTR Mod", false, contains("lotrmod")),
|
||||
MATTEROVERDRIVE("Matter Overdrive", false, contains("matteroverdrive-")),
|
||||
MATTERMEGADRIVE("Matter Megadrive", false, contains("mattermegadrive-")),
|
||||
MYSTCRAFT("Mystcraft", false, contains("mystcraft-")),
|
||||
MFQM("More Fun Quicksand Mod", false, contains("morefunquicksandmod-")),
|
||||
NATURESCOMPASS("Nature's Compass", false, contains("naturescompass")),
|
||||
NETHERLICIOUS("Netherlicious", false, contains("netherlicious-")),
|
||||
NOMADICTENTS("Nomadic Tents", false, contains("nomadictents")),
|
||||
OWG("Nostalgic world generation", false, contains("owg-").or(contains("nostalgiagenerator-"))),
|
||||
RANDOMTHINGS("Random Things", false, contains("randomthings-")),
|
||||
RUINS("Ruins", false, contains("ruins-")),
|
||||
RESTRUCTURED("Restructured", false, contains("restructured-")),
|
||||
RTG("Realistic Terrain Generation", false, contains("rtg-")),
|
||||
RWG("Realistic World Gen", false, contains("rwg-")),
|
||||
@@ -92,4 +97,10 @@ public enum TargetedMod implements ITargetedMod {
|
||||
private final boolean loadInDevelopment;
|
||||
@Getter
|
||||
private final Predicate<String> condition;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return modName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the word "MEGA"
|
||||
* shall be included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, only version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.falsepattern.endlessids.util;
|
||||
|
||||
import com.falsepattern.lib.util.FileUtil;
|
||||
import lombok.val;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class ConfigFixUtil {
|
||||
public static void fixConfig(String configFile, Function<String, String> lineTransformer, Supplier<String> generator, Consumer<IOException> exceptionHandler) {
|
||||
val targetPath = FileUtil.getMinecraftHomePath().resolve("config").resolve(configFile);
|
||||
if (!Files.exists(targetPath)) {
|
||||
val genned = generator.get();
|
||||
if (genned == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
Files.write(targetPath, genned.getBytes(StandardCharsets.UTF_8));
|
||||
} catch (IOException e) {
|
||||
exceptionHandler.accept(e);
|
||||
}
|
||||
return;
|
||||
}
|
||||
try {
|
||||
val fileText = Files.readAllLines(targetPath);
|
||||
val result = fileText.stream().map(lineTransformer).collect(Collectors.toList());
|
||||
Files.write(targetPath, result);
|
||||
} catch (IOException e) {
|
||||
exceptionHandler.accept(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
"dependencies": {
|
||||
"always": {
|
||||
"common": [
|
||||
"it.unimi.dsi:fastutil:8.5.15"
|
||||
"it.unimi.dsi:fastutil:8.5.16"
|
||||
],
|
||||
"client": [],
|
||||
"server": []
|
||||
|
||||
Reference in new issue
Block a user