Biome Writer

This commit is contained in:
Brian Neumann-Fopiano
2026-06-12 02:44:29 -04:00
parent 986c7f12cd
commit ca10edef0c
7 changed files with 108 additions and 7 deletions
@@ -36,6 +36,8 @@ public interface IrisPlatform {
PlatformStructureHooks structureHooks();
PlatformBiomeWriter biomeWriter();
File dataFolder();
void dispatchConsoleCommand(String command);
@@ -0,0 +1,30 @@
/*
* Iris is a World Generator for Minecraft Bukkit Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU 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 General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.spi;
import java.util.List;
/**
* Resolves pack biome keys to platform biome ids for mantle injection and enumerates the platform's biome registry.
*/
public interface PlatformBiomeWriter {
int biomeIdFor(String key);
List<PlatformBiome> allBiomes();
}