mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-17 08:45:06 +00:00
Nature's Compass compat
This commit is contained in:
5 files changed
+30
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.naturescompass;
|
||||
|
||||
import com.chaosthedude.naturescompass.util.BiomeUtils;
|
||||
import com.falsepattern.endlessids.PlaceholderBiome;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
|
||||
@Mixin(value = BiomeUtils.class,
|
||||
remap = false)
|
||||
public abstract class BiomeUtilsMixin {
|
||||
@Inject(method = "biomeIsBlacklisted",
|
||||
at = @At("HEAD"),
|
||||
cancellable = true,
|
||||
require = 1)
|
||||
private static void blockPlaceholders(BiomeGenBase biome, CallbackInfoReturnable<Boolean> cir) {
|
||||
if (biome instanceof PlaceholderBiome) {
|
||||
cir.setReturnValue(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -94,6 +94,9 @@ public enum Mixin implements IMixin {
|
||||
MFQMDataWatcherMixin(Side.COMMON, require(TargetedMod.MFQM).and(condition(() -> IEConfig.extendDataWatcher)),
|
||||
"mfqm.MFQMDataWatcherMixin"),
|
||||
//endregion MFQM->common
|
||||
//region NaturesCompass->common
|
||||
NaturesCompassBiomeUtilsMixin(Side.COMMON, require(TargetedMod.NATURESCOMPASS), "naturescompass.BiomeUtilsMixin"),
|
||||
//endregion NaturesCompass->common
|
||||
//region RTG->common
|
||||
RTGChunkProviderRTGMixin(Side.COMMON, require(TargetedMod.RTG), "rtg.ChunkProviderRTGMixin"),
|
||||
RTGLandscapeGeneratorMixin(Side.COMMON, require(TargetedMod.RTG), "rtg.LandscapeGeneratorMixin"),
|
||||
|
||||
@@ -18,6 +18,7 @@ public enum TargetedMod implements ITargetedMod {
|
||||
DRAGONAPI("DragonAPI", false, startsWith("dragonapi")),
|
||||
GALACTICRAFTCORE("GalactiCraftCore", false, startsWith("galacticraftcore")),
|
||||
MFQM("More Fun Quicksand Mod", false, startsWith("morefunquicksandmod-")),
|
||||
NATURESCOMPASS("Nature's Compass", true, startsWith("naturescompass")),
|
||||
RTG("Realistic Terrain Generation", true, startsWith("rtg-")),
|
||||
UBC("Underground Biomes Constructs", false, startsWith("undergroundbiomesconstructs-")),
|
||||
WORLDEDIT("WorldEdit", false, startsWith("worldedit-")),
|
||||
|
||||
Reference in new issue
Block a user