mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Bodies
This commit is contained in:
parent
9421cd0b2d
commit
8e874afbd5
@ -55,6 +55,7 @@ public class SeedManager
|
|||||||
private final long carve;
|
private final long carve;
|
||||||
private final long deposit;
|
private final long deposit;
|
||||||
private final long post;
|
private final long post;
|
||||||
|
private final long bodies;
|
||||||
|
|
||||||
public SeedManager(long seed)
|
public SeedManager(long seed)
|
||||||
{
|
{
|
||||||
@ -77,6 +78,7 @@ public class SeedManager
|
|||||||
carve = of("carve");
|
carve = of("carve");
|
||||||
deposit = of("deposit");
|
deposit = of("deposit");
|
||||||
post = of("post");
|
post = of("post");
|
||||||
|
bodies = of("bodies");
|
||||||
}
|
}
|
||||||
|
|
||||||
private long of(String name)
|
private long of(String name)
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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.modifier;
|
||||||
|
|
||||||
|
import com.volmit.iris.engine.IrisEngine;
|
||||||
|
import com.volmit.iris.engine.actuator.IrisDecorantActuator;
|
||||||
|
import com.volmit.iris.engine.data.cache.Cache;
|
||||||
|
import com.volmit.iris.engine.framework.Engine;
|
||||||
|
import com.volmit.iris.engine.framework.EngineAssignedModifier;
|
||||||
|
import com.volmit.iris.engine.object.InferredType;
|
||||||
|
import com.volmit.iris.engine.object.IrisBiome;
|
||||||
|
import com.volmit.iris.engine.object.IrisDecorationPart;
|
||||||
|
import com.volmit.iris.engine.object.IrisDecorator;
|
||||||
|
import com.volmit.iris.engine.object.IrisPosition;
|
||||||
|
import com.volmit.iris.util.collection.KList;
|
||||||
|
import com.volmit.iris.util.collection.KMap;
|
||||||
|
import com.volmit.iris.util.data.B;
|
||||||
|
import com.volmit.iris.util.function.Consumer4;
|
||||||
|
import com.volmit.iris.util.hunk.Hunk;
|
||||||
|
import com.volmit.iris.util.mantle.Mantle;
|
||||||
|
import com.volmit.iris.util.mantle.MantleChunk;
|
||||||
|
import com.volmit.iris.util.math.M;
|
||||||
|
import com.volmit.iris.util.math.RNG;
|
||||||
|
import com.volmit.iris.util.matter.MatterCavern;
|
||||||
|
import com.volmit.iris.util.matter.slices.MarkerMatter;
|
||||||
|
import com.volmit.iris.util.scheduling.PrecisionStopwatch;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.block.data.BlockData;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
|
public class IrisBodyModifier extends EngineAssignedModifier<BlockData> {
|
||||||
|
private final RNG rng;
|
||||||
|
private final BlockData AIR = Material.CAVE_AIR.createBlockData();
|
||||||
|
private final BlockData WATER = Material.WATER.createBlockData();
|
||||||
|
private final BlockData LAVA = Material.LAVA.createBlockData();
|
||||||
|
|
||||||
|
public IrisBodyModifier(Engine engine) {
|
||||||
|
super(engine, "Bodies");
|
||||||
|
rng = new RNG(getEngine().getSeedManager().getBodies());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onModify(int x, int z, Hunk<BlockData> output, boolean multicore) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user