Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.lwjgl.opengl.GL11;
- import com.skcraft.creditvendor.tileentity.TileEntityVendingMachine;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.inventory.GuiContainer;
- import net.minecraft.entity.player.InventoryPlayer;
- import net.minecraft.util.ResourceLocation;
- public class GuiVendingMachine extends GuiContainer {
- public static ResourceLocation texture = new ResourceLocation( "creditvendor", "textures/gui/vendingMachineItems.png" );
- public static TileEntityVendingMachine vendingMachine;
- public GuiVendingMachine( InventoryPlayer inventoryPlayer, TileEntityVendingMachine vendingMachine ) {
- super( new ContainerVendingMachine( inventoryPlayer, vendingMachine ) );
- this.vendingMachine = vendingMachine;
- xSize = 195;
- ySize = 158;
- }
- @Override
- protected void drawGuiContainerBackgroundLayer( float f, int x, int y ) {
- GL11.glColor4f( 1.0F, 1.0F, 1.0F, 1.0F );
- GL11.glDisable( GL11.GL_LIGHTING );
- GL11.glDisable( GL11.GL_FOG );
- Minecraft.getMinecraft().getTextureManager().bindTexture( texture );
- drawTexturedModalRect( guiLeft, guiTop, 0, 0, xSize, ySize );
- // drawTexturedModalRect( guiLeft + 84, guiTop + 19, 13, 158, 13, 14 );
- // drawTexturedModalRect( guiLeft + 78, guiTop + 55, 13, 158, 13, 14 );
- }
- @Override
- protected void drawGuiContainerForegroundLayer( int par1, int par2 ) {
- fontRenderer.drawString("Selling", 7, 5, 0x404040);
- fontRenderer.drawString("Buying", 135, 5, 0x404040);
- }
- @Override
- public void initGui() {
- super.initGui();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement