Moved litecraft to "com.halotroop"

liteCraft
Caroline Bell 2020-03-08 21:08:09 -07:00
parent 5a0825115a
commit 7b774b1fc8
31 changed files with 90 additions and 90 deletions

View File

@ -1,6 +0,0 @@
package com.github.halotroop.litecraft.logic;
public enum Gamemode
{
GRAVITY, FREECAM,
}

View File

@ -1,9 +0,0 @@
package com.github.halotroop.litecraft.world.dimension;
import com.github.halotroop.litecraft.world.gen.EarthChunkGenerator;
import com.github.halotroop.litecraft.world.gen.modifier.CavesModifier;
public final class Dimensions
{
public static final Dimension<EarthChunkGenerator> OVERWORLD = new EarthDimension(0, "earth").addWorldModifier(new CavesModifier());
}

View File

@ -1,14 +1,7 @@
package com.github.halotroop.litecraft;
package com.halotroop.litecraft;
import org.joml.*;
import com.github.halotroop.litecraft.render.BlockRenderer;
import com.github.halotroop.litecraft.save.LitecraftSave;
import com.github.halotroop.litecraft.screens.*;
import com.github.halotroop.litecraft.types.block.Blocks;
import com.github.halotroop.litecraft.types.entity.PlayerEntity;
import com.github.halotroop.litecraft.util.RelativeDirection;
import com.github.halotroop.litecraft.world.World;
import com.github.hydos.ginger.engine.common.Constants;
import com.github.hydos.ginger.engine.common.api.*;
import com.github.hydos.ginger.engine.common.api.game.*;
@ -23,6 +16,13 @@ import com.github.hydos.ginger.engine.opengl.postprocessing.PostProcessing;
import com.github.hydos.ginger.engine.opengl.render.*;
import com.github.hydos.ginger.engine.opengl.render.models.GLTexturedModel;
import com.github.hydos.ginger.engine.opengl.utils.*;
import com.halotroop.litecraft.render.BlockRenderer;
import com.halotroop.litecraft.save.LitecraftSave;
import com.halotroop.litecraft.screens.*;
import com.halotroop.litecraft.types.block.Blocks;
import com.halotroop.litecraft.types.entity.PlayerEntity;
import com.halotroop.litecraft.util.RelativeDirection;
import com.halotroop.litecraft.world.World;
import tk.valoeghese.gateways.client.io.*;

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft;
package com.halotroop.litecraft;
import org.lwjgl.Version;
import org.lwjgl.glfw.GLFW;

View File

@ -0,0 +1,6 @@
package com.halotroop.litecraft.logic;
public enum Gamemode
{
GRAVITY, FREECAM,
}

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft.logic;
package com.halotroop.litecraft.logic;
import tk.valoeghese.sod.BinaryData;

View File

@ -1,10 +1,8 @@
package com.github.halotroop.litecraft.render;
package com.halotroop.litecraft.render;
import org.joml.Matrix4f;
import org.lwjgl.opengl.*;
import com.github.halotroop.litecraft.types.block.BlockInstance;
import com.github.halotroop.litecraft.world.gen.WorldGenConstants;
import com.github.hydos.ginger.engine.common.api.GingerRegister;
import com.github.hydos.ginger.engine.common.elements.objects.RenderObject;
import com.github.hydos.ginger.engine.common.io.Window;
@ -12,6 +10,8 @@ import com.github.hydos.ginger.engine.common.math.Maths;
import com.github.hydos.ginger.engine.opengl.render.Renderer;
import com.github.hydos.ginger.engine.opengl.render.models.GLTexturedModel;
import com.github.hydos.ginger.engine.opengl.render.shaders.StaticShader;
import com.halotroop.litecraft.types.block.BlockInstance;
import com.halotroop.litecraft.world.gen.WorldGenConstants;
public class BlockRenderer extends Renderer implements WorldGenConstants
{

View File

@ -1,11 +1,11 @@
package com.github.halotroop.litecraft.render;
package com.halotroop.litecraft.render;
import java.nio.ByteBuffer;
import org.lwjgl.opengl.*;
import com.github.halotroop.litecraft.types.block.*;
import com.github.hydos.ginger.engine.opengl.utils.GLLoader;
import com.halotroop.litecraft.types.block.*;
public class VoxelLoader extends GLLoader
{

View File

@ -1,15 +1,15 @@
package com.github.halotroop.litecraft.save;
package com.halotroop.litecraft.save;
import java.io.*;
import java.util.Random;
import org.joml.Vector3f;
import com.github.halotroop.litecraft.Litecraft;
import com.github.halotroop.litecraft.types.entity.PlayerEntity;
import com.github.halotroop.litecraft.world.*;
import com.github.halotroop.litecraft.world.dimension.Dimension;
import com.github.hydos.ginger.engine.common.cameras.Camera;
import com.halotroop.litecraft.Litecraft;
import com.halotroop.litecraft.types.entity.PlayerEntity;
import com.halotroop.litecraft.world.*;
import com.halotroop.litecraft.world.dimension.Dimension;
import tk.valoeghese.sod.*;

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft.screens;
package com.halotroop.litecraft.screens;
import org.joml.Vector2f;

View File

@ -1,12 +1,12 @@
package com.github.halotroop.litecraft.screens;
package com.halotroop.litecraft.screens;
import org.joml.*;
import com.github.halotroop.litecraft.Litecraft;
import com.github.hydos.ginger.engine.common.api.*;
import com.github.hydos.ginger.engine.common.font.GUIText;
import com.github.hydos.ginger.engine.common.screen.Screen;
import com.github.hydos.ginger.engine.opengl.api.GingerGL;
import com.halotroop.litecraft.Litecraft;
public class IngameHUD extends Screen
{

View File

@ -1,12 +1,9 @@
package com.github.halotroop.litecraft.screens;
package com.halotroop.litecraft.screens;
import java.util.ArrayList;
import org.joml.*;
import com.github.halotroop.litecraft.Litecraft;
import com.github.halotroop.litecraft.save.LitecraftSave;
import com.github.halotroop.litecraft.world.dimension.Dimensions;
import com.github.hydos.ginger.engine.common.api.GingerEngine;
import com.github.hydos.ginger.engine.common.elements.GuiTexture;
import com.github.hydos.ginger.engine.common.elements.buttons.TextureButton;
@ -14,6 +11,9 @@ import com.github.hydos.ginger.engine.common.font.GUIText;
import com.github.hydos.ginger.engine.common.io.Window;
import com.github.hydos.ginger.engine.common.screen.Screen;
import com.github.hydos.ginger.engine.opengl.api.GingerGL;
import com.halotroop.litecraft.Litecraft;
import com.halotroop.litecraft.save.LitecraftSave;
import com.halotroop.litecraft.world.dimension.Dimensions;
/** YeS */
public class TitleScreen extends Screen

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft.types.block;
package com.halotroop.litecraft.types.block;
import java.util.*;

View File

@ -1,9 +1,9 @@
package com.github.halotroop.litecraft.types.block;
package com.halotroop.litecraft.types.block;
import org.joml.Vector3f;
import com.github.halotroop.litecraft.world.Chunk;
import com.github.hydos.ginger.engine.common.elements.objects.RenderObject;
import com.halotroop.litecraft.world.Chunk;
public class BlockInstance extends RenderObject
{

View File

@ -1,8 +1,8 @@
package com.github.halotroop.litecraft.types.block;
package com.halotroop.litecraft.types.block;
import java.util.ArrayList;
import com.github.halotroop.litecraft.types.block.Block.Properties;
import com.halotroop.litecraft.types.block.Block.Properties;
public final class Blocks
{

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft.types.entity;
package com.halotroop.litecraft.types.entity;
import org.joml.Vector3f;

View File

@ -1,14 +1,14 @@
package com.github.halotroop.litecraft.types.entity;
package com.halotroop.litecraft.types.entity;
import org.joml.Vector3f;
import com.github.halotroop.litecraft.Litecraft;
import com.github.halotroop.litecraft.util.RelativeDirection;
import com.github.halotroop.litecraft.world.gen.WorldGenConstants;
import com.github.hydos.ginger.engine.common.Constants;
import com.github.hydos.ginger.engine.common.api.GingerRegister;
import com.github.hydos.ginger.engine.common.io.Window;
import com.github.hydos.ginger.engine.opengl.render.models.GLTexturedModel;
import com.halotroop.litecraft.Litecraft;
import com.halotroop.litecraft.util.RelativeDirection;
import com.halotroop.litecraft.world.gen.WorldGenConstants;
public class PlayerEntity extends Entity implements WorldGenConstants
{

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft.util;
package com.halotroop.litecraft.util;
public enum RelativeDirection
{

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft.util.noise;
package com.halotroop.litecraft.util.noise;
import java.util.Random;

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft.util.noise;
package com.halotroop.litecraft.util.noise;
/** OpenSimplex Noise in Java.
* (Using implementation by Kurt Spencer)

View File

@ -1,6 +1,6 @@
package com.github.halotroop.litecraft.world;
package com.halotroop.litecraft.world;
import com.github.halotroop.litecraft.types.block.Block;
import com.halotroop.litecraft.types.block.Block;
public interface BlockAccess
{

View File

@ -1,14 +1,14 @@
package com.github.halotroop.litecraft.world;
package com.halotroop.litecraft.world;
import java.util.*;
import java.util.function.ToIntFunction;
import org.joml.Vector3f;
import com.github.halotroop.litecraft.logic.SODSerializable;
import com.github.halotroop.litecraft.render.BlockRenderer;
import com.github.halotroop.litecraft.types.block.*;
import com.github.halotroop.litecraft.world.gen.WorldGenConstants;
import com.halotroop.litecraft.logic.SODSerializable;
import com.halotroop.litecraft.render.BlockRenderer;
import com.halotroop.litecraft.types.block.*;
import com.halotroop.litecraft.world.gen.WorldGenConstants;
import it.unimi.dsi.fastutil.ints.*;
import it.unimi.dsi.fastutil.objects.*;

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft.world;
package com.halotroop.litecraft.world;
import java.util.*;
import java.util.concurrent.*;
@ -7,14 +7,14 @@ import java.util.function.LongConsumer;
import org.joml.Vector3f;
import com.github.halotroop.litecraft.Litecraft;
import com.github.halotroop.litecraft.render.BlockRenderer;
import com.github.halotroop.litecraft.save.LitecraftSave;
import com.github.halotroop.litecraft.types.block.*;
import com.github.halotroop.litecraft.types.entity.PlayerEntity;
import com.github.halotroop.litecraft.world.dimension.Dimension;
import com.github.halotroop.litecraft.world.gen.*;
import com.github.halotroop.litecraft.world.gen.modifier.WorldModifier;
import com.halotroop.litecraft.Litecraft;
import com.halotroop.litecraft.render.BlockRenderer;
import com.halotroop.litecraft.save.LitecraftSave;
import com.halotroop.litecraft.types.block.*;
import com.halotroop.litecraft.types.entity.PlayerEntity;
import com.halotroop.litecraft.world.dimension.Dimension;
import com.halotroop.litecraft.world.gen.*;
import com.halotroop.litecraft.world.gen.modifier.WorldModifier;
import it.unimi.dsi.fastutil.longs.*;

View File

@ -1,9 +1,9 @@
package com.github.halotroop.litecraft.world.dimension;
package com.halotroop.litecraft.world.dimension;
import java.util.*;
import com.github.halotroop.litecraft.world.gen.ChunkGenerator;
import com.github.halotroop.litecraft.world.gen.modifier.WorldModifier;
import com.halotroop.litecraft.world.gen.ChunkGenerator;
import com.halotroop.litecraft.world.gen.modifier.WorldModifier;
import it.unimi.dsi.fastutil.ints.*;

View File

@ -0,0 +1,9 @@
package com.halotroop.litecraft.world.dimension;
import com.halotroop.litecraft.world.gen.EarthChunkGenerator;
import com.halotroop.litecraft.world.gen.modifier.CavesModifier;
public final class Dimensions
{
public static final Dimension<EarthChunkGenerator> OVERWORLD = new EarthDimension(0, "earth").addWorldModifier(new CavesModifier());
}

View File

@ -1,6 +1,6 @@
package com.github.halotroop.litecraft.world.dimension;
package com.halotroop.litecraft.world.dimension;
import com.github.halotroop.litecraft.world.gen.EarthChunkGenerator;
import com.halotroop.litecraft.world.gen.EarthChunkGenerator;
class EarthDimension extends Dimension<EarthChunkGenerator>
{

View File

@ -1,6 +1,6 @@
package com.github.halotroop.litecraft.world.gen;
package com.halotroop.litecraft.world.gen;
import com.github.halotroop.litecraft.world.*;
import com.halotroop.litecraft.world.*;
public interface ChunkGenerator
{

View File

@ -1,10 +1,10 @@
package com.github.halotroop.litecraft.world.gen;
package com.halotroop.litecraft.world.gen;
import java.util.Random;
import com.github.halotroop.litecraft.types.block.*;
import com.github.halotroop.litecraft.util.noise.OctaveSimplexNoise;
import com.github.halotroop.litecraft.world.*;
import com.halotroop.litecraft.types.block.*;
import com.halotroop.litecraft.util.noise.OctaveSimplexNoise;
import com.halotroop.litecraft.world.*;
public class EarthChunkGenerator implements ChunkGenerator, WorldGenConstants
{

View File

@ -1,4 +1,4 @@
package com.github.halotroop.litecraft.world.gen;
package com.halotroop.litecraft.world.gen;
public interface WorldGenConstants
{

View File

@ -1,11 +1,11 @@
package com.github.halotroop.litecraft.world.gen.modifier;
package com.halotroop.litecraft.world.gen.modifier;
import java.util.Random;
import com.github.halotroop.litecraft.types.block.Blocks;
import com.github.halotroop.litecraft.util.noise.OctaveSimplexNoise;
import com.github.halotroop.litecraft.world.BlockAccess;
import com.github.halotroop.litecraft.world.gen.WorldGenConstants;
import com.halotroop.litecraft.types.block.Blocks;
import com.halotroop.litecraft.util.noise.OctaveSimplexNoise;
import com.halotroop.litecraft.world.BlockAccess;
import com.halotroop.litecraft.world.gen.WorldGenConstants;
public class CavesModifier implements WorldModifier, WorldGenConstants
{

View File

@ -1,8 +1,8 @@
package com.github.halotroop.litecraft.world.gen.modifier;
package com.halotroop.litecraft.world.gen.modifier;
import java.util.Random;
import com.github.halotroop.litecraft.world.BlockAccess;
import com.halotroop.litecraft.world.BlockAccess;
public interface WorldModifier
{