Applied-Energistics-2-tiler.../src/main/java/appeng/client/gui/implementations/GuiSkyChest.java

60 lines
2 KiB
Java
Raw Normal View History

2014-11-14 12:02:52 +01:00
/*
* This file is part of Applied Energistics 2.
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
2014-11-14 12:02:52 +01:00
*
* Applied Energistics 2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Applied Energistics 2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
*/
2014-02-28 09:12:00 +01:00
package appeng.client.gui.implementations;
2014-02-28 09:12:00 +01:00
import net.minecraft.entity.player.InventoryPlayer;
import appeng.client.gui.AEBaseGui;
import appeng.container.implementations.ContainerSkyChest;
import appeng.core.localization.GuiText;
import appeng.integration.IntegrationRegistry;
2014-07-24 00:26:23 +02:00
import appeng.integration.IntegrationType;
2014-02-28 09:12:00 +01:00
import appeng.tile.storage.TileSkyChest;
2014-02-28 09:12:00 +01:00
public class GuiSkyChest extends AEBaseGui
{
public GuiSkyChest( InventoryPlayer inventoryPlayer, TileSkyChest te )
{
2014-02-28 09:12:00 +01:00
super( new ContainerSkyChest( inventoryPlayer, te ) );
this.ySize = 195;
}
@Override
public void drawFG( int offsetX, int offsetY, int mouseX, int mouseY )
2014-02-28 09:12:00 +01:00
{
this.fontRendererObj.drawString( this.getGuiDisplayName( GuiText.SkyChest.getLocal() ), 8, 8, 4210752 );
this.fontRendererObj.drawString( GuiText.inventory.getLocal(), 8, this.ySize - 96 + 2, 4210752 );
2014-02-28 09:12:00 +01:00
}
@Override
public void drawBG( int offsetX, int offsetY, int mouseX, int mouseY )
2014-02-28 09:12:00 +01:00
{
this.bindTexture( "guis/skychest.png" );
this.drawTexturedModalRect( offsetX, offsetY, 0, 0, this.xSize, this.ySize );
2014-02-28 09:12:00 +01:00
}
@Override
protected boolean enableSpaceClicking()
{
return !IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.InvTweaks );
}
2014-02-28 09:12:00 +01:00
}