Started with 1.10 and 1.11.2

This commit is contained in:
kindlich committed 2019-10-19 23:49:58 +02:00
1 parent 47d2ddc411
commit 0f74091da5
125 files changed
+4845 -4991

No files matched your search

@@ -1,7 +1,6 @@
package minetweaker.mc1102;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.*;
/**
* This screen is shown when a client has been modified with a permanent
@@ -10,36 +9,37 @@ import net.minecraft.client.gui.GuiScreen;
*
* @author Stan Hebben
*/
public class GuiCannotRemodify extends GuiScreen{
public class GuiCannotRemodify extends GuiScreen {
private final String message1;
private final String message2;
private final String message3;
public GuiCannotRemodify(String message1, String message2, String message3){
public GuiCannotRemodify(String message1, String message2, String message3) {
this.message1 = message1;
this.message2 = message2;
this.message3 = message3;
}
@Override
public void initGui(){
public void initGui() {
this.buttonList.clear();
this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 120 + 12, "Close"));
}
@Override
public void drawScreen(int par1, int par2, float par3){
public void drawScreen(int par1, int par2, float par3) {
this.drawDefaultBackground();
this.drawCenteredString(this.fontRendererObj, message1, this.width / 2, this.height / 2 - 40, 11184810);
this.drawCenteredString(this.fontRendererObj, message2, this.width / 2, this.height / 2 - 20, 11184810);
this.drawCenteredString(this.fontRendererObj, message3, this.width / 2, this.height / 2 - 0, 11184810);
this.drawCenteredString(this.fontRendererObj, message3, this.width / 2, this.height / 2, 11184810);
super.drawScreen(par1, par2, par3);
}
@Override
protected void actionPerformed(GuiButton par1GuiButton){
if(par1GuiButton.id == 0){
protected void actionPerformed(GuiButton par1GuiButton) {
if(par1GuiButton.id == 0) {
System.exit(0);
}
}