mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 19:25:06 +00:00
20 lines
372 B
Java
20 lines
372 B
Java
package info.jbcs.minecraft.gui;
|
|
|
|
public class GuiLabel extends GuiElement {
|
|
String caption;
|
|
|
|
public GuiLabel(int x, int y, int w, int h, String caption) {
|
|
super(x, y, w, h);
|
|
this.caption = caption;
|
|
}
|
|
|
|
public GuiLabel(int x, int y, String string) {
|
|
this(x, y, 0, 0, string);
|
|
}
|
|
|
|
@Override
|
|
public void render() {
|
|
gui.drawString(caption, x, y, 0x404040);
|
|
}
|
|
}
|