I have created a custom beach biome and it needs a GenLayer file to make it look like a beach. But I don't know how to add a GenLayer to GenLayer.java without editing the class file. Can anyone help? I need to add this code:
...
for (int j = 0; j < b0; ++j)
{
object = new GenLayerZoom((long)(1000 + j), (GenLayer)object);
if (j == 0)
{
object = new GenLayerAddIsland(3L, (GenLayer)object);
}
if (j == 1)
{
object = new GenLayerShore(1000L, (GenLayer)object);
}
if (j == 1)
{
object = new GenLayerSwampRivers(1000L, (GenLayer)object);
}
//this part
if (j == 1)
{
object = new GenLayerMOCShore(1000L, (GenLayer)object);
}
}
...
Unless you can do it somewhat like Jimmy04Creeper did for his Dimension tutorials (page 15 of his tutorial thread) and add it into some other part of the generation code which you happen to have control over?
Like a ChunkProvider for example if it's for a custom dimension?
Also there are an event which fires right as the BiomeGens start and you could use that to alter the gen layer result I've been told.
You may want to look into the events fired during world gen
Unless you can do it somewhat like Jimmy04Creeper did for his Dimension tutorials (page 15 of his tutorial thread) and add it into some other part of the generation code which you happen to have control over?
Like a ChunkProvider for example if it's for a custom dimension?
Also there are an event which fires right as the BiomeGens start and you could use that to alter the gen layer result I've been told.
You may want to look into the events fired during world gen