Advertisement
robertwe

GuiKolorki.java

Oct 16th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. package com.Robsoon.MoWoods;
  2.  
  3. import net.minecraft.client.Minecraft;
  4. import net.minecraft.client.gui.GuiButton;
  5. import net.minecraft.client.gui.GuiScreen;
  6. import net.minecraft.entity.player.EntityPlayer;
  7. import net.minecraft.world.World;
  8.  
  9. public class GuiKolorki extends GuiScreen{
  10. private World world1;
  11. private EntityPlayer player1;
  12. private Minecraft mc;
  13. public GuiKolorki(World world, EntityPlayer player)
  14. {
  15. world1 = world;
  16. player1 = player;
  17. }
  18. @Override
  19. public void initGui()
  20. {
  21. buttonList.add(new GuiButton(0, width / 2, height / 4, 60, 20, "Klik"));
  22. }
  23. @Override
  24. public void actionPerformed(GuiButton guibutton)
  25. {
  26. mc.displayGuiScreen((GuiScreen)null);
  27. }
  28. public boolean doesGuiPauseGame()
  29. {
  30. return false;
  31. }
  32. public void drawScreen(int i, int j, float f)
  33. {
  34. drawString(fontRendererObj, "Siemka", width /2 + width / 4, height /2, 0x53DF00);
  35. drawDefaultBackground();
  36. super.drawScreen(i, j, f);
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement