com.parzivail.util.gen.mc.GalaxiesBiomeSource Maven / Gradle / Ivy
package com.parzivail.util.gen.mc;
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import com.parzivail.util.gen.BiomeGenerator;
import java.util.stream.Stream;
import net.minecraft.class_1959;
import net.minecraft.class_1966;
import net.minecraft.class_6544;
import net.minecraft.class_6880;
import net.minecraft.class_6903;
import net.minecraft.class_7871;
import net.minecraft.class_7924;
public class GalaxiesBiomeSource extends class_1966
{
public static final Codec CODEC = RecordCodecBuilder.create(instance -> instance.group(
class_6903.method_46636(class_7924.field_41236)
).apply(instance, GalaxiesBiomeSource::new));
private final BiomeGenerator backingGen = new BiomeGenerator(10000);
private final class_7871 biomes;
protected GalaxiesBiomeSource(class_7871 biomes)
{
// TODO: implement this
super();
this.biomes = biomes;
}
@Override
protected Codec extends class_1966> method_28442()
{
return field_24713;
}
@Override
protected Stream> method_49494()
{
return Stream.empty();
}
@Override
public class_6880 method_38109(int x, int y, int z, class_6544.class_6552 noise)
{
return this.biomes.method_46747(this.backingGen.getBiome(x, z).backing());
}
public BiomeGenerator getBackingGen()
{
return backingGen;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy