clean up and wtf is that weird lambda

pull/12/head
hYdos 2020-02-28 15:09:03 +10:00
parent f1bc55e915
commit 3e89d1ad7d
3 changed files with 6 additions and 2 deletions

View File

@ -54,7 +54,7 @@ public class Litecraft extends Game
KeyCallbackHandler.trackWindow(Window.window); // set up the gateways keybind key tracking KeyCallbackHandler.trackWindow(Window.window); // set up the gateways keybind key tracking
MouseCallbackHandler.trackWindow(Window.window); MouseCallbackHandler.trackWindow(Window.window);
setupKeybinds(); // set up keybind setupKeybinds(); // set up keybind
@SuppressWarnings("unused") Block b = Blocks.AIR; // make sure blocks are initialised Blocks.setup(); // make sure blocks are initialised
GingerUtils.init(); // set up ginger utilities GingerUtils.init(); // set up ginger utilities
Window.setBackgroundColour(0.2f, 0.2f, 0.6f); // set the window refresh colour Window.setBackgroundColour(0.2f, 0.2f, 0.6f); // set the window refresh colour
TexturedModel dirtModel = ModelLoader.loadGenericCube("block/cubes/stone/brick/stonebrick.png"); TexturedModel dirtModel = ModelLoader.loadGenericCube("block/cubes/stone/brick/stonebrick.png");

View File

@ -7,4 +7,8 @@ public final class Blocks
public static final Block AIR = new Block(new Properties("air").visible(false)); public static final Block AIR = new Block(new Properties("air").visible(false));
public static final Block DIRT = new Block("block/cubes/soil/dirt.png", new Properties("dirt")); public static final Block DIRT = new Block("block/cubes/soil/dirt.png", new Properties("dirt"));
public static final Block STONE = new Block("block/cubes/stone/basic/gneiss.png", new Properties("stone")); public static final Block STONE = new Block("block/cubes/stone/basic/gneiss.png", new Properties("stone"));
public static Block setup()
{
return AIR;
}
} }

View File

@ -22,7 +22,7 @@ public abstract class Dimension<T extends ChunkGenerator>
} }
public WorldModifier[] getWorldModifierArray() public WorldModifier[] getWorldModifierArray()
{ return this.worldModifiers.toArray(WorldModifier[]::new); } { return new WorldModifier[0]; }
public abstract T createChunkGenerator(long seed); public abstract T createChunkGenerator(long seed);