clean up and wtf is that weird lambda
parent
f1bc55e915
commit
3e89d1ad7d
|
@ -54,7 +54,7 @@ public class Litecraft extends Game
|
|||
KeyCallbackHandler.trackWindow(Window.window); // set up the gateways keybind key tracking
|
||||
MouseCallbackHandler.trackWindow(Window.window);
|
||||
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
|
||||
Window.setBackgroundColour(0.2f, 0.2f, 0.6f); // set the window refresh colour
|
||||
TexturedModel dirtModel = ModelLoader.loadGenericCube("block/cubes/stone/brick/stonebrick.png");
|
||||
|
|
|
@ -7,4 +7,8 @@ public final class Blocks
|
|||
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 STONE = new Block("block/cubes/stone/basic/gneiss.png", new Properties("stone"));
|
||||
public static Block setup()
|
||||
{
|
||||
return AIR;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ public abstract class Dimension<T extends ChunkGenerator>
|
|||
}
|
||||
|
||||
public WorldModifier[] getWorldModifierArray()
|
||||
{ return this.worldModifiers.toArray(WorldModifier[]::new); }
|
||||
{ return new WorldModifier[0]; }
|
||||
|
||||
public abstract T createChunkGenerator(long seed);
|
||||
|
||||
|
|
Loading…
Reference in New Issue