tterrag1098

Untitled

Jan 12th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import net.minecraft.client.Minecraft;
  2. import net.minecraft.client.gui.GuiButton;
  3. import net.minecraft.util.ResourceLocation;
  4.  
  5. import org.lwjgl.opengl.GL11;
  6.  
  7. public class RecipeButton extends GuiButton
  8. {
  9. private ResourceLocation myButtons = new ResourceLocation("tterrag", "textures/gui/buttons.png");
  10.  
  11. public RecipeButton()
  12. {
  13. super(10, 260, 55, 10, 10, "");
  14. this.enabled = true;
  15. }
  16.  
  17. @Override
  18. public void drawButton(Minecraft par1Minecraft, int par2, int par3)
  19. {
  20. par1Minecraft.getTextureManager().bindTexture(myButtons);
  21. super.drawButton(par1Minecraft, par2, par3);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment