Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Basic Gui File:
- package net.minecraft.src;
- import java.awt.image.BufferedImage;
- import org.lwjgl.opengl.GL11;
- public class GuiWhatever extends GuiScreen {
- public GuiWhatever()
- {
- }
- public void initGui() {
- controlList.clear();
- }
- public boolean doesGuiPauseGame()
- {
- return false;
- }
- public void onGuiClosed()
- {
- }
- public void drawScreen(int i, int j, float f)
- {
- drawDefaultBackground();
- drawGradientRect(20, 20, width - 20, height - 20, 0x60500000, 0xa0803030);
- drawRect(60, 60, width - 60, height - 60, 0xFF0000FF);
- drawCenteredString(fontRenderer, "Random", width / 2, 45, 0xffffff);
- super.drawScreen(i, j, f);
- }
- }
- ---------------------------------------------------------------------------
- Block File Code Snippet:
- public void onBlockClicked(World world, int i, int j, int k, EntityPlayer entityplayer)
- {
- ModLoader.OpenGUI(entityplayer, new GuiWhatever());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement