mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-18 19:39:11 +00:00
5 files changed
+53
No files matched your search
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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.factorization;
|
||||
|
||||
import com.falsepattern.endlessids.mixin.helpers.BiomePatchHelper;
|
||||
import factorization.fzds.HammerChunkProvider;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
@Mixin(HammerChunkProvider.class)
|
||||
public abstract class HammerChunkProviderMixin {
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"),
|
||||
require = 1)
|
||||
private byte[] setBiomesTweaked(Chunk instance) {
|
||||
return BiomePatchHelper.getBiomeArrayTweaked(instance, i -> BiomeGenBase.plains);
|
||||
}
|
||||
}
|
||||
@@ -141,6 +141,9 @@ public enum Mixin implements IMixin {
|
||||
//region ExtraUtilities
|
||||
ChunkProviderEndOfTimeMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.EXTRAUTILITIES)), "biome.extrautilities.ChunkProviderEndOfTimeMixin"),
|
||||
//endregion ExtraUtilities
|
||||
//region Factorization
|
||||
HammerChunkProviderMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.FACTORIZATION)), "biome.factorization.HammerChunkProviderMixin"),
|
||||
//endregion
|
||||
//region Futurepack
|
||||
FuturepackBiomeGenSpaceMixin(Side.COMMON, condition(() -> GeneralConfig.extendBiome).and(require(TargetedMod.FUTUREPACK)), "biome.futurepack.BiomeGenSpaceMixin"),
|
||||
//endregion Futurepack
|
||||
|
||||
@@ -54,6 +54,7 @@ public enum TargetedMod implements ITargetedMod {
|
||||
EREBUS("The Erebus", false, contains("theerebus")),
|
||||
EXTRAPLANETS("Extra Planets", false, contains("extraplanets-")),
|
||||
EXTRAUTILITIES("Extra Utilities", false, contains("extrautilities-")),
|
||||
FACTORIZATION("Factorization", false, contains("factorization-")),
|
||||
FUTUREPACK("Futurepack", false, contains("futurepack")),
|
||||
GALACTICRAFTCORE("GalactiCraftCore", false, contains("galacticraftcore")),
|
||||
GALAXYSPACE("GalaxySpace", false, contains("galaxyspace-")),
|
||||
|
||||
Reference in new issue
Block a user