Clean
New achievements Renamed Manuel to PDA Moved PDA class's to PDA package
This commit is contained in:
parent
787df47cfa
commit
1a68b5c7c6
10 changed files with 38 additions and 24 deletions
|
@ -6,6 +6,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.world.World;
|
||||
import techreborn.client.container.*;
|
||||
import techreborn.client.gui.*;
|
||||
import techreborn.pda.GuiPda;
|
||||
import techreborn.tiles.*;
|
||||
|
||||
public class GuiHandler implements IGuiHandler {
|
||||
|
@ -16,7 +17,7 @@ public class GuiHandler implements IGuiHandler {
|
|||
public static final int centrifugeID = 3;
|
||||
public static final int rollingMachineID = 4;
|
||||
public static final int blastFurnaceID = 5;
|
||||
public static final int manuelID = 6;
|
||||
public static final int pdaID = 6;
|
||||
|
||||
|
||||
@Override
|
||||
|
@ -33,7 +34,7 @@ public class GuiHandler implements IGuiHandler {
|
|||
return new ContainerRollingMachine((TileRollingMachine) world.getTileEntity(x, y, z), player);
|
||||
} else if (ID == blastFurnaceID) {
|
||||
return new ContainerBlastFurnace((TileBlastFurnace) world.getTileEntity(x, y, z), player);
|
||||
} else if (ID == manuelID) {
|
||||
} else if (ID == pdaID) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -54,8 +55,8 @@ public class GuiHandler implements IGuiHandler {
|
|||
return new GuiRollingMachine(player, (TileRollingMachine) world.getTileEntity(x, y, z));
|
||||
} else if (ID == blastFurnaceID) {
|
||||
return new GuiBlastFurnace(player, (TileBlastFurnace) world.getTileEntity(x, y, z));
|
||||
} else if (ID == manuelID) {
|
||||
return new GuiManuel(player);
|
||||
} else if (ID == pdaID) {
|
||||
return new GuiPda(player);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GuiManuel extends GuiScreen{
|
||||
|
||||
public final int guiWidth = 256;
|
||||
public final int guiHeight = 180;
|
||||
private int guiLeft, guiTop;
|
||||
|
||||
private static final ResourceLocation tomeGuipages = new ResourceLocation("techreborn:" + "textures/gui/manuel.png");
|
||||
|
||||
public GuiManuel(EntityPlayer player) {}
|
||||
|
||||
@Override
|
||||
public void initGui()
|
||||
{
|
||||
this.guiLeft = this.width / 2 - this.guiWidth / 2;
|
||||
this.guiTop = this.height / 2 - this.guiHeight / 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX, int mouseY, float partialTicks)
|
||||
{
|
||||
// this.fontRendererObj.setUnicodeFlag(true);
|
||||
this.mc.getTextureManager().bindTexture(tomeGuipages);
|
||||
this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.guiWidth, this.guiHeight);
|
||||
super.drawScreen(mouseX, mouseY, partialTicks);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesGuiPauseGame()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue