Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.Robsoon.MoWoods;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.GuiButton;
- import net.minecraft.client.gui.GuiScreen;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.world.World;
- public class GuiKolorki extends GuiScreen{
- private World world1;
- private EntityPlayer player1;
- private Minecraft mc;
- public GuiKolorki(World world, EntityPlayer player)
- {
- world1 = world;
- player1 = player;
- }
- @Override
- public void initGui()
- {
- buttonList.add(new GuiButton(0, width / 2, height / 4, 60, 20, "Klik"));
- }
- @Override
- public void actionPerformed(GuiButton guibutton)
- {
- mc.displayGuiScreen((GuiScreen)null);
- }
- public boolean doesGuiPauseGame()
- {
- return false;
- }
- public void drawScreen(int i, int j, float f)
- {
- drawString(fontRendererObj, "Siemka", width /2 + width / 4, height /2, 0x53DF00);
- drawDefaultBackground();
- super.drawScreen(i, j, f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement