This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-07-13 23:33:38 +00:00
|
|
|
package com.thebrokenrail.energonrelics.mixin;
|
|
|
|
|
|
|
|
import com.thebrokenrail.energonrelics.EnergonRelics;
|
|
|
|
import net.minecraft.world.biome.Biome;
|
|
|
|
import net.minecraft.world.gen.GenerationStep;
|
|
|
|
import net.minecraft.world.gen.feature.DefaultBiomeFeatures;
|
|
|
|
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.CallbackInfo;
|
|
|
|
|
|
|
|
@Mixin(DefaultBiomeFeatures.class)
|
|
|
|
public class MixinDefaultBiomeFeatures {
|
|
|
|
@Inject(at = @At("RETURN"), method = "addDefaultOres")
|
|
|
|
private static void addDefaultOres(Biome biome, CallbackInfo info) {
|
|
|
|
biome.addFeature(GenerationStep.Feature.UNDERGROUND_ORES, EnergonRelics.VERIDIUM_ORE_FEATURE);
|
|
|
|
}
|
2020-07-22 01:23:33 +00:00
|
|
|
|
|
|
|
@Inject(at = @At("RETURN"), method = "addDefaultUndergroundStructures")
|
|
|
|
private static void addDefaultUndergroundStructures(Biome biome, CallbackInfo info) {
|
2020-07-25 17:34:16 +00:00
|
|
|
//StructureGeneratorBlock.addToBiome(biome);
|
2020-07-22 01:23:33 +00:00
|
|
|
}
|
2020-07-13 23:33:38 +00:00
|
|
|
}
|