aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-01 20:29:29 +0900
committersyeyoung <cyong06@naver.com>2021-01-01 20:29:29 +0900
commit5503237b9b2a2b75188188341f2dd8abe477c9f5 (patch)
tree53566f82f118b52ef2d432abf9f21d2976ee9ca2 /src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
parentbe44a7665e4982934998020d3bb930be25a50c25 (diff)
downloadSkyblock-Dungeons-Guide-5503237b9b2a2b75188188341f2dd8abe477c9f5.tar.gz
Skyblock-Dungeons-Guide-5503237b9b2a2b75188188341f2dd8abe477c9f5.tar.bz2
Skyblock-Dungeons-Guide-5503237b9b2a2b75188188341f2dd8abe477c9f5.zip
ah yes?
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
index 98f8af15..d9d964c1 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java
@@ -7,10 +7,12 @@ import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.OpenGlHelper;
import org.lwjgl.opengl.GL11;
+import javax.sound.midi.MidiEvent;
import java.awt.*;
@Getter
@@ -66,6 +68,11 @@ public abstract class GuiFeature extends AbstractFeature implements ScreenRender
GL11.glScissor((x ) * scale, Minecraft.getMinecraft().displayHeight - (y + height) * scale, (width) * scale, height * scale);
}
+ public static FontRenderer getFontRenderer() {
+ FontRenderer fr = Minecraft.getMinecraft().fontRendererObj;
+ return fr;
+ }
+
@Override
public void loadConfig(JsonObject jsonObject) {
super.loadConfig(jsonObject);