random shit

master
Chaziz 2021-06-07 20:05:48 -04:00
parent 7d242ff7ea
commit d9dfb47c62
3 changed files with 11 additions and 8 deletions

BIN
level.dat

Binary file not shown.

View File

@ -11,6 +11,7 @@ import com.mojang.minecraft.renderer.Tesselator;
import com.mojang.minecraft.renderer.Frustum;
import com.mojang.minecraft.phys.AABB;
import com.mojang.minecraft.level.tile.Tile;
import com.mojang.minecraft.gui.DebugScreen;
import com.mojang.minecraft.gui.PauseScreen;
import com.mojang.minecraft.gui.MenuScreen;
import com.mojang.minecraft.level.Chunk;
@ -369,7 +370,7 @@ public class Minecraft implements Runnable, LevelLoaderListener {
} // refer to tile.java to find tile ID.
if (Keyboard.getEventKey() == Keyboard.KEY_END) {
this.releaseMouse();
this.setScreen(new MenuScreen()); //bad menu
this.setScreen(new DebugScreen()); //bad menu
}
if (Keyboard.getEventKey() == 28) {
this.attemptSaveLevel();
@ -654,6 +655,7 @@ public class Minecraft implements Runnable, LevelLoaderListener {
GL11.glTranslatef(0.0f, 0.0f, -200.0f);
this.checkGlError("GUI: Init");
GL11.glPushMatrix();
//location of block preview?
GL11.glTranslatef((float) (screenWidth - 16), (screenHeight - 16), -50.0f);
final Tesselator t = Tesselator.instance;
GL11.glScalef(16.0f, 16.0f, 16.0f);
@ -794,8 +796,8 @@ public class Minecraft implements Runnable, LevelLoaderListener {
JFrame f;
public inputLevelName(){
f=new JFrame();
System.out.println("A dialog asking for the level name should have opened.");
nameLevel=JOptionPane.showInputDialog(f,"Enter name for level.");
System.out.println("A dialog asking for the level name should open.");
nameLevel=JOptionPane.showInputDialog(f,"Please input the name for the level.");
}
}

View File

@ -12,6 +12,7 @@ import org.lwjgl.opengl.GL11;
import com.mojang.minecraft.renderer.Tesselator;
import com.mojang.minecraft.renderer.Textures;
import com.mojang.minecraft.Minecraft;
import com.mojang.minecraft.character.Zombie;
import com.mojang.minecraft.gui.Screen;
import com.mojang.minecraft.gui.Font;
import com.mojang.minecraft.level.LevelIO;
@ -28,7 +29,7 @@ public class DebugScreen extends Screen
@Override
public void init() {
this.buttons.add(new Button(0, this.width / 2 - 100, this.height / 4 + 0, 200, 20, "New level"));
this.buttons.add(new Button(0, this.width / 2 - 100, this.height / 4 + 0, 200, 20, "Spawn Human"));
//this.buttons.add(new Button(1, this.width / 2 - 100, this.height / 4 + 32, 200, 20, "Save level.."));
//this.buttons.add(new Button(2, this.width / 2 - 100, this.height / 4 + 64, 200, 20, "Load level.."));
this.buttons.add(new Button(3, this.width / 2 - 100, this.height / 4 + 32, 200, 20, "Continue level"));
@ -53,7 +54,6 @@ public class DebugScreen extends Screen
private void buttonClicked(final Button button) {
if (button.id == 0) {
this.minecraft.generateNewLevel();
this.minecraft.setScreen(null);
this.minecraft.grabMouse();
}
@ -62,15 +62,16 @@ public class DebugScreen extends Screen
this.minecraft.grabMouse();
}
if (button.id == 4) {
System.exit(0);
this.minecraft.setScreen(null);
this.minecraft.grabMouse();
}
}
@Override
public void render(final int xm, final int ym) {
this.fillGradient(0, 0, this.width, this.height, 537199872, -1607454624);
this.drawString("Welcome to Gamerappa's Minecraft!", this.width / 2 / 2, 30, 3394560);
this.drawString("This is version " + Minecraft.VERSION_STRING, this.width / 2 / 2, 40, 3394560);
this.drawString("Todo: Make this actually fucking work. 6/5/21", this.width / 2 / 2, 30, 3394560);
this.drawString("1 day until 8th anniversary of the Chazpelo Roblox Account!!!", this.width / 2 / 2, 40, 3394560);
for (int i = 0; i < this.buttons.size(); ++i) {
final Button button = this.buttons.get(i);
this.fill(button.x - 1, button.y - 1, button.x + button.w + 1, button.y + button.h + 1, -16777216);