From 254b5c963b08936f15fcb879883abedffda02e8a Mon Sep 17 00:00:00 2001 From: Daniel Mills Date: Sun, 18 Jul 2021 19:36:18 -0400 Subject: [PATCH] Headless Generator --- .../engine/headless/HeadlessGenerator.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/main/java/com/volmit/iris/engine/headless/HeadlessGenerator.java diff --git a/src/main/java/com/volmit/iris/engine/headless/HeadlessGenerator.java b/src/main/java/com/volmit/iris/engine/headless/HeadlessGenerator.java new file mode 100644 index 000000000..b9802da7d --- /dev/null +++ b/src/main/java/com/volmit/iris/engine/headless/HeadlessGenerator.java @@ -0,0 +1,38 @@ +/* + * 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 . + */ + +package com.volmit.iris.engine.headless; + +import com.volmit.iris.engine.data.mca.NBTWorld; +import com.volmit.iris.engine.framework.EngineCompositeGenerator; +import lombok.Data; + +@Data +public class HeadlessGenerator { + private final HeadlessWorld world; + private final EngineCompositeGenerator generator; + private final NBTWorld writer; + + public HeadlessGenerator(HeadlessWorld world) + { + this.world = world; + generator = new EngineCompositeGenerator(world.getDimension().getLoadKey(), true); + generator.initialize(world.getWorld()); + writer = new NBTWorld(world.getWorld().worldFolder()); + } +}