Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package chemcraft.client.gui
- import net.minecraft.client.gui.{GuiButton, GuiScreen}
- import net.minecraft.util.ResourceLocation
- import chemcraft.Constants
- /**
- * GuiCollector
- * ChemCraft
- * License: GPL v3
- **/
- class GuiCollector extends GuiScreen{
- final val texture: ResourceLocation = new ResourceLocation(Constants.Modid + ":" + "textures/gui/guiCollector.png")
- final val xSize: Int = 256
- final val ySize: Int = 256
- final val xStarting: Int = 64
- final val yStarting: Int = 0
- override def drawScreen(x: Int, y: Int, color: Float): Unit = {
- this.mc.getTextureManager.bindTexture(texture)
- val xPos = (this.width - xSize) / 2
- val yPos = (this.height - ySize - 30) / 2
- drawTexturedModalRect(xPos, yPos, xStarting, yStarting, xSize, ySize)
- }
- override def doesGuiPauseGame(): Boolean = false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement