mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-24 09:24:29 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27ca556182 | ||
|
|
2c96f817d7 | ||
|
|
95c380a5b1 | ||
|
|
ed7507a58e | ||
|
|
c31e218197 | ||
|
|
5ad71c29c2 | ||
|
|
684d419465 | ||
|
|
c7067c7d72 | ||
|
|
f57bd9c353 | ||
|
|
38caffb85d | ||
|
|
6a10291318 |
No files matched your search
@@ -46,6 +46,7 @@ This mod also contains patches for the following mods:
|
||||
- Biome Wand
|
||||
- BuildCraft
|
||||
- ChromatiCraft
|
||||
- Climate Control
|
||||
- Compact Machines
|
||||
- CoFH Lib
|
||||
- Dark World
|
||||
|
||||
+14
-11
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id("fpgradle-minecraft") version ("0.6.1")
|
||||
id("fpgradle-minecraft") version ("0.8.0")
|
||||
}
|
||||
|
||||
group = "com.falsepattern"
|
||||
@@ -29,7 +29,7 @@ minecraft_fp {
|
||||
}
|
||||
|
||||
publish {
|
||||
changelog = "https://github.com/GTMEGA/EndlessIDs/releases/tag/{version}"
|
||||
changelog = "https://github.com/GTMEGA/EndlessIDs/releases/tag/$version"
|
||||
maven {
|
||||
repoUrl = "https://mvn.falsepattern.com/releases/"
|
||||
repoName = "mavenpattern"
|
||||
@@ -63,7 +63,7 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
////////////////Our dependencies////////////////
|
||||
implementationSplit("com.falsepattern:falsepatternlib-mc1.7.10:1.4.0")
|
||||
implementationSplit("com.falsepattern:falsepatternlib-mc1.7.10:1.4.1")
|
||||
implementation("it.unimi.dsi:fastutil:8.5.13")
|
||||
implementationSplit("com.falsepattern:chunkapi-mc1.7.10:0.5.1")
|
||||
|
||||
@@ -98,11 +98,14 @@ dependencies {
|
||||
|
||||
//Biome Wand 1.1.9
|
||||
//Source: https://spacechase0.com/wp-content/uploads/2014/10/1.7.10-Biome-Wand-1.1.9.jar
|
||||
compileOnly(rfg.deobf("mirror:1.7.10-Biome-Wand:1.1.9"))
|
||||
compileOnly(deobf("mirror:1.7.10-Biome-Wand:1.1.9"))
|
||||
|
||||
//Buildcraft 7.1.24
|
||||
compileOnly(deobfCurse("buildcraft-61811:3538651"))
|
||||
|
||||
//Climate Control 0.8.2
|
||||
compileOnly(deobfCurse("climatecontrol-76544:2359685"))
|
||||
|
||||
//CoFH Lib 1.2.1-185
|
||||
compileOnly(deobfCurse("cofh-lib-220333:2388748"))
|
||||
|
||||
@@ -114,7 +117,7 @@ dependencies {
|
||||
|
||||
//DimDoors 2.2.5-test9
|
||||
//Source: https://github.com/CannibalVox/DimDoors/releases/download/2.2.5-test9/DimensionalDoors-2.2.5-test9.jar
|
||||
compileOnly(rfg.deobf("CannibalVox.DimDoors:DimensionalDoors:2.2.5-test9"))
|
||||
compileOnly(deobf("CannibalVox.DimDoors:DimensionalDoors:2.2.5-test9"))
|
||||
|
||||
//DragonAPI V32a
|
||||
compileOnly(deobfCurse("dragonapi-235591:4611379"))
|
||||
@@ -126,7 +129,7 @@ dependencies {
|
||||
compileOnly(deobfCurse("enderlicious-508777:3504111"))
|
||||
|
||||
//Enhanced Biomes 2.5
|
||||
compileOnly(rfg.deobf("mirror:enhancedbiomes:2.5"))
|
||||
compileOnly(deobf("mirror:enhancedbiomes:2.5"))
|
||||
|
||||
//Erebus 0.4.7
|
||||
compileOnly(deobfCurse("theerebus-220698:2305035"))
|
||||
@@ -142,10 +145,10 @@ dependencies {
|
||||
|
||||
//Galacticraft Core 3.0.12.504
|
||||
//micdoodle8.com went down
|
||||
compileOnly(rfg.deobf("mirror.micdoodle:GalacticraftCore:1.7-3.0.12.504"))
|
||||
compileOnly(deobf("mirror.micdoodle:GalacticraftCore:1.7-3.0.12.504"))
|
||||
|
||||
//Galacticraft Planets 3.0.12.504
|
||||
compileOnly(rfg.deobf("mirror.micdoodle:Galacticraft-Planets:1.7-3.0.12.504"))
|
||||
compileOnly(deobf("mirror.micdoodle:Galacticraft-Planets:1.7-3.0.12.504"))
|
||||
|
||||
//Highlands 2.2.3
|
||||
compileOnly(deobfCurse("highlands-221226:2227924"))
|
||||
@@ -194,12 +197,12 @@ dependencies {
|
||||
|
||||
//ThutCore 2.0
|
||||
//Only available on dropbox
|
||||
compileOnly(rfg.deobf("mirror:thutcore:2.0"))
|
||||
compileOnly(deobf("mirror:thutcore:2.0"))
|
||||
|
||||
//Tropicraft 6.0.5
|
||||
//This is from a mirror file, because the file on curseforge is a zip containing other files too.
|
||||
//Source: https://www.curseforge.com/minecraft/mc-mods/tropicraft/files/2353906
|
||||
compileOnly(rfg.deobf("mirror:tropicraft:6.0.5"))
|
||||
compileOnly(deobf("mirror:tropicraft:6.0.5"))
|
||||
|
||||
//Twilight Forest 2.3.8
|
||||
compileOnly(deobfCurse("twilightforest-227639:3039937"))
|
||||
@@ -218,5 +221,5 @@ dependencies {
|
||||
//SpaceCore 0.7.14
|
||||
//needed by: Biome Wand
|
||||
//Source: http://spacechase0.com/files/mcmod/1.7.10-SpaceCore-0.7.14.jar
|
||||
compileOnly(rfg.deobf("mirror:1.7.10-SpaceCore:0.7.14"))
|
||||
compileOnly(deobf("mirror:1.7.10-SpaceCore:0.7.14"))
|
||||
}
|
||||
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.8-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
@@ -84,7 +86,8 @@ done
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
|
||||
@@ -28,4 +28,8 @@ pluginManagement {
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
|
||||
}
|
||||
|
||||
rootProject.name = "EndlessIDs"
|
||||
@@ -44,7 +44,7 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
name = Tags.MODNAME,
|
||||
acceptedMinecraftVersions = "[1.7.10]",
|
||||
dependencies = "required-after:chunkapi@[0.5.0,0.6.0);" +
|
||||
"required-after:falsepatternlib@[1.4.0,);" +
|
||||
"required-after:falsepatternlib@[1.4.1,);" +
|
||||
"after:antiidconflict")
|
||||
public class EndlessIDs {
|
||||
public static final byte[] ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER = new byte[0];
|
||||
|
||||
+3
@@ -31,6 +31,8 @@ import org.spongepowered.asm.mixin.Overwrite;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@Mixin(value = BiomeWandItem.class,
|
||||
remap = false)
|
||||
@@ -39,6 +41,7 @@ public abstract class BiomeWandItemMixin {
|
||||
* @author FalsePattern
|
||||
* @reason Biome ID extension
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Overwrite
|
||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||
NBTTagCompound tag = stack.getTagCompound();
|
||||
|
||||
+8
-3
@@ -78,9 +78,14 @@ public abstract class BiomesManagerMixin {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = {"preinit", "setUpBiomesFolder"},
|
||||
constant = {@Constant(stringValue = "\\biomes"), @Constant(stringValue = "\\main.cfg")})
|
||||
private static String fixPaths(String original) {
|
||||
@ModifyConstant(method = "preinit",
|
||||
constant = @Constant(stringValue = "\\biomes"))
|
||||
private static String fixPaths1(String original) {
|
||||
return AIDCStringFixer.fixString(original);
|
||||
}
|
||||
@ModifyConstant(method = "setUpBiomesFolder",
|
||||
constant = @Constant(stringValue = "\\main.cfg"))
|
||||
private static String fixPaths2(String original) {
|
||||
return AIDCStringFixer.fixString(original);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -43,14 +43,14 @@ public abstract class AdvancedRocketryMixin {
|
||||
@Constant(intValue = 118, ordinal = 0),
|
||||
@Constant(intValue = 119, ordinal = 0)},
|
||||
require = 10)
|
||||
private static int shiftBiomeIDsUp(int constant) {
|
||||
private int shiftBiomeIDsUp(int constant) {
|
||||
return constant + 9000;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "preInit",
|
||||
constant = @Constant(intValue = -2),
|
||||
require = 1)
|
||||
private static int changeDefaultDimID(int constant) {
|
||||
private int changeDefaultDimID(int constant) {
|
||||
return -5613;
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.api;
|
||||
|
||||
import climateControl.api.BiomeSettings;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(BiomeSettings.class)
|
||||
public abstract class BiomeSettingsMixin {
|
||||
@ModifyConstant(method = "nameDefaultClimates",
|
||||
remap = false,
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 1)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.api;
|
||||
|
||||
import climateControl.api.ClimateControlRules;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(ClimateControlRules.class)
|
||||
public abstract class ClimateControlRulesMixin {
|
||||
@ModifyConstant(method = "<init>",
|
||||
remap = false,
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 4)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.customGenLayer;
|
||||
|
||||
import climateControl.customGenLayer.ConfirmBiome;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(ConfirmBiome.class)
|
||||
public abstract class ConfirmBiomeMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 1)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.customGenLayer;
|
||||
|
||||
import climateControl.customGenLayer.GenLayerBiomeByClimate;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerBiomeByClimate.class)
|
||||
public abstract class GenLayerBiomeByClimateMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 1)
|
||||
private int extendBiomes1(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 1)
|
||||
private int extendBiomes2(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.customGenLayer;
|
||||
|
||||
import climateControl.customGenLayer.GenLayerBiomeByTaggedClimate;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerBiomeByTaggedClimate.class)
|
||||
public abstract class GenLayerBiomeByTaggedClimateMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 1)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.customGenLayer;
|
||||
|
||||
import climateControl.customGenLayer.GenLayerDefineClimate;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerDefineClimate.class)
|
||||
public abstract class GenLayerDefineClimateMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 1)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.customGenLayer;
|
||||
|
||||
import climateControl.customGenLayer.GenLayerLowlandRiverMix;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerLowlandRiverMix.class)
|
||||
public abstract class GenLayerLowlandRiverMixMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 3)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.customGenLayer;
|
||||
|
||||
import climateControl.customGenLayer.GenLayerSmoothCoast;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerSmoothCoast.class)
|
||||
public abstract class GenLayerSmoothCoastMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 1)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.customGenLayer;
|
||||
|
||||
import climateControl.customGenLayer.GenLayerSubBiome;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerSubBiome.class)
|
||||
public abstract class GenLayerSubBiomeMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 1)
|
||||
private int extendBiomes1(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = 128),
|
||||
require = 1)
|
||||
private int extendBiomes2(int constant) {
|
||||
return ExtendedConstants.biomeIDCount - 128;
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.genLayerPack;
|
||||
|
||||
import climateControl.genLayerPack.GenLayerHills;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerHills.class)
|
||||
public abstract class GenLayerHillsMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 1)
|
||||
private int extendBiomes1(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = 128,
|
||||
ordinal = 0),
|
||||
require = 1)
|
||||
private int extendBiomes2(int constant) {
|
||||
return ExtendedConstants.biomeIDCount - 128;
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.genLayerPack;
|
||||
|
||||
import climateControl.genLayerPack.GenLayerPack;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerPack.class)
|
||||
public abstract class GenLayerPackMixin {
|
||||
@ModifyConstant(method = {"isBiomeOceanic", "isOceanic"},
|
||||
remap = false,
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 2)
|
||||
private static int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.genLayerPack;
|
||||
|
||||
import climateControl.genLayerPack.GenLayerSmooth;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerSmooth.class)
|
||||
public abstract class GenLayerSmoothMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 2)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.genLayerPack;
|
||||
|
||||
import climateControl.genLayerPack.GenLayerVoronoiZoom;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerVoronoiZoom.class)
|
||||
public abstract class GenLayerVoronoiZoomMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 2)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.genLayerPack;
|
||||
|
||||
import climateControl.genLayerPack.GenLayerZoom;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(GenLayerZoom.class)
|
||||
public abstract class GenLayerZoomMixin {
|
||||
@ModifyConstant(method = "getInts",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 6)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.generator;
|
||||
|
||||
import climateControl.generator.AbstractWorldGenerator;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(AbstractWorldGenerator.class)
|
||||
public abstract class AbstractWorldGeneratorMixin {
|
||||
@ModifyConstant(method = "setRules",
|
||||
remap = false,
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 1)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.generator;
|
||||
|
||||
import climateControl.generator.BiomeSwapper;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(BiomeSwapper.class)
|
||||
public abstract class BiomeSwapperMixin {
|
||||
@ModifyConstant(method = "<init>",
|
||||
remap = false,
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 2)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.climatecontrol.generator;
|
||||
|
||||
import climateControl.generator.SubBiomeChooser;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
|
||||
@Mixin(SubBiomeChooser.class)
|
||||
public abstract class SubBiomeChooserMixin {
|
||||
@ModifyConstant(method = "<init>",
|
||||
remap = false,
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 1)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+5
-5
@@ -48,19 +48,19 @@ import java.util.Random;
|
||||
public abstract class MessagePaintBiomeMixin {
|
||||
|
||||
@Shadow
|
||||
private int posZ;
|
||||
int posZ;
|
||||
|
||||
@Shadow
|
||||
private int posX;
|
||||
int posX;
|
||||
|
||||
@Shadow
|
||||
private int biomeID;
|
||||
int biomeID;
|
||||
|
||||
@Shadow
|
||||
private int dimensionID;
|
||||
int dimensionID;
|
||||
|
||||
@Shadow
|
||||
private int posY;
|
||||
int posY;
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
|
||||
+76
@@ -23,16 +23,31 @@
|
||||
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.biome.rtg;
|
||||
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.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.Slice;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
import rtg.util.CellNoise;
|
||||
import rtg.util.OpenSimplexNoise;
|
||||
import rtg.world.biome.RTGBiomeProvider;
|
||||
import rtg.world.biome.realistic.RealisticBiomeBase;
|
||||
import rtg.world.gen.ChunkProviderRTG;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@Mixin(value = ChunkProviderRTG.class,
|
||||
remap = false)
|
||||
public abstract class ChunkProviderRTGMixin {
|
||||
@@ -42,6 +57,20 @@ public abstract class ChunkProviderRTGMixin {
|
||||
@Shadow
|
||||
private int[] xyinverted;
|
||||
|
||||
@Shadow private long worldSeed;
|
||||
|
||||
@Shadow private World worldObj;
|
||||
|
||||
@Shadow protected RTGBiomeProvider cmr;
|
||||
|
||||
@Shadow private Random mapRand;
|
||||
|
||||
@Shadow private OpenSimplexNoise simplex;
|
||||
|
||||
@Shadow private CellNoise cell;
|
||||
|
||||
@Shadow private float[] borderNoise;
|
||||
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B",
|
||||
@@ -61,4 +90,51 @@ public abstract class ChunkProviderRTGMixin {
|
||||
private void removeUnnecessarySet(Chunk chunk, byte[] bytes) {
|
||||
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "provideChunk",
|
||||
constant = @Constant(intValue = 256,
|
||||
ordinal = 0),
|
||||
slice = @Slice(from = @At(value = "INVOKE",
|
||||
target = "Lrtg/world/gen/ChunkProviderRTG;generateTerrain(Lrtg/world/biome/RTGBiomeProvider;II[Lnet/minecraft/block/Block;[B[Lrtg/world/biome/realistic/RealisticBiomeBase;[F)V",
|
||||
shift = At.Shift.AFTER)),
|
||||
require = 1)
|
||||
private int noDefaultLoop(int constant) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lrtg/world/gen/ChunkProviderRTG;generateTerrain(Lrtg/world/biome/RTGBiomeProvider;II[Lnet/minecraft/block/Block;[B[Lrtg/world/biome/realistic/RealisticBiomeBase;[F)V"),
|
||||
require = 1)
|
||||
private void injectTheFunny(ChunkProviderRTG instance,
|
||||
RTGBiomeProvider cmr,
|
||||
int cx,
|
||||
int cy,
|
||||
Block[] blocks,
|
||||
byte[] metadata,
|
||||
RealisticBiomeBase[] biomes,
|
||||
float[] noise) {
|
||||
instance.generateTerrain(cmr, cx, cy, blocks, metadata, biomes, noise);
|
||||
for (int ci = 0; ci < 256; ci++) {
|
||||
int biomeID = biomes[ci].baseBiome.biomeID;
|
||||
RealisticBiomeBase.getBiome(biomeID).generateMapGen(blocks, metadata, worldSeed, worldObj, cmr, mapRand, cx, cy, simplex, cell, noise);
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(method = "<init>",
|
||||
at = @At(value = "RETURN"),
|
||||
require = 1)
|
||||
private void extendBorderNoise(World world, long l, CallbackInfo ci) {
|
||||
this.borderNoise = new float[ExtendedConstants.biomeIDCount];
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "doPopulate",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount,
|
||||
ordinal = 0),
|
||||
slice = @Slice(from = @At(value = "INVOKE",
|
||||
target = "Lrtg/world/biome/realistic/RealisticBiomeBase;rDecorateClay(Lnet/minecraft/world/World;Ljava/util/Random;IIFII)V")),
|
||||
require = 1)
|
||||
private int allBorderNoise(int constant) {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.rtg;
|
||||
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
import rtg.world.biome.WorldChunkManagerRTG;
|
||||
|
||||
@Mixin(WorldChunkManagerRTG.class)
|
||||
public abstract class WorldChunkManagerRTGMixin {
|
||||
@ModifyConstant(method = "getRainfall",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDMask),
|
||||
require = 2)
|
||||
private int extendBiomes(int constant) {
|
||||
return ExtendedConstants.biomeIDMask;
|
||||
}
|
||||
}
|
||||
+198
@@ -0,0 +1,198 @@
|
||||
/*
|
||||
* EndlessIDs
|
||||
*
|
||||
* Copyright (C) 2022-2024 FalsePattern
|
||||
* 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, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 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.potion.thaumcraft;
|
||||
|
||||
import com.falsepattern.endlessids.Tags;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.Unique;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
import thaumcraft.api.potions.PotionFluxTaint;
|
||||
import thaumcraft.api.potions.PotionVisExhaust;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import thaumcraft.common.config.Config;
|
||||
import thaumcraft.common.lib.potions.PotionBlurredVision;
|
||||
import thaumcraft.common.lib.potions.PotionDeathGaze;
|
||||
import thaumcraft.common.lib.potions.PotionInfectiousVisExhaust;
|
||||
import thaumcraft.common.lib.potions.PotionSunScorned;
|
||||
import thaumcraft.common.lib.potions.PotionThaumarhia;
|
||||
import thaumcraft.common.lib.potions.PotionUnnaturalHunger;
|
||||
import thaumcraft.common.lib.potions.PotionWarpWard;
|
||||
|
||||
import net.minecraft.potion.Potion;
|
||||
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@Mixin(value = Config.class,
|
||||
remap = false)
|
||||
public abstract class ConfigMixin {
|
||||
@Shadow public static Configuration config;
|
||||
|
||||
@Shadow public static int potionTaintPoisonID;
|
||||
|
||||
@Shadow public static int potionVisExhaustID;
|
||||
|
||||
@Shadow public static int potionInfVisExhaustID;
|
||||
|
||||
@Shadow public static int potionUnHungerID;
|
||||
|
||||
@Shadow public static int potionWarpWardID;
|
||||
|
||||
@Shadow public static int potionDeathGazeID;
|
||||
|
||||
@Shadow public static int potionBlurredID;
|
||||
|
||||
@Shadow public static int potionSunScornedID;
|
||||
|
||||
@Shadow public static int potionThaumarhiaID;
|
||||
|
||||
@Shadow
|
||||
public static void save() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason ID Extension, flatten recursion
|
||||
*/
|
||||
@Overwrite
|
||||
static int getNextPotionId(int id) {
|
||||
boolean next = true;
|
||||
while (next) {
|
||||
next = false;
|
||||
if (id <= 0 || id >= Potion.potionTypes.length || Potion.potionTypes[id] != null) {
|
||||
++id;
|
||||
if (id < Potion.potionTypes.length) {
|
||||
next = true;
|
||||
} else {
|
||||
id = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
@Unique
|
||||
private static final String EID$CATEGORY_POTION_IDS = "Potion_IDs";
|
||||
|
||||
@Inject(method = "initialize",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraftforge/common/config/Configuration;load()V"),
|
||||
require = 1)
|
||||
private static void addPotionIDsCategory(File file, CallbackInfo ci) {
|
||||
config.addCustomCategoryComment(EID$CATEGORY_POTION_IDS, "Potion IDs (extended by " + Tags.MODNAME + ")");
|
||||
}
|
||||
|
||||
@Unique
|
||||
private static int eid$tryGetPotionFromConfigOrAuto(String name, int id) {
|
||||
id = getNextPotionId(id);
|
||||
return config.get(EID$CATEGORY_POTION_IDS, name, id).getInt();
|
||||
}
|
||||
|
||||
@Inject(method = "initPotions",
|
||||
at = @At("HEAD"),
|
||||
cancellable = true,
|
||||
require = 1)
|
||||
private static void endlessIDsInitPotions(CallbackInfo ci) {
|
||||
ci.cancel();
|
||||
int id = 1000;
|
||||
|
||||
id = eid$tryGetPotionFromConfigOrAuto("potion_1_flux_taint", id);
|
||||
if (id >= 0) {
|
||||
potionTaintPoisonID = id;
|
||||
PotionFluxTaint.instance = new PotionFluxTaint(potionTaintPoisonID, true, 0x663377);
|
||||
PotionFluxTaint.init();
|
||||
Thaumcraft.log.info("Initializing PotionFluxTaint with id {}", id);
|
||||
}
|
||||
|
||||
id = eid$tryGetPotionFromConfigOrAuto("potion_2_vis_exhaust", id);
|
||||
if (id >= 0) {
|
||||
potionVisExhaustID = id;
|
||||
PotionVisExhaust.instance = new PotionVisExhaust(potionVisExhaustID, true, 0x664477);
|
||||
PotionVisExhaust.init();
|
||||
Thaumcraft.log.info("Initializing PotionVisExhaust with id {}", id);
|
||||
}
|
||||
|
||||
id = eid$tryGetPotionFromConfigOrAuto("potion_3_infectious_vis_exhaust", id);
|
||||
if (id >= 0) {
|
||||
potionInfVisExhaustID = id;
|
||||
PotionInfectiousVisExhaust.instance = new PotionInfectiousVisExhaust(potionInfVisExhaustID, true, 0x665577);
|
||||
PotionInfectiousVisExhaust.init();
|
||||
Thaumcraft.log.info("Initializing PotionInfectiousVisExhaust with id {}", id);
|
||||
}
|
||||
|
||||
id = eid$tryGetPotionFromConfigOrAuto("potion_4_unnatural_hunger", id);
|
||||
if (id >= 0) {
|
||||
potionUnHungerID = id;
|
||||
PotionUnnaturalHunger.instance = new PotionUnnaturalHunger(potionUnHungerID, true, 0x446633);
|
||||
PotionUnnaturalHunger.init();
|
||||
Thaumcraft.log.info("Initializing PotionUnnaturalHunger with id {}", id);
|
||||
}
|
||||
|
||||
id = eid$tryGetPotionFromConfigOrAuto("potion_5_warp_ward", id);
|
||||
if (id >= 0) {
|
||||
potionWarpWardID = id;
|
||||
PotionWarpWard.instance = new PotionWarpWard(potionWarpWardID, false, 0xe0f2f7);
|
||||
PotionWarpWard.init();
|
||||
Thaumcraft.log.info("Initializing PotionWarpWard with id {}", id);
|
||||
}
|
||||
|
||||
id = eid$tryGetPotionFromConfigOrAuto("potion_6_death_gaze", id);
|
||||
if (id >= 0) {
|
||||
potionDeathGazeID = id;
|
||||
PotionDeathGaze.instance = new PotionDeathGaze(potionDeathGazeID, true, 0x664433);
|
||||
PotionDeathGaze.init();
|
||||
Thaumcraft.log.info("Initializing PotionDeathGaze with id {}", id);
|
||||
}
|
||||
|
||||
id = eid$tryGetPotionFromConfigOrAuto("potion_7_blurred_vision", id);
|
||||
if (id >= 0) {
|
||||
potionBlurredID = id;
|
||||
PotionBlurredVision.instance = new PotionBlurredVision(potionBlurredID, true, 0x808080);
|
||||
PotionBlurredVision.init();
|
||||
Thaumcraft.log.info("Initializing PotionBlurredVision with id {}", id);
|
||||
}
|
||||
|
||||
id = eid$tryGetPotionFromConfigOrAuto("potion_8_sun_scorned", id);
|
||||
if (id >= 0) {
|
||||
potionSunScornedID = id;
|
||||
PotionSunScorned.instance = new PotionSunScorned(potionSunScornedID, true, 0xf8d86a);
|
||||
PotionSunScorned.init();
|
||||
Thaumcraft.log.info("Initializing PotionSunScorned with id {}", id);
|
||||
}
|
||||
|
||||
id = eid$tryGetPotionFromConfigOrAuto("potion_9_thaumarhia", id);
|
||||
if (id >= 0) {
|
||||
potionThaumarhiaID = id;
|
||||
PotionThaumarhia.instance = new PotionThaumarhia(potionThaumarhiaID, true, 0x664477);
|
||||
PotionThaumarhia.init();
|
||||
Thaumcraft.log.info("Initializing PotionThaumarhia with id {}", id);
|
||||
}
|
||||
save();
|
||||
}
|
||||
}
|
||||
@@ -85,6 +85,25 @@ public enum Mixin implements IMixin {
|
||||
//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
|
||||
@@ -173,6 +192,7 @@ public enum Mixin implements IMixin {
|
||||
//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"),
|
||||
@@ -254,6 +274,9 @@ public enum Mixin implements IMixin {
|
||||
S1DPacketEntityEffectMixin(Side.COMMON, condition(() -> GeneralConfig.extendPotion), "potion.vanilla.network.S1DPacketEntityEffectMixin"),
|
||||
S1EPacketRemoveEntityEffectMixin(Side.COMMON, condition(() -> GeneralConfig.extendPotion), "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
|
||||
|
||||
@@ -42,6 +42,7 @@ public enum TargetedMod implements ITargetedMod {
|
||||
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-")),
|
||||
|
||||
Reference in new issue
Block a user