Engine modes

This commit is contained in:
cyberpwn 2021-09-19 00:48:16 -04:00
parent c99c61cc7a
commit d891791929
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
/*
* Iris is a World Generator for Minecraft Bukkit Servers
* Copyright (c) 2021 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 com.volmit.iris.engine.framework;
import com.volmit.iris.util.documentation.BlockCoordinates;
import com.volmit.iris.util.hunk.Hunk;
import org.bukkit.block.Biome;
import org.bukkit.block.data.BlockData;
public interface EngineMode {
void close();
Engine getEngine();
@BlockCoordinates
void generate(int x, int z, Hunk<BlockData> blocks, Hunk<Biome> biomes, boolean multicore);
}

View File

@ -51,6 +51,7 @@ public class SeedManager {
private final long deposit; private final long deposit;
private final long post; private final long post;
private final long bodies; private final long bodies;
private final long mode;
@Setter(AccessLevel.NONE) @Setter(AccessLevel.NONE)
private long fullMixedSeed; private long fullMixedSeed;
@ -75,6 +76,7 @@ public class SeedManager {
deposit = of("deposit"); deposit = of("deposit");
post = of("post"); post = of("post");
bodies = of("bodies"); bodies = of("bodies");
mode = of("mode");
} }
private long of(String name) { private long of(String name) {