mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-24 10:34:29 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8e5fb162d | ||
|
|
6b31762c17 | ||
|
|
cb302ea1fa | ||
|
|
860f2fb467 | ||
|
|
f673dba88b | ||
|
|
e74df49271 | ||
|
|
a43f85b18c | ||
|
|
986a614028 | ||
|
|
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
|
||||
|
||||
+22
-5
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id("com.falsepattern.fpgradle-mc") version ("0.17.1")
|
||||
id("com.falsepattern.fpgradle-mc") version ("2.1.0")
|
||||
}
|
||||
|
||||
group = "com.falsepattern"
|
||||
@@ -13,7 +13,6 @@ minecraft_fp {
|
||||
|
||||
mixin {
|
||||
pkg = "mixin.mixins"
|
||||
pluginClass = "mixin.plugin.MixinPlugin"
|
||||
}
|
||||
|
||||
core {
|
||||
@@ -64,9 +63,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.9.0")
|
||||
compileOnly("it.unimi.dsi:fastutil:8.5.16")
|
||||
implementationSplit("com.falsepattern:chunkapi-mc1.7.10:0.6.4")
|
||||
// endregion
|
||||
|
||||
// region maintained mods
|
||||
@@ -80,6 +79,9 @@ dependencies {
|
||||
//Hbm's Nuclear Tech Mod 1.0.27X5188
|
||||
compileOnly(deobfCurse("hbm-ntm-235439:6017897"))
|
||||
|
||||
//Salis Arcana 2.3.0
|
||||
compileOnly(deobfCurse("salis-arcana-1162488:7016994"))
|
||||
|
||||
// endregion
|
||||
|
||||
// region unmaintained mods
|
||||
@@ -112,6 +114,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 +161,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 +183,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 +195,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 +219,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
|
||||
Vendored
BIN
Binary file not shown.
+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-9.1.0-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright © 2015-2021 the original authors.
|
||||
# Copyright © 2015 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -114,7 +114,6 @@ case "$( uname )" in #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH="\\\"\\\""
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
@@ -172,7 +171,6 @@ fi
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
@@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||
"$@"
|
||||
|
||||
|
||||
Vendored
+1
-2
@@ -70,11 +70,10 @@ goto fail
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id("org.gradle.toolchains.foojay-resolver-convention") version("0.9.0")
|
||||
id("org.gradle.toolchains.foojay-resolver-convention") version("1.0.0")
|
||||
}
|
||||
|
||||
rootProject.name = "EndlessIDs"
|
||||
@@ -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.9.0,);" +
|
||||
"after:antiidconflict")
|
||||
public class EndlessIDs {
|
||||
public static final byte[] ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER = new byte[0];
|
||||
|
||||
@@ -24,6 +24,9 @@ package com.falsepattern.endlessids.asm;
|
||||
|
||||
import com.falsepattern.endlessids.Tags;
|
||||
import com.falsepattern.endlessids.config.GeneralConfig;
|
||||
import com.falsepattern.endlessids.mixin.plugin.Mixin;
|
||||
import com.gtnewhorizon.gtnhmixins.IEarlyMixinLoader;
|
||||
import com.gtnewhorizon.gtnhmixins.builders.IMixins;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.val;
|
||||
|
||||
@@ -32,6 +35,7 @@ import net.minecraft.launchwrapper.LaunchClassLoader;
|
||||
import cpw.mods.fml.relauncher.FMLInjectionData;
|
||||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -44,8 +48,19 @@ import static cpw.mods.fml.relauncher.IFMLLoadingPlugin.TransformerExclusions;
|
||||
@Name(Tags.MODID + "_core")
|
||||
@TransformerExclusions({"com.falsepattern.endlessids.asm", "com.falsepattern.endlessids.config.GeneralConfig"})
|
||||
@DependsOn("falsepatternlib")
|
||||
public class EndlessIDsCore implements IFMLLoadingPlugin {
|
||||
public class EndlessIDsCore implements IFMLLoadingPlugin, IEarlyMixinLoader {
|
||||
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 {
|
||||
@@ -112,4 +127,14 @@ public class EndlessIDsCore implements IFMLLoadingPlugin {
|
||||
public String getAccessTransformerClass() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMixinConfig() {
|
||||
return "mixins.endlessids.early.json";
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getMixins(Set<String> loadedCoreMods) {
|
||||
return IMixins.getEarlyMixins(Mixin.class, loadedCoreMods);
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.helpers;
|
||||
|
||||
import java.util.BitSet;
|
||||
|
||||
public interface EntityRegistryAccessor {
|
||||
BitSet eids$availableIndicies();
|
||||
}
|
||||
+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);
|
||||
}
|
||||
}
|
||||
-73
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the words "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.vanilla;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.multiplayer.WorldClient;
|
||||
import net.minecraft.client.network.NetHandlerPlayClient;
|
||||
import net.minecraft.network.play.server.S22PacketMultiBlockChange;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Mixin(NetHandlerPlayClient.class)
|
||||
public abstract class NetHandlerPlayClientMixin {
|
||||
@Shadow
|
||||
private WorldClient clientWorldController;
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Ported code, TODO figure out a proper mixin for this (difficult)
|
||||
*/
|
||||
@Overwrite
|
||||
public void handleMultiBlockChange(S22PacketMultiBlockChange packetIn) {
|
||||
int chunkX = packetIn.func_148920_c().chunkXPos * 16;
|
||||
int chunkZ = packetIn.func_148920_c().chunkZPos * 16;
|
||||
if (packetIn.func_148921_d() != null) {
|
||||
DataInputStream dataInput = new DataInputStream(new ByteArrayInputStream(packetIn.func_148921_d()));
|
||||
|
||||
try {
|
||||
for (int var5 = 0; var5 < packetIn.func_148922_e(); ++var5) {
|
||||
short pos = dataInput.readShort();
|
||||
short idLSB = dataInput.readShort();
|
||||
byte idMSB = dataInput.readByte();
|
||||
int id = (idLSB & 0xFFFF) | ((idMSB & 0xFF) << 16);
|
||||
int meta = dataInput.readShort() & 0xFFFF;
|
||||
int x = pos >> 12 & 15;
|
||||
int z = pos >> 8 & 15;
|
||||
int y = pos & 255;
|
||||
this.clientWorldController.func_147492_c(x + chunkX, y, z + chunkZ, Block.getBlockById(id), meta);
|
||||
}
|
||||
} catch (IOException ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+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"),
|
||||
+28
-1
@@ -24,18 +24,35 @@ package com.falsepattern.endlessids.mixin.mixins.common.entity.vanilla;
|
||||
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import com.falsepattern.endlessids.mixin.helpers.EntityRegistryAccessor;
|
||||
import com.falsepattern.endlessids.util.RemappingEntityIDMap;
|
||||
import lombok.val;
|
||||
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.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityList;
|
||||
import cpw.mods.fml.common.registry.EntityRegistry;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Mixin(EntityList.class)
|
||||
public abstract class EntityListMixin {
|
||||
@Shadow
|
||||
public static Map<Integer, Class<? extends Entity>> IDtoClassMapping;
|
||||
|
||||
@Inject(method = "<clinit>",
|
||||
at = @At(value = "RETURN"),
|
||||
require = 1)
|
||||
private static void hijackMap(CallbackInfo ci) {
|
||||
IDtoClassMapping = new RemappingEntityIDMap(IDtoClassMapping);
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "addMapping(Ljava/lang/Class;Ljava/lang/String;I)V",
|
||||
constant = @Constant(intValue = VanillaConstants.maxEntityID),
|
||||
@@ -43,4 +60,14 @@ public abstract class EntityListMixin {
|
||||
private static int extendRange(int constant) {
|
||||
return ExtendedConstants.maxEntityID;
|
||||
}
|
||||
|
||||
@Inject(method = "addMapping(Ljava/lang/Class;Ljava/lang/String;I)V",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Ljava/util/Map;put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;",
|
||||
ordinal = 0),
|
||||
require = 1)
|
||||
private static void updateForgeIDMap(Class<? extends Entity> entityClass, String entityName, int id, CallbackInfo ci) {
|
||||
val availableIndicies = ((EntityRegistryAccessor) EntityRegistry.instance()).eids$availableIndicies();
|
||||
availableIndicies.clear(id);
|
||||
}
|
||||
}
|
||||
+13
-1
@@ -24,6 +24,8 @@ package com.falsepattern.endlessids.mixin.mixins.common.entity.vanilla;
|
||||
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import com.falsepattern.endlessids.mixin.helpers.EntityRegistryAccessor;
|
||||
import lombok.val;
|
||||
import org.apache.logging.log4j.Level;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
@@ -31,6 +33,7 @@ import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
import net.minecraft.entity.EntityList;
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.EntityRegistry;
|
||||
@@ -39,9 +42,14 @@ import java.util.BitSet;
|
||||
|
||||
@Mixin(value = EntityRegistry.class,
|
||||
remap = false)
|
||||
public abstract class EntityRegistryMixin {
|
||||
public abstract class EntityRegistryMixin implements EntityRegistryAccessor {
|
||||
@Shadow private BitSet availableIndicies;
|
||||
|
||||
@Override
|
||||
public BitSet eids$availableIndicies() {
|
||||
return availableIndicies;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "<init>",
|
||||
constant = @Constant(intValue = VanillaConstants.entityIDCount),
|
||||
require = 1)
|
||||
@@ -62,6 +70,10 @@ public abstract class EntityRegistryMixin {
|
||||
*/
|
||||
@Overwrite
|
||||
private int validateAndClaimId(int id) {
|
||||
//Refresh available indices
|
||||
for (val key: EntityList.IDtoClassMapping.keySet()) {
|
||||
availableIndicies.clear(key);
|
||||
}
|
||||
//Keeping the legacy sub-0 id workaround here...
|
||||
|
||||
// workaround for broken ML
|
||||
|
||||
+5
@@ -48,7 +48,12 @@ public abstract class PotionEffectMixin {
|
||||
recovery:
|
||||
if (id != p_i1576_1_ && Potion.potionTypes[id] == null) {
|
||||
//Maybe vanilla code?
|
||||
val realId = id;
|
||||
id = id & 0xFF;
|
||||
if (Potion.potionTypes[id] == null) {
|
||||
//Nope
|
||||
id = realId;
|
||||
}
|
||||
}
|
||||
if (Potion.potionTypes[id] == null) {
|
||||
EndlessIDs.LOG.error("Encountered invalid potion ID: {}. See the following stacktrace for more info.", p_i1576_1_);
|
||||
|
||||
+14
-21
@@ -4,7 +4,7 @@
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the words "MEGA"
|
||||
* 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
|
||||
@@ -22,31 +22,24 @@
|
||||
|
||||
package com.falsepattern.endlessids.mixin.plugin;
|
||||
|
||||
import com.falsepattern.endlessids.Tags;
|
||||
import com.falsepattern.lib.mixin.IMixin;
|
||||
import com.falsepattern.lib.mixin.IMixinPlugin;
|
||||
import com.falsepattern.lib.mixin.ITargetedMod;
|
||||
import lombok.Getter;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import com.gtnewhorizon.gtnhmixins.ILateMixinLoader;
|
||||
import com.gtnewhorizon.gtnhmixins.LateMixin;
|
||||
import com.gtnewhorizon.gtnhmixins.builders.IMixins;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class MixinPlugin implements IMixinPlugin {
|
||||
public static final Logger LOG = IMixinPlugin.createLogger(Tags.MODNAME);
|
||||
|
||||
@Getter
|
||||
private final Logger logger = LOG;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@LateMixin
|
||||
public class LateMixins implements ILateMixinLoader {
|
||||
@Override
|
||||
public IMixin[] getMixinEnumValues() {
|
||||
return Mixin.values();
|
||||
public String getMixinConfig() {
|
||||
return "mixins.endlessids.late.json";
|
||||
}
|
||||
|
||||
@Override
|
||||
public ITargetedMod[] getTargetedModEnumValues() {
|
||||
return TargetedMod.values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean useNewFindJar() {
|
||||
return true;
|
||||
public @NotNull List<String> getMixins(Set<String> loadedMods) {
|
||||
return IMixins.getLateMixins(Mixin.class, loadedMods);
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the words "MEGA"
|
||||
* 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
|
||||
@@ -22,327 +22,585 @@
|
||||
|
||||
package com.falsepattern.endlessids.mixin.plugin;
|
||||
|
||||
import com.falsepattern.endlessids.Tags;
|
||||
import com.falsepattern.endlessids.config.GeneralConfig;
|
||||
import com.falsepattern.lib.mixin.IMixin;
|
||||
import com.falsepattern.lib.mixin.ITargetedMod;
|
||||
import com.falsepattern.lib.mixin.v2.MixinHelper;
|
||||
import com.falsepattern.lib.mixin.v2.SidedMixins;
|
||||
import com.falsepattern.lib.mixin.v2.TaggedMod;
|
||||
import com.gtnewhorizon.gtnhmixins.builders.IMixins;
|
||||
import com.gtnewhorizon.gtnhmixins.builders.MixinBuilder;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.intellij.lang.annotations.Language;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetedMod.AM2;
|
||||
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;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.AbyssalCraft;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.AdvancedRocketry;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.AlternateTerrainGeneration;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.AntiIDConflict;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.AntiqueAtlas;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.ArsMagica2;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.BiomeTweaker;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.BiomeWand;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.BiomesOPlenty;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.BlockPhysics;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.BuildCraft;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.ClimateControl;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.CoFHLib;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.CompactMachines;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.DarkWorld;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.DimDoors;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.DragonAPI;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Enderlicious;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.EnhancedBiomes;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Erebus;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.ExtendedPlanets;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.ExtraPlanets;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.ExtraUtilities;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Factorization;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.FastCraft;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Futurepack;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Gadomancy;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.GalactiCraftCore;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.GalaxySpace;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Highlands;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.ImmersiveCavegen;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.IndustrialRevolutionByRedstone;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.JustAnotherSpawner;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.LordOfTheRings;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.MatterOverdrive;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.MoreFunQuicksand;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Mystcraft;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.NaturesCompass;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Netherlicious;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.NomadicTents;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.NuclearTech;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.OldWorldGen;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.RandomThings;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.RealisticTerrainGeneration;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.RealisticWorldGen;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Restructured;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Ruins;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.SalisArcana;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Tardis;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Thaumcraft;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.TheMistsOfRioV;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.ThutCore;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Tropicraft;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.TwilightForest;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.UndergroundBiomes;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.Witchery;
|
||||
import static com.falsepattern.endlessids.mixin.plugin.TargetMod.WorldEdit;
|
||||
import static com.falsepattern.lib.mixin.v2.MixinHelper.avoid;
|
||||
import static com.falsepattern.lib.mixin.v2.MixinHelper.builder;
|
||||
import static com.falsepattern.lib.mixin.v2.MixinHelper.mods;
|
||||
import static com.falsepattern.lib.mixin.v2.MixinHelper.require;
|
||||
|
||||
@SuppressWarnings("UnstableApiUsage")
|
||||
@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 enum Mixin implements IMixins {
|
||||
// @formatter:off
|
||||
AntiIDConflict_Compat(Phase.EARLY,
|
||||
require(AntiIDConflict),
|
||||
common("antiidconflict.AntiIdConflictBaseMixin",
|
||||
"antiidconflict.BiomeGenBasePlaceholderMixin",
|
||||
"antiidconflict.BiomesManagerMixin",
|
||||
"antiidconflict.DimensionsManagerMixin",
|
||||
"antiidconflict.EnchantementsManagerMixin",
|
||||
"antiidconflict.EntitiesManagerMixin",
|
||||
"antiidconflict.PotionsManagerMixin")),
|
||||
|
||||
//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
|
||||
// region Biome
|
||||
|
||||
//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
|
||||
Biome_Vanilla(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
common("biome.vanilla.BiomeDictionaryMixin",
|
||||
"biome.vanilla.BiomeGenBaseMixin",
|
||||
"biome.vanilla.ChunkMixin",
|
||||
"biome.vanilla.GenLayerRiverMixMixin",
|
||||
"biome.vanilla.GenLayerVoronoiZoomMixin")),
|
||||
|
||||
Biome_Vanilla_Placeholders(Phase.EARLY,
|
||||
() -> GeneralConfig.extendBiome && GeneralConfig.biomeConflictAvoidancePlaceholders,
|
||||
common("biome.vanilla.BiomeGenBasePlaceholderMixin")),
|
||||
|
||||
Biome_AbyssalCraft(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(AbyssalCraft),
|
||||
common("biome.abyssalcraft.AbyssalCraftMixin")),
|
||||
|
||||
Biome_AdvancedRocketry(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
require(AdvancedRocketry),
|
||||
common("biome.arocketry.AdvancedRocketryMixin",
|
||||
"biome.arocketry.ChunkProviderSpaceMixin")),
|
||||
|
||||
Biome_AntiqueAtlas(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(AntiqueAtlas),
|
||||
common("biome.antiqueatlas.BiomeDetectorBaseMixin",
|
||||
"biome.antiqueatlas.BiomeDetectorNetherMixin")),
|
||||
|
||||
Biome_AlternateTerrainGeneration(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(AlternateTerrainGeneration),
|
||||
common("biome.atg.ATGBiomeConfigMixin",
|
||||
"biome.atg.ATGBiomeManagerMixin",
|
||||
"biome.atg.ATGWorldGenRocksMixin")),
|
||||
|
||||
Biome_BiomeTweaker(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
require(BiomeTweaker),
|
||||
common("biome.biometweaker.BiomeEventHandlerMixin")),
|
||||
|
||||
Biome_BiomeWand(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
require(BiomeWand),
|
||||
common("biome.biomewand.BiomeWandItemMixin"),
|
||||
client("biome.biomewand.BiomeWandItemMixin")),
|
||||
|
||||
Biome_BiomesOPlenty(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(BiomesOPlenty),
|
||||
common("biome.bop.BOPBiomeManagerMixin",
|
||||
"biome.bop.BOPBiomesMixin")),
|
||||
|
||||
Biome_BuildCraft(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(BuildCraft),
|
||||
common("biome.buildcraft.BuildcraftEnergyMixin")),
|
||||
|
||||
Biome_ClimateControl(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(ClimateControl),
|
||||
common("biome.climatecontrol.api.BiomeSettingsMixin",
|
||||
"biome.climatecontrol.api.ClimateControlRulesMixin",
|
||||
"biome.climatecontrol.customGenLayer.ConfirmBiomeMixin",
|
||||
"biome.climatecontrol.customGenLayer.GenLayerBiomeByClimateMixin",
|
||||
"biome.climatecontrol.customGenLayer.GenLayerBiomeByTaggedClimateMixin",
|
||||
"biome.climatecontrol.customGenLayer.GenLayerDefineClimateMixin",
|
||||
"biome.climatecontrol.customGenLayer.GenLayerLowlandRiverMixMixin",
|
||||
"biome.climatecontrol.customGenLayer.GenLayerSmoothCoastMixin",
|
||||
"biome.climatecontrol.customGenLayer.GenLayerSubBiomeMixin",
|
||||
"biome.climatecontrol.generator.AbstractWorldGeneratorMixin",
|
||||
"biome.climatecontrol.generator.BiomeSwapperMixin",
|
||||
"biome.climatecontrol.generator.SubBiomeChooserMixin",
|
||||
"biome.climatecontrol.genLayerPack.GenLayerHillsMixin",
|
||||
"biome.climatecontrol.genLayerPack.GenLayerPackMixin",
|
||||
"biome.climatecontrol.genLayerPack.GenLayerSmoothMixin",
|
||||
"biome.climatecontrol.genLayerPack.GenLayerVoronoiZoomMixin",
|
||||
"biome.climatecontrol.genLayerPack.GenLayerZoomMixin")),
|
||||
|
||||
Biome_CompactMachines(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(CompactMachines),
|
||||
common("biome.compactmachines.CubeToolsMixin")),
|
||||
|
||||
Biome_DarkWorld(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(DarkWorld),
|
||||
common("biome.darkworld.ModBiomesMixin")),
|
||||
|
||||
Biome_DimDoors(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(DimDoors),
|
||||
common("biome.dimdoors.DDBiomeGenBaseMixin")),
|
||||
|
||||
Biome_DragonAPI(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
require(DragonAPI),
|
||||
common("biome.dragonapi.vanilla.GenLayerRiverMixMixin",
|
||||
"biome.dragonapi.GenLayerRiverEventMixin",
|
||||
"biome.dragonapi.IDTypeMixin",
|
||||
"biome.dragonapi.ReikaChunkHelperMixin",
|
||||
"biome.dragonapi.ReikaWorldHelperMixin")),
|
||||
|
||||
Biome_EnhancedBiomes(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(EnhancedBiomes),
|
||||
common("biome.eb.BiomeIDsMixin",
|
||||
"biome.eb.GenLayerArchipelagoEdgeMixin",
|
||||
"biome.eb.GenLayerEBHillsMixin",
|
||||
"biome.eb.GenLayerEBRiverMixMixin",
|
||||
"biome.eb.GenLayerEBVoronoiZoomMixin")),
|
||||
|
||||
Biome_Enderlicious(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Enderlicious),
|
||||
common("biome.enderlicious.BiomeConfigurationMixin",
|
||||
"biome.enderlicious.EndChunkProviderMixin")),
|
||||
|
||||
Biome_Erebus(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Erebus),
|
||||
common("biome.erebus.ModBiomesMixin")),
|
||||
|
||||
Biome_ExtendedPlanets(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(ExtendedPlanets),
|
||||
common("biome.extendedplanets.ChunkProviderOceanMixin")),
|
||||
|
||||
Biome_ExtraPlanets(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(ExtraPlanets),
|
||||
common("biome.extraplanets.ConfigMixin")),
|
||||
|
||||
Biome_ExtraUtilities(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(ExtraUtilities),
|
||||
common("biome.extrautilities.ChunkProviderEndOfTimeMixin")),
|
||||
|
||||
Biome_Factorization(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
require(Factorization),
|
||||
common("biome.factorization.HammerChunkProviderMixin")),
|
||||
|
||||
Biome_Futurepack(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Futurepack),
|
||||
common("biome.futurepack.BiomeGenSpaceMixin")),
|
||||
|
||||
Biome_Gadomancy(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
require(Gadomancy),
|
||||
common("biome.gadomancy.ChunkProviderTCOuterMixin")),
|
||||
|
||||
Biome_GalactiCraft(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(GalactiCraftCore),
|
||||
common("biome.galacticraft.ChunkProviderOrbitMixin",
|
||||
"biome.galacticraft.ConfigManagerCoreMixin")),
|
||||
|
||||
Biome_GalaxySpace(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
require(GalaxySpace),
|
||||
common("biome.galaxyspace.ChunkProviderKuiperMixin",
|
||||
"biome.galaxyspace.ChunkProviderMarsSSMixin",
|
||||
"biome.galaxyspace.ChunkProviderSpaceLakesMixin",
|
||||
"biome.galaxyspace.ChunkProviderVenusSSMixin")),
|
||||
|
||||
Biome_Highlands(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Highlands),
|
||||
common("biome.highlands.ConfigMixin")),
|
||||
|
||||
Biome_ImmersiveCavegen(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(ImmersiveCavegen),
|
||||
common("biome.icg.MysteriumPatchesFixesCaveMixin")),
|
||||
|
||||
Biome_IndustrialRevolutionByRedstone(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(IndustrialRevolutionByRedstone),
|
||||
common("biome.ir3.IR2Mixin")),
|
||||
|
||||
Biome_JustAnotherSpawner(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(JustAnotherSpawner),
|
||||
common("biome.jas.LegacyCreatureTypeMixin",
|
||||
"biome.jas.ModernCreatureTypeMixin")),
|
||||
|
||||
Biome_LordOfTheRings(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
require(LordOfTheRings),
|
||||
common("biome.lotr.LOTRBiomeVariantStorageMixin",
|
||||
"biome.lotr.LOTRChunkProviderMixin",
|
||||
"biome.lotr.LOTRChunkProviderUtumnoMixin",
|
||||
"biome.lotr.LOTRDimensionMixin",
|
||||
"biome.lotr.LOTRPacketBiomeVariantsWatchHandlerMixin",
|
||||
"biome.lotr.LOTRWorldChunkManagerMixin",
|
||||
"biome.lotr.LOTRWorldProviderMixin")),
|
||||
|
||||
Biome_Mystcraft(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Mystcraft),
|
||||
common("biome.mystcraft.BiomeReplacerMixin")),
|
||||
|
||||
Biome_NaturesCompass(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(NaturesCompass),
|
||||
common("biome.naturescompass.BiomeUtilsMixin")),
|
||||
|
||||
Biome_Netherlicious(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Netherlicious),
|
||||
common("biome.netherlicious.BiomeConfigurationMixin")),
|
||||
|
||||
Biome_NomadicTents(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(NomadicTents),
|
||||
common("biome.nomadictents.TentChunkProviderMixin")),
|
||||
|
||||
Biome_OldWorldGen(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(OldWorldGen),
|
||||
common("biome.owg.ChunkGeneratorBetaMixin")),
|
||||
|
||||
Biome_RandomThings(Phase.EARLY,
|
||||
Ext.Biome,
|
||||
require(RandomThings),
|
||||
common("biome.randomthings.ItemBiomePainterMixin",
|
||||
"biome.randomthings.MessagePaintBiomeMixin")),
|
||||
|
||||
Biome_RealisticTerrainGeneration(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(RealisticTerrainGeneration),
|
||||
common("biome.rtg.ChunkProviderRTGMixin",
|
||||
"biome.rtg.LandscapeGeneratorMixin",
|
||||
"biome.rtg.WorldChunkManagerRTGMixin")),
|
||||
|
||||
Biome_RealisticWorldGen(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(RealisticWorldGen),
|
||||
common("biome.rwg.RealisticBiomeBaseMixin",
|
||||
"biome.rwg.ChunkGeneratorRealisticMixin",
|
||||
"biome.rwg.VillageMaterialsMixin")),
|
||||
|
||||
Biome_Restructured(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Restructured),
|
||||
common("biome.restructured.BiomeHelperMixin")),
|
||||
|
||||
Biome_Ruins(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Ruins),
|
||||
common("biome.ruins.FileHandlerMixin",
|
||||
"biome.ruins.LoaderThreadMixin",
|
||||
"biome.ruins.RuinGeneratorMixin")),
|
||||
|
||||
Biome_Tardis(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Tardis),
|
||||
common("biome.tardismod.TardisChunkProviderMixin")),
|
||||
|
||||
Biome_Thaumcraft(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Thaumcraft),
|
||||
common("biome.thaumcraft.UtilsMixin")),
|
||||
|
||||
Biome_TheMistsOfRioV(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(TheMistsOfRioV),
|
||||
common("biome.tmor.ChunkProviderSanctuatiteMixin")),
|
||||
|
||||
Biome_ThutCore(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(ThutCore),
|
||||
common("biome.thut.Vector3Mixin")),
|
||||
|
||||
Biome_Tropicraft(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Tropicraft),
|
||||
common("biome.tropicraft.GenLayerTropiVoronoiZoomMixin")),
|
||||
|
||||
Biome_TwilightForest(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(TwilightForest),
|
||||
common("biome.twilightforest.TFBiomeBaseMixin")),
|
||||
|
||||
Biome_Witchery(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(Witchery),
|
||||
common("biome.witchery.BrewActionBiomeChangeMixin",
|
||||
"biome.witchery.WorldChunkManagerMirrorMixin")),
|
||||
|
||||
Biome_WorldEdit(Phase.LATE,
|
||||
Ext.Biome,
|
||||
require(WorldEdit),
|
||||
common("biome.worldedit.ForgeWorldMixin")),
|
||||
|
||||
// endregion Biome
|
||||
|
||||
// region BlockItem
|
||||
|
||||
BlockItem_Vanilla(Phase.EARLY,
|
||||
Ext.BlockItem,
|
||||
common("blockitem.vanilla.BlockFireMixin",
|
||||
"blockitem.vanilla.BlockMixin",
|
||||
"blockitem.vanilla.ExtendedBlockStorageMixin",
|
||||
"blockitem.vanilla.ItemInWorldManagerMixin",
|
||||
"blockitem.vanilla.ItemStackMixin",
|
||||
"blockitem.vanilla.PacketBufferMixin",
|
||||
"blockitem.vanilla.S22PacketMultiBlockChangeMixin",
|
||||
"blockitem.vanilla.S24PacketBlockActionMixin",
|
||||
"blockitem.vanilla.StatListMixin",
|
||||
"blockitem.vanilla.WorldMixin"),
|
||||
client("blockitem.vanilla.PlayerControllerMPMixin",
|
||||
"blockitem.vanilla.RenderGlobalMixin")),
|
||||
|
||||
BlockItem_BlockPhysics(Phase.EARLY,
|
||||
Ext.BlockItem,
|
||||
require(BlockPhysics),
|
||||
common("blockitem.blockphysics.DefinitionMapsMixin")),
|
||||
|
||||
BlockItem_CoFHLib(Phase.LATE,
|
||||
Ext.BlockItem,
|
||||
require(CoFHLib),
|
||||
common("blockitem.cofhlib.BlockHelperMixin")),
|
||||
|
||||
BlockItem_DragonAPI(Phase.EARLY,
|
||||
Ext.BlockItem,
|
||||
require(DragonAPI),
|
||||
common("blockitem.dragonapi.BlockPropertiesMixin",
|
||||
"blockitem.dragonapi.IDTypeMixin")),
|
||||
|
||||
BlockItem_FastCraft(Phase.EARLY,
|
||||
Ext.BlockItem,
|
||||
require(FastCraft),
|
||||
client("blockitem.fastcraft.EntityRendererMixin")),
|
||||
|
||||
BlockItem_NuclearTech(Phase.LATE,
|
||||
Ext.BlockItem,
|
||||
require(NuclearTech),
|
||||
common("blockitem.ntm.ChunkRadiationHandlerPRISMMixin",
|
||||
"blockitem.ntm.ChunkRadiationHandlerPRISMSubChunkMixin")),
|
||||
|
||||
BlockItem_MatterOverdrive(Phase.LATE,
|
||||
Ext.BlockItem,
|
||||
require(MatterOverdrive),
|
||||
common("blockitem.matteroverdrive.InventoryMixin",
|
||||
"blockitem.matteroverdrive.ItemPatternMixin")),
|
||||
|
||||
BlockItem_MoreFunQuicksand(Phase.LATE,
|
||||
Ext.BlockItem,
|
||||
require(MoreFunQuicksand),
|
||||
common("blockitem.mfqm.MFQMMixin")),
|
||||
|
||||
BlockItem_UndergroundBiomes(Phase.LATE,
|
||||
Ext.BlockItem,
|
||||
require(UndergroundBiomes),
|
||||
common("blockitem.ubc.BiomeUndergroundDecoratorMixin",
|
||||
"blockitem.ubc.OreUBifierMixin")),
|
||||
|
||||
BlockItem_WorldEdit(Phase.LATE,
|
||||
Ext.BlockItem,
|
||||
require(WorldEdit),
|
||||
common("blockitem.worldedit.BaseBlockMixin")),
|
||||
|
||||
// endregion BlockItem
|
||||
|
||||
// region DataWatcher
|
||||
|
||||
DataWatcher_Vanilla(Phase.EARLY,
|
||||
Ext.DataWatcher,
|
||||
common("datawatcher.vanilla.DataWatcherMixin")),
|
||||
|
||||
DataWatcher_MoreFunQuicksand(Phase.LATE,
|
||||
Ext.DataWatcher,
|
||||
common("datawatcher.mfqm.MFQMDataWatcherMixin")),
|
||||
|
||||
// endregion DataWatcher
|
||||
|
||||
// region Enchantment
|
||||
|
||||
Enchantment_Vanilla(Phase.EARLY,
|
||||
Ext.Enchantment,
|
||||
common("enchantment.vanilla.EnchantmentMixin")),
|
||||
|
||||
// endregion Enchantment
|
||||
|
||||
// region Entity
|
||||
|
||||
Entity_Vanilla(Phase.EARLY,
|
||||
Ext.Entity,
|
||||
common("entity.vanilla.EntityListMixin",
|
||||
"entity.vanilla.EntityRegistryMixin",
|
||||
"entity.vanilla.S0FPacketSpawnMobMixin")),
|
||||
|
||||
// endregion Entity
|
||||
|
||||
// region Potion
|
||||
|
||||
Potion_Vanilla(Phase.EARLY,
|
||||
Ext.Potion,
|
||||
common("potion.vanilla.PotionEffectMixin",
|
||||
"potion.vanilla.PotionMixin")),
|
||||
|
||||
Potion_Vanilla_NoArsMagica2(Phase.EARLY,
|
||||
Ext.Potion,
|
||||
avoid(ArsMagica2),
|
||||
common("potion.vanilla.network.S1DPacketEntityEffectMixin",
|
||||
"potion.vanilla.network.S1EPacketRemoveEntityEffectMixin"),
|
||||
client("potion.vanilla.NetHandlerPlayClientMixin")),
|
||||
|
||||
Potion_Thaumcraft(Phase.LATE,
|
||||
Ext.Potion,
|
||||
mods(require(Thaumcraft), avoid(SalisArcana)),
|
||||
common("potion.thaumcraft.ConfigMixin")),
|
||||
|
||||
// endregion Potion
|
||||
|
||||
// region Redstone
|
||||
|
||||
Redstone_Vanilla(Phase.EARLY,
|
||||
() -> GeneralConfig.extendBlockItem && GeneralConfig.extendRedstone,
|
||||
common("redstone.BlockCompressedPoweredMixin",
|
||||
"redstone.BlockRedstoneDiodeMixin",
|
||||
"redstone.BlockRedstoneTorchMixin",
|
||||
"redstone.WorldMixin"),
|
||||
client("redstone.BlockRedstoneWireMixin",
|
||||
"redstone.RenderBlocksMixin")),
|
||||
|
||||
// endregion Redstone
|
||||
|
||||
// @formatter:on
|
||||
|
||||
//region boilerplate
|
||||
;
|
||||
@Getter
|
||||
private final Side side;
|
||||
@Getter
|
||||
private final Predicate<List<ITargetedMod>> filter;
|
||||
@Getter
|
||||
private final String mixin;
|
||||
}
|
||||
private final MixinBuilder builder;
|
||||
|
||||
Mixin(Phase phase, SidedMixins... mixins) {
|
||||
this(builder(mixins).setPhase(phase));
|
||||
}
|
||||
|
||||
Mixin(Phase phase, BooleanSupplier cond, SidedMixins... mixins) {
|
||||
this(builder(cond, mixins).setPhase(phase));
|
||||
}
|
||||
|
||||
Mixin(Phase phase, TaggedMod mod, SidedMixins... mixins) {
|
||||
this(builder(mod, mixins).setPhase(phase));
|
||||
}
|
||||
|
||||
Mixin(Phase phase, TaggedMod[] mods, SidedMixins... mixins) {
|
||||
this(builder(mods, mixins).setPhase(phase));
|
||||
}
|
||||
|
||||
Mixin(Phase phase, BooleanSupplier cond, TaggedMod mod, SidedMixins... mixins) {
|
||||
this(builder(cond, mod, mixins).setPhase(phase));
|
||||
}
|
||||
|
||||
Mixin(Phase phase, BooleanSupplier cond, TaggedMod[] mods, SidedMixins... mixins) {
|
||||
this(builder(cond, mods, mixins).setPhase(phase));
|
||||
}
|
||||
|
||||
private static SidedMixins common(@Language(value = "JAVA",
|
||||
prefix = "import " + Tags.GROUPNAME + ".mixin.mixins.common.",
|
||||
suffix = ";") String... mixins) {
|
||||
return MixinHelper.common(mixins);
|
||||
}
|
||||
|
||||
private static SidedMixins client(@Language(value = "JAVA",
|
||||
prefix = "import " + Tags.GROUPNAME + ".mixin.mixins.client.",
|
||||
suffix = ";") String... mixins) {
|
||||
return MixinHelper.client(mixins);
|
||||
}
|
||||
|
||||
private static SidedMixins server(@Language(value = "JAVA",
|
||||
prefix = "import " + Tags.GROUPNAME + ".mixin.mixins.server.",
|
||||
suffix = ";") String... mixins) {
|
||||
return MixinHelper.server(mixins);
|
||||
}
|
||||
//endregion
|
||||
|
||||
private static class Ext {
|
||||
public static final BooleanSupplier Biome = () -> GeneralConfig.extendBiome;
|
||||
public static final BooleanSupplier BlockItem = () -> GeneralConfig.extendBlockItem;
|
||||
public static final BooleanSupplier DataWatcher = () -> GeneralConfig.extendDataWatcher;
|
||||
public static final BooleanSupplier Enchantment = () -> GeneralConfig.extendEnchantment;
|
||||
public static final BooleanSupplier Potion = () -> GeneralConfig.extendPotion;
|
||||
public static final BooleanSupplier Entity = () -> GeneralConfig.extendEntity;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* 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.plugin;
|
||||
|
||||
import com.gtnewhorizon.gtnhmixins.builders.ITargetMod;
|
||||
import com.gtnewhorizon.gtnhmixins.builders.TargetModBuilder;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.intellij.lang.annotations.Language;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public enum TargetMod implements ITargetMod {
|
||||
//coremods
|
||||
AdvancedRocketry("zmaster587.advancedRocketry.AdvancedRocketry"),
|
||||
ArsMagica2("am2.AMCore"),
|
||||
AntiIDConflict("code.elix_x.coremods.antiidconflict.AntiIdConflictCore"),
|
||||
BlockPhysics("com.bloodnbonesgaming.blockphysics.BlockPhysics"),
|
||||
BiomeTweaker("me.superckl.biometweaker.BiomeTweaker"),
|
||||
DragonAPI("Reika.DragonAPI.DragonAPICore"),
|
||||
Factorization("factorization.coremod.LoadingPlugin"),
|
||||
FastCraft("fastcraft.Tweaker"),
|
||||
Gadomancy("makeo.gadomancy.common.Gadomancy"),
|
||||
GalaxySpace("galaxyspace.GalaxySpace"),
|
||||
LordOfTheRings("lotr.common.LOTRMod"),
|
||||
RandomThings("lumien.randomthings.RandomThings"),
|
||||
SalisArcana("dev.rndmorris.salisarcana.SalisArcana"),
|
||||
//regular mods
|
||||
AbyssalCraft("com.shinoow.abyssalcraft.AbyssalCraft"),
|
||||
AlternateTerrainGeneration("ttftcuts.atg.ATG"),
|
||||
AntiqueAtlas("hunternif.mc.atlas.AntiqueAtlasMod"),
|
||||
BiomesOPlenty("biomesoplenty.BiomesOPlenty"),
|
||||
BiomeWand("com.spacechase0.minecraft.biomewand.BiomeWandMod"),
|
||||
BuildCraft("buildcraft.BuildCraftCore"),
|
||||
ClimateControl("climateControl.ClimateControl"),
|
||||
CoFHLib("cofh.lib.CoFHLibProps"),
|
||||
CompactMachines("org.dave.CompactMachines.CompactMachines"),
|
||||
DarkWorld("matthbo.mods.darkworld.DarkWorld"),
|
||||
DimDoors("StevenDimDoors.mod_pocketDim.mod_pocketDim"),
|
||||
Enderlicious("DelirusCrux.Enderlicious.Enderlicious"),
|
||||
EnhancedBiomes("enhancedbiomes.EnhancedBiomesMod"),
|
||||
Erebus("erebus.Erebus"),
|
||||
ExtendedPlanets("ExtendedPlanets.EPMain"),
|
||||
ExtraPlanets("com.mjr.extraplanets.ExtraPlanets"),
|
||||
ExtraUtilities("com.rwtema.extrautils.ExtraUtilsMod"),
|
||||
Futurepack("futurepack.common.FPMain"),
|
||||
GalactiCraftCore("micdoodle8.mods.galacticraft.core.GalacticraftCore"),
|
||||
Highlands("highlands.Highlands"),
|
||||
ImmersiveCavegen("net.tclproject.immersivecavegen.ImmersiveCavegen"),
|
||||
IndustrialRevolutionByRedstone("jp.plusplus.ir2.IR2"),
|
||||
JustAnotherSpawner("jas.common.JustAnotherSpawner"),
|
||||
MatterOverdrive("matteroverdrive.MatterOverdrive"),
|
||||
MoreFunQuicksand("MoreFunQuicksandMod.main.MFQM"),
|
||||
Mystcraft("com.xcompwiz.mystcraft.Mystcraft"),
|
||||
NaturesCompass("com.chaosthedude.naturescompass.NaturesCompass"),
|
||||
Netherlicious("DelirusCrux.Netherlicious.Netherlicious"),
|
||||
NomadicTents("com.yurtmod.main.NomadicTents"),
|
||||
NuclearTech("com.hbm.main.MainRegistry"),
|
||||
OldWorldGen("owg.OWG"),
|
||||
Ruins("atomicstryker.ruins.common.RuinsMod"),
|
||||
RealisticTerrainGeneration("rtg.RTG"),
|
||||
RealisticWorldGen("rwg.RWG"),
|
||||
Restructured("org.blockartistry.mod.Restructured.Restructured"),
|
||||
Tardis("tardis.TardisMod"),
|
||||
Thaumcraft("thaumcraft.common.Thaumcraft"),
|
||||
TheMistsOfRioV("sheenrox82.RioV.src.base.TheMistsOfRioV"),
|
||||
ThutCore("thut.api.ThutCore"),
|
||||
Tropicraft("net.tropicraft.Tropicraft"),
|
||||
TwilightForest("twilightforest.TwilightForestMod"),
|
||||
UndergroundBiomes("exterminatorJeff.undergroundBiomes.common.UndergroundBiomes"),
|
||||
Witchery("com.emoniph.witchery.Witchery"),
|
||||
WorldEdit("com.sk89q.worldedit.forge.ForgeWorldEdit"),
|
||||
|
||||
;
|
||||
@Getter
|
||||
private final TargetModBuilder builder;
|
||||
|
||||
TargetMod(@Language(value = "JAVA",
|
||||
prefix = "import ",
|
||||
suffix = ";") @NotNull String className) {
|
||||
this(className, null);
|
||||
}
|
||||
|
||||
TargetMod(@Language(value = "JAVA",
|
||||
prefix = "import ",
|
||||
suffix = ";") @NotNull String className, @Nullable Consumer<TargetModBuilder> cfg) {
|
||||
builder = new TargetModBuilder();
|
||||
builder.setTargetClass(className);
|
||||
if (cfg != null) {
|
||||
cfg.accept(builder);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2025 FalsePattern, The MEGA Team
|
||||
* All Rights Reserved
|
||||
*
|
||||
* The above copyright notice, this permission notice and the words "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.plugin;
|
||||
|
||||
import com.falsepattern.lib.mixin.ITargetedMod;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import java.util.function.Predicate;
|
||||
|
||||
import static com.falsepattern.lib.mixin.ITargetedMod.PredicateHelpers.contains;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public enum TargetedMod implements ITargetedMod {
|
||||
ABYSSALCRAFT("AbyssalCraft", false, contains("abyssalcraft-")),
|
||||
AROCKETRY("Advanced Rocketry", false, contains("advancedrocketry-")),
|
||||
ATG("Alternate Terrain Generation", false, contains("atg")),
|
||||
AM2("Ars Magica 2", false, contains("am2").or(contains("arsmagica2"))),
|
||||
ANTIQUEATLAS("Antique Atlas", false, contains("antiqueatlas")),
|
||||
ANTIIDCONFLICT("Anti ID Conflict", false, contains("antiidconflict")),
|
||||
BOP("Biomes O' Plenty", false, contains("biomesoplenty-")),
|
||||
BIOMETWEAKER("Biome Tweaker", false, contains("biometweaker-")),
|
||||
BIOMEWAND("Biome Wand", false, contains("biome-wand")),
|
||||
BUILDCRAFT("BuildCraft", false, contains("buildcraft-").and(contains("compat").negate())),
|
||||
CLIMATECONTROL("Climate Control", false, contains("climatecontrol-")),
|
||||
COFHLIB("CoFH Lib", false, contains("cofhlib-")),
|
||||
COMPACTMACHINES("Compact Machines", false, contains("compactmachines-")),
|
||||
DARKWORLD("Dark World", false, contains("darkworld-")),
|
||||
DIMDOORS("Dimensional Doors", false, contains("dimensionaldoors-").or(contains("dimdoors-"))),
|
||||
DRAGONAPI("DragonAPI", false, contains("dragonapi")),
|
||||
EB("Enhanced Biomes", false, contains("Enhanced Biomes").or(contains("enhancedbiomes"))),
|
||||
ENDERLICIOUS("Enderlicious", false, contains("enderlicious-")),
|
||||
EREBUS("The Erebus", false, contains("theerebus")),
|
||||
EXTENDEDPLANETS("Extended Planets", false, contains("extendedplanets-")),
|
||||
EXTRAPLANETS("Extra Planets", false, contains("extraplanets-")),
|
||||
EXTRAUTILITIES("Extra Utilities", false, contains("extrautilities-")),
|
||||
FACTORIZATION("Factorization", false, contains("factorization-")),
|
||||
FUTUREPACK("Futurepack", false, contains("futurepack")),
|
||||
GADOMANCY("Gadomancy", false, contains("gadomancy-")),
|
||||
GALACTICRAFTCORE("GalactiCraftCore", false, contains("galacticraftcore")),
|
||||
GALAXYSPACE("GalaxySpace", false, contains("galaxyspace-")),
|
||||
HBM_NTM("Hbm's Nuclear Tech Mod", false, contains("hbm-ntm")),
|
||||
HIGHLANDS("Highlands", false, contains("highlands")),
|
||||
ICG("Immersive Cavegen", false, contains("immersivecavegen")),
|
||||
IR3("Industrial Revolution by Redstone Rebooted", false, contains("industrialrevolutionbyredstonerebooted-")),
|
||||
LOTR("LOTR Mod", false, contains("lotrmod")),
|
||||
MATTEROVERDRIVE("Matter Overdrive", false, contains("matteroverdrive-")),
|
||||
MATTERMEGADRIVE("Matter Megadrive", false, contains("mattermegadrive-")),
|
||||
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-")),
|
||||
RESTRUCTURED("Restructured", false, contains("restructured-")),
|
||||
RTG("Realistic Terrain Generation", false, contains("rtg-")),
|
||||
RWG("Realistic World Gen", false, contains("rwg-")),
|
||||
TARDIS("TARDIS Mod", false, contains("tardismod-")),
|
||||
THAUMCRAFT("Thaumcraft", false, contains("thaumcraft")),
|
||||
THUTCORE("ThutCore", false, contains("thutcore-").or(contains("thutmods-"))),
|
||||
TMOR("The Mists Of RioV", false, contains("the mists of riov-").or(contains("the-mists-of-riov-"))),
|
||||
TROPICRAFT("Tropicraft", false, contains("tropicraft-")),
|
||||
TWILIGHTFOREST("Twilight Forest", false, contains("twilightforest")),
|
||||
UBC("Underground Biomes Constructs", false, contains("undergroundbiomesconstructs-").or(contains("undergroundbiomes-"))),
|
||||
WITCHERY("Witchery", false, contains("witchery-")),
|
||||
WORLDEDIT("WorldEdit", false, contains("worldedit-")),
|
||||
;
|
||||
|
||||
@Getter
|
||||
private final String modName;
|
||||
@Getter
|
||||
private final boolean loadInDevelopment;
|
||||
@Getter
|
||||
private final Predicate<String> condition;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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.endlessids.mixin.helpers.EntityRegistryAccessor;
|
||||
import lombok.val;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import cpw.mods.fml.common.registry.EntityRegistry;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class RemappingEntityIDMap extends HashMap<Integer, Class<? extends Entity>> {
|
||||
public RemappingEntityIDMap(Map<Integer, Class<? extends Entity>> idToClassMapping) {
|
||||
super(idToClassMapping);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Entity> put(Integer key, Class<? extends Entity> value) {
|
||||
val availableIndicies = ((EntityRegistryAccessor) EntityRegistry.instance()).eids$availableIndicies();
|
||||
availableIndicies.clear(key);
|
||||
return super.put(key, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void putAll(Map<? extends Integer, ? extends Class<? extends Entity>> m) {
|
||||
val availableIndicies = ((EntityRegistryAccessor) EntityRegistry.instance()).eids$availableIndicies();
|
||||
for (val entry : m.entrySet()) {
|
||||
availableIndicies.clear(entry.getKey());
|
||||
}
|
||||
super.putAll(m);
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
"dependencies": {
|
||||
"always": {
|
||||
"common": [
|
||||
"it.unimi.dsi:fastutil:8.5.15"
|
||||
"it.unimi.dsi:fastutil:8.5.16"
|
||||
],
|
||||
"client": [],
|
||||
"server": []
|
||||
|
||||
-1
@@ -2,7 +2,6 @@
|
||||
"required": true,
|
||||
"minVersion": "0.8.5",
|
||||
"package": "com.falsepattern.endlessids.mixin.mixins",
|
||||
"plugin": "com.falsepattern.endlessids.mixin.plugin.MixinPlugin",
|
||||
"refmap": "mixins.endlessids.refmap.json",
|
||||
"target": "@env(DEFAULT)",
|
||||
"compatibilityLevel": "JAVA_8"
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8.5",
|
||||
"package": "com.falsepattern.endlessids.mixin.mixins",
|
||||
"refmap": "mixins.endlessids.refmap.json",
|
||||
"target": "@env(DEFAULT)",
|
||||
"compatibilityLevel": "JAVA_8"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user