2014-11-14 12:02:52 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Applied Energistics 2.
|
2015-05-16 20:48:32 +02:00
|
|
|
* 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;
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
|
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;
|
2015-05-16 20:48:32 +02:00
|
|
|
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;
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
|
2014-02-28 09:12:00 +01:00
|
|
|
public class GuiSkyChest extends AEBaseGui
|
|
|
|
{
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
public GuiSkyChest( InventoryPlayer inventoryPlayer, TileSkyChest te )
|
|
|
|
{
|
2014-02-28 09:12:00 +01:00
|
|
|
super( new ContainerSkyChest( inventoryPlayer, te ) );
|
|
|
|
this.ySize = 195;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-04-03 08:54:31 +02:00
|
|
|
public void drawFG( int offsetX, int offsetY, int mouseX, int mouseY )
|
2014-02-28 09:12:00 +01:00
|
|
|
{
|
2015-04-03 08:54:31 +02: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
|
2015-04-03 08:54:31 +02:00
|
|
|
public void drawBG( int offsetX, int offsetY, int mouseX, int mouseY )
|
2014-02-28 09:12:00 +01:00
|
|
|
{
|
2015-04-03 08:54:31 +02:00
|
|
|
this.bindTexture( "guis/skychest.png" );
|
|
|
|
this.drawTexturedModalRect( offsetX, offsetY, 0, 0, this.xSize, this.ySize );
|
2014-02-28 09:12:00 +01:00
|
|
|
}
|
|
|
|
|
2014-06-07 04:04:59 +02:00
|
|
|
@Override
|
|
|
|
protected boolean enableSpaceClicking()
|
|
|
|
{
|
2015-05-16 20:48:32 +02:00
|
|
|
return !IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.InvTweaks );
|
2014-06-07 04:04:59 +02:00
|
|
|
}
|
2014-02-28 09:12:00 +01:00
|
|
|
}
|