Package pneumaticCraft.client.gui

Source Code of pneumaticCraft.client.gui.GuiStatBalloon

package pneumaticCraft.client.gui;

import net.minecraft.client.gui.FontRenderer;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class GuiStatBalloon{
    public int x;
    public int y;
    public int slotNumber;
    public String text = "";

    public GuiStatBalloon(int x, int y){
        this.x = x;
        this.y = y;
    }

    public GuiStatBalloon(int x, int y, int slotNumber){
        this(x, y);
        this.slotNumber = slotNumber;
    }

    public void render(){
        FontRenderer fontRenderer = FMLClientHandler.instance().getClient().fontRenderer;
        fontRenderer.drawString(text, x, y, -90);
    }

}
TOP

Related Classes of pneumaticCraft.client.gui.GuiStatBalloon

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.