mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-24 10:34:29 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f57bd9c353 | ||
|
|
38caffb85d | ||
|
|
6a10291318 |
No files matched your search
@@ -46,6 +46,7 @@ This mod also contains patches for the following mods:
|
|||||||
- Biome Wand
|
- Biome Wand
|
||||||
- BuildCraft
|
- BuildCraft
|
||||||
- ChromatiCraft
|
- ChromatiCraft
|
||||||
|
- Climate Control
|
||||||
- Compact Machines
|
- Compact Machines
|
||||||
- CoFH Lib
|
- CoFH Lib
|
||||||
- Dark World
|
- Dark World
|
||||||
|
|||||||
+4
-1
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("fpgradle-minecraft") version ("0.6.1")
|
id("fpgradle-minecraft") version ("0.7.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.falsepattern"
|
group = "com.falsepattern"
|
||||||
@@ -103,6 +103,9 @@ dependencies {
|
|||||||
//Buildcraft 7.1.24
|
//Buildcraft 7.1.24
|
||||||
compileOnly(deobfCurse("buildcraft-61811:3538651"))
|
compileOnly(deobfCurse("buildcraft-61811:3538651"))
|
||||||
|
|
||||||
|
//Climate Control 0.8.2
|
||||||
|
compileOnly(deobfCurse("climatecontrol-76544:2359685"))
|
||||||
|
|
||||||
//CoFH Lib 1.2.1-185
|
//CoFH Lib 1.2.1-185
|
||||||
compileOnly(deobfCurse("cofh-lib-220333:2388748"))
|
compileOnly(deobfCurse("cofh-lib-220333:2388748"))
|
||||||
|
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
@@ -84,7 +86,8 @@ done
|
|||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
# 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.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
|
|||||||
Vendored
+2
@@ -13,6 +13,8 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
@rem SPDX-License-Identifier: Apache-2.0
|
||||||
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%"=="" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|||||||
@@ -28,4 +28,8 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
|
||||||
|
}
|
||||||
|
|
||||||
rootProject.name = "EndlessIDs"
|
rootProject.name = "EndlessIDs"
|
||||||
+3
@@ -31,6 +31,8 @@ import org.spongepowered.asm.mixin.Overwrite;
|
|||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
import net.minecraft.world.biome.BiomeGenBase;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
@Mixin(value = BiomeWandItem.class,
|
@Mixin(value = BiomeWandItem.class,
|
||||||
remap = false)
|
remap = false)
|
||||||
@@ -39,6 +41,7 @@ public abstract class BiomeWandItemMixin {
|
|||||||
* @author FalsePattern
|
* @author FalsePattern
|
||||||
* @reason Biome ID extension
|
* @reason Biome ID extension
|
||||||
*/
|
*/
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
@Overwrite
|
@Overwrite
|
||||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||||
NBTTagCompound tag = stack.getTagCompound();
|
NBTTagCompound tag = stack.getTagCompound();
|
||||||
|
|||||||
+8
-3
@@ -78,9 +78,14 @@ public abstract class BiomesManagerMixin {
|
|||||||
return ExtendedConstants.biomeIDCount;
|
return ExtendedConstants.biomeIDCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ModifyConstant(method = {"preinit", "setUpBiomesFolder"},
|
@ModifyConstant(method = "preinit",
|
||||||
constant = {@Constant(stringValue = "\\biomes"), @Constant(stringValue = "\\main.cfg")})
|
constant = @Constant(stringValue = "\\biomes"))
|
||||||
private static String fixPaths(String original) {
|
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);
|
return AIDCStringFixer.fixString(original);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -43,14 +43,14 @@ public abstract class AdvancedRocketryMixin {
|
|||||||
@Constant(intValue = 118, ordinal = 0),
|
@Constant(intValue = 118, ordinal = 0),
|
||||||
@Constant(intValue = 119, ordinal = 0)},
|
@Constant(intValue = 119, ordinal = 0)},
|
||||||
require = 10)
|
require = 10)
|
||||||
private static int shiftBiomeIDsUp(int constant) {
|
private int shiftBiomeIDsUp(int constant) {
|
||||||
return constant + 9000;
|
return constant + 9000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ModifyConstant(method = "preInit",
|
@ModifyConstant(method = "preInit",
|
||||||
constant = @Constant(intValue = -2),
|
constant = @Constant(intValue = -2),
|
||||||
require = 1)
|
require = 1)
|
||||||
private static int changeDefaultDimID(int constant) {
|
private int changeDefaultDimID(int constant) {
|
||||||
return -5613;
|
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 {
|
public abstract class MessagePaintBiomeMixin {
|
||||||
|
|
||||||
@Shadow
|
@Shadow
|
||||||
private int posZ;
|
int posZ;
|
||||||
|
|
||||||
@Shadow
|
@Shadow
|
||||||
private int posX;
|
int posX;
|
||||||
|
|
||||||
@Shadow
|
@Shadow
|
||||||
private int biomeID;
|
int biomeID;
|
||||||
|
|
||||||
@Shadow
|
@Shadow
|
||||||
private int dimensionID;
|
int dimensionID;
|
||||||
|
|
||||||
@Shadow
|
@Shadow
|
||||||
private int posY;
|
int posY;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author FalsePattern
|
* @author FalsePattern
|
||||||
|
|||||||
@@ -85,6 +85,25 @@ public enum Mixin implements IMixin {
|
|||||||
//region Buildcraft
|
//region Buildcraft
|
||||||
BuildcraftEnergyMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.BUILDCRAFT)), "biome.buildcraft.BuildcraftEnergyMixin"),
|
BuildcraftEnergyMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.BUILDCRAFT)), "biome.buildcraft.BuildcraftEnergyMixin"),
|
||||||
//endregion Buildcraft
|
//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
|
//region CompactMachines
|
||||||
CMCubeToolsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.COMPACTMACHINES)), "biome.compactmachines.CubeToolsMixin"),
|
CMCubeToolsMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.COMPACTMACHINES)), "biome.compactmachines.CubeToolsMixin"),
|
||||||
//endregion CompactMachines
|
//endregion CompactMachines
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public enum TargetedMod implements ITargetedMod {
|
|||||||
BIOMETWEAKER("Biome Tweaker", false, contains("biometweaker-")),
|
BIOMETWEAKER("Biome Tweaker", false, contains("biometweaker-")),
|
||||||
BIOMEWAND("Biome Wand", false, contains("biome-wand")),
|
BIOMEWAND("Biome Wand", false, contains("biome-wand")),
|
||||||
BUILDCRAFT("BuildCraft", false, contains("buildcraft-").and(contains("compat").negate())),
|
BUILDCRAFT("BuildCraft", false, contains("buildcraft-").and(contains("compat").negate())),
|
||||||
|
CLIMATECONTROL("Climate Control", false, contains("climatecontrol-")),
|
||||||
COFHLIB("CoFH Lib", false, contains("cofhlib-")),
|
COFHLIB("CoFH Lib", false, contains("cofhlib-")),
|
||||||
COMPACTMACHINES("Compact Machines", false, contains("compactmachines-")),
|
COMPACTMACHINES("Compact Machines", false, contains("compactmachines-")),
|
||||||
DARKWORLD("Dark World", false, contains("darkworld-")),
|
DARKWORLD("Dark World", false, contains("darkworld-")),
|
||||||
|
|||||||
Reference in new issue
Block a user