mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-25 13:30:08 +00:00
Structure Hooks
This commit is contained in:
1 parent
6c5e991051
commit
986c7f12cd
5 files changed
+132
-1
No files matched your search
@@ -34,6 +34,8 @@ public interface IrisPlatform {
|
||||
|
||||
PlatformCapabilities capabilities();
|
||||
|
||||
PlatformStructureHooks structureHooks();
|
||||
|
||||
File dataFolder();
|
||||
|
||||
void dispatchConsoleCommand(String command);
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* Neutral access to the host platform's structure, structure-set and configured-feature registries plus placement entry points.
|
||||
*/
|
||||
public interface PlatformStructureHooks {
|
||||
List<String> structureKeys();
|
||||
|
||||
List<String> structureSetKeys();
|
||||
|
||||
List<String> structureBiomeKeys(String structureKey);
|
||||
|
||||
List<String> objectFeatureKeys();
|
||||
|
||||
boolean placeFeature(PlatformWorld world, int x, int y, int z, String featureKey, long seed);
|
||||
|
||||
int[] placeStructure(PlatformWorld world, int chunkX, int chunkZ, String structureKey, long seed, int maxSpan);
|
||||
|
||||
boolean supportsStructurePlacement();
|
||||
}
|
||||
Reference in new issue
Block a user