server class refactoring
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-04-16 12:28:27 -04:00
parent ef067a0d34
commit 522910b64f
115 changed files with 259 additions and 279 deletions

View File

@ -1505,6 +1505,9 @@ Fix dig script function
Fix shovel functionality
Terrain editing/saving work
(04/16/2025)
Refactoring server classes under physics package

View File

@ -2,7 +2,7 @@ package electrosphere.client.block;
import org.joml.Vector3i;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
* Stores data about a chunk of blocks

View File

@ -19,8 +19,8 @@ import electrosphere.entity.Entity;
import electrosphere.logger.LoggerInterface;
import electrosphere.net.parser.net.message.TerrainMessage;
import electrosphere.renderer.meshgen.BlockMeshgen.BlockMeshData;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.terrain.manager.ServerTerrainManager;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
import electrosphere.util.math.HashUtils;

View File

@ -10,7 +10,7 @@ import electrosphere.entity.ClientEntityUtils;
import electrosphere.entity.Entity;
import electrosphere.entity.btree.BehaviorTree;
import electrosphere.entity.types.terrain.BlockChunkEntity;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.util.ds.octree.WorldOctTree.WorldOctTreeNode;
import electrosphere.util.math.GeomUtils;

View File

@ -7,7 +7,7 @@ import java.nio.FloatBuffer;
import org.joml.Vector3i;
import org.lwjgl.BufferUtils;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
/**
* A container of data about a chunk of fluid

View File

@ -13,8 +13,8 @@ import electrosphere.entity.Entity;
import electrosphere.entity.EntityDataStrings;
import electrosphere.entity.types.fluid.FluidChunk;
import electrosphere.renderer.shader.VisualShader;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
*

View File

@ -14,7 +14,7 @@ import electrosphere.engine.Globals;
import electrosphere.entity.EntityUtils;
import electrosphere.net.parser.net.message.TerrainMessage;
import electrosphere.renderer.shader.VisualShader;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
*

View File

@ -19,8 +19,8 @@ import electrosphere.logger.LoggerInterface;
import electrosphere.net.parser.net.message.TerrainMessage;
import electrosphere.renderer.meshgen.FluidChunkModelGeneration;
import electrosphere.renderer.model.Model;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.terrain.manager.ServerTerrainManager;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
/**
* Manages fluid storage and access on the client

View File

@ -4,7 +4,7 @@ import org.joml.Vector3d;
import org.joml.Vector3f;
import org.joml.Vector3i;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
* Client's data on the world

View File

@ -9,7 +9,7 @@ import electrosphere.client.terrain.editing.TerrainEditing;
import electrosphere.collision.CollisionEngine;
import electrosphere.engine.Globals;
import electrosphere.entity.Entity;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
* Utilities for interacting with voxels from the client

View File

@ -5,7 +5,7 @@ import java.util.Set;
import org.joml.Vector3i;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
* A container of data about a chunk of terrain

View File

@ -14,7 +14,7 @@ import electrosphere.entity.btree.BehaviorTree;
import electrosphere.entity.types.terrain.TerrainChunk;
import electrosphere.renderer.meshgen.TransvoxelModelGeneration;
import electrosphere.renderer.meshgen.TransvoxelModelGeneration.TransvoxelChunkData;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.util.ds.octree.WorldOctTree.WorldOctTreeNode;
import electrosphere.util.math.GeomUtils;

View File

@ -17,7 +17,7 @@ import electrosphere.engine.Globals;
import electrosphere.entity.EntityUtils;
import electrosphere.net.parser.net.message.TerrainMessage;
import electrosphere.renderer.shader.VisualShader;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
@Deprecated
/**

View File

@ -16,8 +16,8 @@ import electrosphere.entity.ClientEntityUtils;
import electrosphere.entity.Entity;
import electrosphere.entity.btree.BehaviorTree;
import electrosphere.renderer.buffer.HomogenousUniformBuffer.HomogenousBufferTypes;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.renderer.buffer.ShaderAttribute;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.util.ds.octree.WorldOctTree.WorldOctTreeNode;
import electrosphere.util.math.GeomUtils;

View File

@ -13,7 +13,7 @@ import electrosphere.engine.Globals;
import electrosphere.entity.EntityUtils;
import electrosphere.game.data.foliage.type.FoliageType;
import electrosphere.logger.LoggerInterface;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.util.ds.octree.WorldOctTree;
import electrosphere.util.ds.octree.WorldOctTree.WorldOctTreeNode;
import electrosphere.util.math.GeomUtils;

View File

@ -28,7 +28,7 @@ import electrosphere.entity.types.common.CommonEntityUtils;
import electrosphere.game.data.foliage.type.FoliageType;
import electrosphere.logger.LoggerInterface;
import electrosphere.renderer.actor.instance.TextureInstancedActor;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
* Generates a foliage model

View File

@ -30,8 +30,8 @@ import electrosphere.logger.LoggerInterface;
import electrosphere.net.parser.net.message.TerrainMessage;
import electrosphere.renderer.meshgen.TransvoxelModelGeneration;
import electrosphere.renderer.model.Model;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.terrain.manager.ServerTerrainManager;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
import electrosphere.util.math.HashUtils;
/**

View File

@ -5,8 +5,8 @@ import electrosphere.client.fluid.manager.ClientFluidManager;
import electrosphere.engine.Globals;
import electrosphere.renderer.ui.imgui.ImGuiWindow;
import electrosphere.renderer.ui.imgui.ImGuiWindow.ImGuiWindowCallback;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.fluid.manager.ServerFluidManager;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidManager;
import imgui.ImGui;
/**

View File

@ -5,8 +5,8 @@ import electrosphere.engine.signal.Signal.SignalType;
import electrosphere.renderer.ui.imgui.ImGuiWindow;
import electrosphere.renderer.ui.imgui.ImGuiWindow.ImGuiWindowCallback;
import electrosphere.server.datacell.gridded.GriddedDataCellManager;
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
import electrosphere.server.physics.terrain.models.TerrainModel;
import imgui.ImGui;
import imgui.type.ImInt;

View File

@ -11,7 +11,7 @@ import electrosphere.renderer.ui.imgui.ImGuiLinePlot;
import electrosphere.renderer.ui.imgui.ImGuiWindow;
import electrosphere.renderer.ui.imgui.ImGuiLinePlot.ImGuiLinePlotDataset;
import electrosphere.renderer.ui.imgui.ImGuiWindow.ImGuiWindowCallback;
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
import imgui.ImGui;
/**

View File

@ -3,7 +3,7 @@ package electrosphere.collision;
import electrosphere.client.scene.ClientWorldData;
import electrosphere.client.terrain.manager.ClientTerrainManager;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.server.terrain.manager.ServerTerrainManager;
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
import org.joml.Vector3f;

View File

@ -13,8 +13,8 @@ import electrosphere.logger.LoggerInterface;
import electrosphere.net.parser.net.message.TerrainMessage;
import electrosphere.net.server.ServerConnectionHandler;
import electrosphere.renderer.ui.elements.Window;
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
import electrosphere.server.saves.SaveUtils;
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
/**
* Loads the chunk generation testing realm

View File

@ -3,7 +3,7 @@ package electrosphere.entity.scene;
import java.util.Objects;
import electrosphere.server.datacell.gridded.GriddedDataCellManager;
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
/**
* Generates scene files where appropriate (ie, if playing the procedurally generated level)

View File

@ -12,8 +12,8 @@ import electrosphere.game.server.world.ServerWorldData;
import electrosphere.server.content.ServerContentManager;
import electrosphere.server.datacell.Realm;
import electrosphere.server.datacell.gridded.GriddedDataCellManager;
import electrosphere.server.terrain.generation.DefaultChunkGenerator;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.generation.DefaultChunkGenerator;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.util.FileUtils;
/**

View File

@ -4,9 +4,9 @@ import java.io.File;
import java.util.LinkedList;
import java.util.List;
import electrosphere.server.terrain.generation.noise.NoiseContainer;
import electrosphere.server.terrain.generation.noise.NoiseSampler;
import electrosphere.server.terrain.generation.noise.operators.NoiseOperoatorInvoke;
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperoatorInvoke;
import electrosphere.util.FileUtils;
/**

View File

@ -1,14 +1,14 @@
package electrosphere.game.server.world;
import electrosphere.client.block.BlockChunkData;
import electrosphere.server.block.manager.ServerBlockManager;
import electrosphere.server.fluid.generation.DefaultFluidGenerator;
import electrosphere.server.fluid.manager.ServerFluidManager;
import electrosphere.server.terrain.generation.DefaultChunkGenerator;
import electrosphere.server.terrain.generation.TestGenerationChunkGenerator;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.terrain.manager.ServerTerrainManager;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.block.manager.ServerBlockManager;
import electrosphere.server.physics.fluid.generation.DefaultFluidGenerator;
import electrosphere.server.physics.fluid.manager.ServerFluidManager;
import electrosphere.server.physics.terrain.generation.DefaultChunkGenerator;
import electrosphere.server.physics.terrain.generation.TestGenerationChunkGenerator;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
import electrosphere.server.physics.terrain.models.TerrainModel;
import electrosphere.util.FileUtils;
import org.joml.Vector3d;

View File

@ -18,9 +18,9 @@ import electrosphere.net.server.ServerConnectionHandler;
import electrosphere.net.server.player.Player;
import electrosphere.net.template.ServerProtocolTemplate;
import electrosphere.server.datacell.Realm;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.terrain.editing.TerrainEditing;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.terrain.editing.TerrainEditing;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
* Server handling for terrain network messages

View File

@ -16,7 +16,7 @@ import electrosphere.renderer.model.Material;
import electrosphere.renderer.model.Mesh;
import electrosphere.renderer.model.Model;
import electrosphere.renderer.shader.VisualShader;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import static org.lwjgl.opengl.GL30.glBindVertexArray;

View File

@ -18,7 +18,7 @@ import electrosphere.engine.Globals;
import electrosphere.renderer.model.Material;
import electrosphere.renderer.model.Mesh;
import electrosphere.renderer.model.Model;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
public class TerrainChunkModelGeneration {

View File

@ -18,7 +18,7 @@ import electrosphere.mem.VectorPool;
import electrosphere.renderer.model.Material;
import electrosphere.renderer.model.Mesh;
import electrosphere.renderer.model.Model;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
* Utility functions for generating transvoxel based meshes

View File

@ -11,7 +11,7 @@ import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeFoliageDescription;
import electrosphere.server.datacell.Realm;
import electrosphere.server.datacell.ServerDataCell;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import io.github.studiorailgun.NoiseUtils;
/**

View File

@ -15,11 +15,11 @@ import electrosphere.engine.Globals;
import electrosphere.entity.Entity;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.net.server.player.Player;
import electrosphere.server.chemistry.ServerChemistryCollisionCallback;
import electrosphere.server.collision.ServerHitboxResolutionCallback;
import electrosphere.server.content.ServerContentManager;
import electrosphere.server.datacell.gridded.GriddedDataCellManager;
import electrosphere.server.fluid.simulator.FluidAcceleratedSimulator;
import electrosphere.server.physics.chemistry.ServerChemistryCollisionCallback;
import electrosphere.server.physics.collision.ServerHitboxResolutionCallback;
import electrosphere.server.physics.fluid.simulator.FluidAcceleratedSimulator;
/**
* Manages all realms for the engine. Should be a singleton

View File

@ -29,7 +29,6 @@ import electrosphere.net.parser.net.message.EntityMessage;
import electrosphere.net.parser.net.message.TerrainMessage;
import electrosphere.net.server.player.Player;
import electrosphere.net.server.protocol.TerrainProtocol;
import electrosphere.server.block.manager.ServerBlockManager;
import electrosphere.server.content.ServerContentManager;
import electrosphere.server.content.serialization.ContentSerialization;
import electrosphere.server.datacell.Realm;
@ -37,12 +36,13 @@ import electrosphere.server.datacell.ServerDataCell;
import electrosphere.server.datacell.interfaces.DataCellManager;
import electrosphere.server.datacell.interfaces.VoxelCellManager;
import electrosphere.server.datacell.physics.PhysicsDataCell;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.fluid.manager.ServerFluidManager;
import electrosphere.server.terrain.manager.ServerTerrainManager;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.block.manager.ServerBlockManager;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidManager;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
import electrosphere.server.physics.terrain.models.TerrainModel;
import electrosphere.util.math.HashUtils;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
/**
* Implementation of DataCellManager that lays out cells in a logical grid (array). Useful for eg 3d terrain gridded world.

View File

@ -3,8 +3,8 @@ package electrosphere.server.datacell.interfaces;
import org.joml.Vector3i;
import electrosphere.client.block.BlockChunkData;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
* Extension of a DataCellManager that provides voxel terrain access and editing functions

View File

@ -3,7 +3,7 @@ package electrosphere.server.datacell.physics;
import electrosphere.engine.Globals;
import electrosphere.renderer.shader.VisualShader;
import electrosphere.server.datacell.Realm;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import java.util.HashMap;
import java.util.HashSet;

View File

@ -11,7 +11,7 @@ import electrosphere.entity.types.terrain.TerrainChunk;
import electrosphere.renderer.meshgen.BlockMeshgen;
import electrosphere.renderer.meshgen.BlockMeshgen.BlockMeshData;
import electrosphere.server.datacell.Realm;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import org.joml.Vector3i;
import org.ode4j.ode.DBody;

View File

@ -1,24 +0,0 @@
package electrosphere.server.entitygroup;
import java.util.LinkedList;
import java.util.List;
import electrosphere.entity.Entity;
public class EntityGroup {
List<Entity> members;
public EntityGroup(){
members = new LinkedList<Entity>();
}
public void addMember(Entity newMember){
members.add(newMember);
}
public List<Entity> getMemebers(){
return members;
}
}

View File

@ -1,7 +1,7 @@
package electrosphere.server.pathfinding;
import electrosphere.server.pathfinding.navmesh.NavMesh;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import java.util.LinkedList;
import java.util.List;

View File

@ -3,7 +3,7 @@ package electrosphere.server.pathfinding;
import electrosphere.server.pathfinding.blocker.NavBlocker;
import electrosphere.server.pathfinding.blocker.NavTerrainBlockerCache;
import electrosphere.server.pathfinding.navmesh.NavMesh;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import java.util.HashMap;
import java.util.LinkedList;

View File

@ -6,7 +6,7 @@ import electrosphere.server.pathfinding.blocker.NavBlocker;
import electrosphere.server.pathfinding.navmesh.NavCube;
import electrosphere.server.pathfinding.navmesh.NavMesh;
import electrosphere.server.pathfinding.navmesh.NavShape;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import java.util.LinkedList;
import java.util.List;

View File

@ -1,6 +1,6 @@
package electrosphere.server.pathfinding.blocker;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
*

View File

@ -1,4 +1,4 @@
package electrosphere.server.block.diskmap;
package electrosphere.server.physics.block.diskmap;
import java.io.ByteArrayOutputStream;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package electrosphere.server.block.editing;
package electrosphere.server.physics.block.editing;
import org.joml.Vector3i;

View File

@ -1,4 +1,4 @@
package electrosphere.server.block.manager;
package electrosphere.server.physics.block.manager;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
@ -7,7 +7,7 @@ import electrosphere.client.block.BlockChunkCache;
import electrosphere.client.block.BlockChunkData;
import electrosphere.engine.Globals;
import electrosphere.logger.LoggerInterface;
import electrosphere.server.block.diskmap.ServerBlockChunkDiskMap;
import electrosphere.server.physics.block.diskmap.ServerBlockChunkDiskMap;
/**
* A job that fetches a chunk, either by generating it or by reading it from disk

View File

@ -1,10 +1,10 @@
package electrosphere.server.block.manager;
package electrosphere.server.physics.block.manager;
import electrosphere.client.block.BlockChunkCache;
import electrosphere.client.block.BlockChunkData;
import electrosphere.engine.Globals;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.server.block.diskmap.ServerBlockChunkDiskMap;
import electrosphere.server.physics.block.diskmap.ServerBlockChunkDiskMap;
import electrosphere.util.annotation.Exclude;
import java.util.concurrent.ExecutorService;

View File

@ -1,4 +1,4 @@
package electrosphere.server.chemistry;
package electrosphere.server.physics.chemistry;
import org.joml.Vector3d;
import org.ode4j.ode.DContactGeom;

View File

@ -1,4 +1,4 @@
package electrosphere.server.collision;
package electrosphere.server.physics.collision;
import org.joml.Vector3d;
import org.ode4j.ode.DContactGeom;

View File

@ -1,4 +1,4 @@
package electrosphere.server.fluid.diskmap;
package electrosphere.server.physics.fluid.diskmap;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@ -11,8 +11,8 @@ import java.util.zip.InflaterOutputStream;
import electrosphere.engine.Globals;
import electrosphere.logger.LoggerInterface;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.util.FileUtils;
/**

View File

@ -1,7 +1,7 @@
package electrosphere.server.fluid.generation;
package electrosphere.server.physics.fluid.generation;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.fluid.models.FluidModel;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.fluid.models.FluidModel;
public class DefaultFluidGenerator implements FluidGenerator {

View File

@ -1,7 +1,7 @@
package electrosphere.server.fluid.generation;
package electrosphere.server.physics.fluid.generation;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.fluid.models.FluidModel;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.fluid.models.FluidModel;
/**
* Generates fluid

View File

@ -1,4 +1,4 @@
package electrosphere.server.fluid.manager;
package electrosphere.server.physics.fluid.manager;
import java.nio.ByteBuffer;

View File

@ -1,15 +1,15 @@
package electrosphere.server.fluid.manager;
package electrosphere.server.physics.fluid.manager;
import electrosphere.engine.Globals;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.server.fluid.diskmap.FluidDiskMap;
import electrosphere.server.fluid.generation.FluidGenerator;
import electrosphere.server.fluid.models.FluidModel;
import electrosphere.server.fluid.simulator.FluidAcceleratedSimulator;
import electrosphere.server.fluid.simulator.ServerFluidSimulator;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.terrain.manager.ServerTerrainManager;
import electrosphere.server.physics.fluid.diskmap.FluidDiskMap;
import electrosphere.server.physics.fluid.generation.FluidGenerator;
import electrosphere.server.physics.fluid.models.FluidModel;
import electrosphere.server.physics.fluid.simulator.FluidAcceleratedSimulator;
import electrosphere.server.physics.fluid.simulator.ServerFluidSimulator;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainManager;
import electrosphere.util.FileUtils;
import electrosphere.util.annotation.Exclude;

View File

@ -1,4 +1,4 @@
package electrosphere.server.fluid.models;
package electrosphere.server.physics.fluid.models;
import electrosphere.util.annotation.Exclude;

View File

@ -1,10 +1,10 @@
package electrosphere.server.fluid.simulator;
package electrosphere.server.physics.fluid.simulator;
import java.io.File;
import java.util.List;
import electrosphere.logger.LoggerInterface;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
/**
* A c-accelerated fluid simulator

View File

@ -1,8 +1,8 @@
package electrosphere.server.fluid.simulator;
package electrosphere.server.physics.fluid.simulator;
import java.util.List;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
/**
* Simulates server fluid chunks via cellular automata

View File

@ -1,8 +1,8 @@
package electrosphere.server.fluid.simulator;
package electrosphere.server.physics.fluid.simulator;
import java.util.List;
import electrosphere.server.fluid.manager.ServerFluidChunk;
import electrosphere.server.physics.fluid.manager.ServerFluidChunk;
/**
* A system capable of simulating a server fluid chunk for a single frame

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.diskmap;
package electrosphere.server.physics.terrain.diskmap;
import java.io.ByteArrayOutputStream;
import java.io.File;
@ -16,8 +16,8 @@ import java.util.zip.InflaterOutputStream;
import electrosphere.client.terrain.cache.ChunkData;
import electrosphere.engine.Globals;
import electrosphere.logger.LoggerInterface;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.saves.SaveUtils;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.util.FileUtils;
import electrosphere.util.annotation.Exclude;

View File

@ -1,11 +1,11 @@
package electrosphere.server.terrain.editing;
package electrosphere.server.physics.terrain.editing;
import org.joml.Vector3d;
import org.joml.Vector3i;
import electrosphere.server.datacell.Realm;
import electrosphere.server.datacell.interfaces.VoxelCellManager;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
/**
* Provides utilities for editing terrain (particularly brushes, etc)

View File

@ -1,10 +1,10 @@
package electrosphere.server.terrain.generation;
package electrosphere.server.physics.terrain.generation;
import electrosphere.client.terrain.cache.ChunkData;
import electrosphere.entity.scene.RealmDescriptor;
import electrosphere.server.terrain.generation.interfaces.ChunkGenerator;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.models.TerrainModel;
/**
* An arena terrain chunk generator

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation;
package electrosphere.server.physics.terrain.generation;
import java.util.HashMap;
import java.util.Map;
@ -11,19 +11,19 @@ import electrosphere.engine.Globals;
import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.server.terrain.generation.heightmap.EmptySkyGen;
import electrosphere.server.terrain.generation.heightmap.HeightmapGenerator;
import electrosphere.server.terrain.generation.heightmap.HillsGen;
import electrosphere.server.terrain.generation.heightmap.MountainGen;
import electrosphere.server.terrain.generation.heightmap.PlainsGen;
import electrosphere.server.terrain.generation.interfaces.ChunkGenerator;
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.terrain.generation.voxelphase.AnimeMountainsGen;
import electrosphere.server.terrain.generation.voxelphase.HillsVoxelGen;
import electrosphere.server.terrain.generation.voxelphase.MountainVoxelGen;
import electrosphere.server.terrain.generation.voxelphase.VoxelGenerator;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.generation.heightmap.EmptySkyGen;
import electrosphere.server.physics.terrain.generation.heightmap.HeightmapGenerator;
import electrosphere.server.physics.terrain.generation.heightmap.HillsGen;
import electrosphere.server.physics.terrain.generation.heightmap.MountainGen;
import electrosphere.server.physics.terrain.generation.heightmap.PlainsGen;
import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator;
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.physics.terrain.generation.voxelphase.AnimeMountainsGen;
import electrosphere.server.physics.terrain.generation.voxelphase.HillsVoxelGen;
import electrosphere.server.physics.terrain.generation.voxelphase.MountainVoxelGen;
import electrosphere.server.physics.terrain.generation.voxelphase.VoxelGenerator;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.models.TerrainModel;
/**
* Dedicated script-based chunk generator

View File

@ -1,12 +1,12 @@
package electrosphere.server.terrain.generation;
package electrosphere.server.physics.terrain.generation;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import electrosphere.client.terrain.cache.ChunkData;
import electrosphere.server.terrain.generation.interfaces.ChunkGenerator;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.models.TerrainModel;
/**
* Chunk generator for overworld chunks

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation;
package electrosphere.server.physics.terrain.generation;
import java.util.HashMap;
import java.util.Map;
@ -10,22 +10,22 @@ import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
import electrosphere.game.data.voxel.sampler.SamplerFile;
import electrosphere.game.server.world.ServerWorldData;
import electrosphere.server.terrain.generation.heightmap.EmptySkyGen;
import electrosphere.server.terrain.generation.heightmap.HeightmapGenerator;
import electrosphere.server.terrain.generation.heightmap.HeightmapNoiseGen;
import electrosphere.server.terrain.generation.heightmap.HillsGen;
import electrosphere.server.terrain.generation.heightmap.MountainGen;
import electrosphere.server.terrain.generation.heightmap.PlainsGen;
import electrosphere.server.terrain.generation.interfaces.ChunkGenerator;
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.terrain.generation.interfaces.GenerationContext;
import electrosphere.server.terrain.generation.voxelphase.AnimeMountainsGen;
import electrosphere.server.terrain.generation.voxelphase.HillsVoxelGen;
import electrosphere.server.terrain.generation.voxelphase.MountainVoxelGen;
import electrosphere.server.terrain.generation.voxelphase.NoiseVoxelGen;
import electrosphere.server.terrain.generation.voxelphase.VoxelGenerator;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.generation.heightmap.EmptySkyGen;
import electrosphere.server.physics.terrain.generation.heightmap.HeightmapGenerator;
import electrosphere.server.physics.terrain.generation.heightmap.HeightmapNoiseGen;
import electrosphere.server.physics.terrain.generation.heightmap.HillsGen;
import electrosphere.server.physics.terrain.generation.heightmap.MountainGen;
import electrosphere.server.physics.terrain.generation.heightmap.PlainsGen;
import electrosphere.server.physics.terrain.generation.interfaces.ChunkGenerator;
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.physics.terrain.generation.interfaces.GenerationContext;
import electrosphere.server.physics.terrain.generation.voxelphase.AnimeMountainsGen;
import electrosphere.server.physics.terrain.generation.voxelphase.HillsVoxelGen;
import electrosphere.server.physics.terrain.generation.voxelphase.MountainVoxelGen;
import electrosphere.server.physics.terrain.generation.voxelphase.NoiseVoxelGen;
import electrosphere.server.physics.terrain.generation.voxelphase.VoxelGenerator;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.models.TerrainModel;
import electrosphere.util.noise.OpenSimplex2S;
import io.github.studiorailgun.MathUtils;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.continentphase;
package electrosphere.server.physics.terrain.generation.continentphase;
/**
* Contains information about a continent

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.continentphase;
package electrosphere.server.physics.terrain.generation.continentphase;
import java.util.Random;
import java.util.concurrent.CountDownLatch;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.continentphase;
package electrosphere.server.physics.terrain.generation.continentphase;
/**
*

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.continentphase;
package electrosphere.server.physics.terrain.generation.continentphase;
import java.awt.Color;
import java.awt.Graphics;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.continentphase;
package electrosphere.server.physics.terrain.generation.continentphase;
/**
*

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.continentphase;
package electrosphere.server.physics.terrain.generation.continentphase;
import java.util.ArrayList;
import java.util.Iterator;
@ -154,7 +154,7 @@ class TectonicSimulation {
for(int x = 0; x < DIMENSION; x++){
for(int y = 0; y < DIMENSION; y++){
if(asthenosphereHeat[x][y] > 25){
if(electrosphere.server.terrain.generation.continentphase.Utilities.random_Integer(1, 10, rand) == 10){
if(electrosphere.server.physics.terrain.generation.continentphase.Utilities.random_Integer(1, 10, rand) == 10){
elevation[x][y] = elevation[x][y] + 1;
if(elevation[x][y] > 100){
elevation[x][y] = 100;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.continentphase;
package electrosphere.server.physics.terrain.generation.continentphase;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
@ -14,7 +14,7 @@ import java.util.Random;
import javax.swing.JFrame;
import electrosphere.logger.LoggerInterface;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.models.TerrainModel;
/**
*

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.continentphase;
package electrosphere.server.physics.terrain.generation.continentphase;
import java.awt.Point;
import java.io.BufferedReader;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.continentphase;
package electrosphere.server.physics.terrain.generation.continentphase;
/**
* Int based 2 dimension vector

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.heightmap;
package electrosphere.server.physics.terrain.generation.heightmap;
public class EmptySkyGen implements HeightmapGenerator {

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.heightmap;
package electrosphere.server.physics.terrain.generation.heightmap;
/**
* Generates height values for terrain

View File

@ -1,7 +1,7 @@
package electrosphere.server.terrain.generation.heightmap;
package electrosphere.server.physics.terrain.generation.heightmap;
import electrosphere.game.data.voxel.sampler.SamplerFile;
import electrosphere.server.terrain.generation.noise.NoiseSampler;
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
/**
* Generates a heightmap using a noise definition

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.heightmap;
package electrosphere.server.physics.terrain.generation.heightmap;
import electrosphere.engine.Globals;
import electrosphere.util.noise.OpenSimplex2S;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.heightmap;
package electrosphere.server.physics.terrain.generation.heightmap;
import electrosphere.util.noise.OpenSimplex2S;
import io.github.studiorailgun.NoiseUtils;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.heightmap;
package electrosphere.server.physics.terrain.generation.heightmap;
import electrosphere.util.noise.OpenSimplex2S;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.heightmap;
package electrosphere.server.physics.terrain.generation.heightmap;
import electrosphere.util.noise.OpenSimplex2S;

View File

@ -1,7 +1,7 @@
package electrosphere.server.terrain.generation.interfaces;
package electrosphere.server.physics.terrain.generation.interfaces;
import electrosphere.server.terrain.manager.ServerTerrainChunk;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.manager.ServerTerrainChunk;
import electrosphere.server.physics.terrain.models.TerrainModel;
/**
* An interface for generating chunks. Used to isolate different algorithms for getting chunks from one another.

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.interfaces;
package electrosphere.server.physics.terrain.generation.interfaces;
import org.graalvm.polyglot.HostAccess.Export;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.interfaces;
package electrosphere.server.physics.terrain.generation.interfaces;
import electrosphere.game.server.world.ServerWorldData;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.interfaces;
package electrosphere.server.physics.terrain.generation.interfaces;
import electrosphere.game.data.biome.BiomeData;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.macro;
package electrosphere.server.physics.terrain.generation.macro;
import java.util.List;
import java.util.Random;
@ -6,7 +6,7 @@ import java.util.Random;
import electrosphere.engine.Globals;
import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeTypeMap;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.models.TerrainModel;
/**
* The default approach to generating macro data

View File

@ -1,9 +1,9 @@
package electrosphere.server.terrain.generation.macro;
package electrosphere.server.physics.terrain.generation.macro;
import electrosphere.engine.Globals;
import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeTypeMap;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.models.TerrainModel;
/**
* Generates a world that is a single biome

View File

@ -1,6 +1,6 @@
package electrosphere.server.terrain.generation.macro;
package electrosphere.server.physics.terrain.generation.macro;
import electrosphere.server.terrain.models.TerrainModel;
import electrosphere.server.physics.terrain.models.TerrainModel;
/**
* Populates a terrain model's macro data

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.noise;
package electrosphere.server.physics.terrain.generation.noise;
import java.util.Collection;

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.noise;
package electrosphere.server.physics.terrain.generation.noise;
import java.lang.reflect.Type;
@ -7,14 +7,14 @@ import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorAdd;
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorClamp;
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorConst;
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorDomainWarp;
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorMul;
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorOpenSimplex;
import electrosphere.server.terrain.generation.noise.operators.NoiseOperatorVoronoi;
import electrosphere.server.terrain.generation.noise.operators.NoiseOperoatorInvoke;
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorAdd;
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorClamp;
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorConst;
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorDomainWarp;
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorMul;
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorOpenSimplex;
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperatorVoronoi;
import electrosphere.server.physics.terrain.generation.noise.operators.NoiseOperoatorInvoke;
/**
* Deserializes noise modules

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.noise;
package electrosphere.server.physics.terrain.generation.noise;
/**
* A noce function that can be sampled in octaves

View File

@ -1,4 +1,4 @@
package electrosphere.server.terrain.generation.noise;
package electrosphere.server.physics.terrain.generation.noise;
/**
* A noise module that can sample values

View File

@ -1,10 +1,10 @@
package electrosphere.server.terrain.generation.noise.operators;
package electrosphere.server.physics.terrain.generation.noise.operators;
import java.util.Arrays;
import java.util.Collection;
import electrosphere.server.terrain.generation.noise.NoiseContainer;
import electrosphere.server.terrain.generation.noise.NoiseSampler;
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
public class NoiseOperatorAdd implements NoiseContainer {

View File

@ -1,10 +1,10 @@
package electrosphere.server.terrain.generation.noise.operators;
package electrosphere.server.physics.terrain.generation.noise.operators;
import java.util.Arrays;
import java.util.Collection;
import electrosphere.server.terrain.generation.noise.NoiseContainer;
import electrosphere.server.terrain.generation.noise.NoiseSampler;
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
import io.github.studiorailgun.MathUtils;
/**

View File

@ -1,6 +1,6 @@
package electrosphere.server.terrain.generation.noise.operators;
package electrosphere.server.physics.terrain.generation.noise.operators;
import electrosphere.server.terrain.generation.noise.NoiseSampler;
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
/**
* Gets a constant value

View File

@ -1,10 +1,10 @@
package electrosphere.server.terrain.generation.noise.operators;
package electrosphere.server.physics.terrain.generation.noise.operators;
import java.util.Arrays;
import java.util.Collection;
import electrosphere.server.terrain.generation.noise.NoiseContainer;
import electrosphere.server.terrain.generation.noise.NoiseSampler;
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
/**
* The warp operator

View File

@ -1,10 +1,10 @@
package electrosphere.server.terrain.generation.noise.operators;
package electrosphere.server.physics.terrain.generation.noise.operators;
import java.util.Arrays;
import java.util.Collection;
import electrosphere.server.terrain.generation.noise.NoiseContainer;
import electrosphere.server.terrain.generation.noise.NoiseSampler;
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
/**
* Multiplies one noise source by another

View File

@ -1,6 +1,6 @@
package electrosphere.server.terrain.generation.noise.operators;
package electrosphere.server.physics.terrain.generation.noise.operators;
import electrosphere.server.terrain.generation.noise.NoiseOctaveSampler;
import electrosphere.server.physics.terrain.generation.noise.NoiseOctaveSampler;
import electrosphere.util.noise.OpenSimplex2S;
/**

View File

@ -1,6 +1,6 @@
package electrosphere.server.terrain.generation.noise.operators;
package electrosphere.server.physics.terrain.generation.noise.operators;
import electrosphere.server.terrain.generation.noise.NoiseOctaveSampler;
import electrosphere.server.physics.terrain.generation.noise.NoiseOctaveSampler;
import io.github.studiorailgun.NoiseUtils;
/**

View File

@ -1,10 +1,10 @@
package electrosphere.server.terrain.generation.noise.operators;
package electrosphere.server.physics.terrain.generation.noise.operators;
import java.util.Arrays;
import java.util.Collection;
import electrosphere.server.terrain.generation.noise.NoiseContainer;
import electrosphere.server.terrain.generation.noise.NoiseSampler;
import electrosphere.server.physics.terrain.generation.noise.NoiseContainer;
import electrosphere.server.physics.terrain.generation.noise.NoiseSampler;
/**
* Invokes another sample definition file

View File

@ -1,10 +1,10 @@
package electrosphere.server.terrain.generation.voxelphase;
package electrosphere.server.physics.terrain.generation.voxelphase;
import electrosphere.engine.Globals;
import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.terrain.generation.interfaces.GenerationContext;
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.physics.terrain.generation.interfaces.GenerationContext;
import io.github.studiorailgun.MathUtils;
import io.github.studiorailgun.RandUtils;

View File

@ -1,10 +1,10 @@
package electrosphere.server.terrain.generation.voxelphase;
package electrosphere.server.physics.terrain.generation.voxelphase;
import electrosphere.engine.Globals;
import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.terrain.generation.interfaces.GenerationContext;
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.physics.terrain.generation.interfaces.GenerationContext;
/**
* Generates voxels for a hill

View File

@ -1,10 +1,10 @@
package electrosphere.server.terrain.generation.voxelphase;
package electrosphere.server.physics.terrain.generation.voxelphase;
import electrosphere.engine.Globals;
import electrosphere.game.data.biome.BiomeData;
import electrosphere.game.data.biome.BiomeSurfaceGenerationParams;
import electrosphere.server.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.terrain.generation.interfaces.GenerationContext;
import electrosphere.server.physics.terrain.generation.interfaces.GeneratedVoxel;
import electrosphere.server.physics.terrain.generation.interfaces.GenerationContext;
public class MountainVoxelGen implements VoxelGenerator {

Some files were not shown because too many files have changed in this diff Show More