Update to 1.14.2
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
package exopandora.worldhandler.util;
|
||||
|
||||
import com.mojang.blaze3d.platform.GlStateManager;
|
||||
|
||||
import exopandora.worldhandler.config.Config;
|
||||
import exopandora.worldhandler.format.TextFormatting;
|
||||
import exopandora.worldhandler.helper.ResourceHelper;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.Gui;
|
||||
import net.minecraft.client.renderer.GlStateManager;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public class UtilRender
|
||||
{
|
||||
public static void drawWatchIntoGui(Gui gui, int width, int height, long worldTicks, boolean smooth)
|
||||
public static void drawWatchIntoGui(Screen gui, int width, int height, long worldTicks, boolean smooth)
|
||||
{
|
||||
float hour = TextFormatting.getHour(worldTicks);
|
||||
float minute = TextFormatting.getMinute(worldTicks);
|
||||
@@ -31,11 +32,11 @@ public class UtilRender
|
||||
GlStateManager.scalef(0.25F, 0.25F, 0.25F);
|
||||
|
||||
GlStateManager.rotatef(rotationHour, 0F, 0F, 1F);
|
||||
Gui.drawRect(-1, -1, 1, 11, 0xFF383838);
|
||||
Screen.fill(-1, -1, 1, 11, 0xFF383838);
|
||||
GlStateManager.rotatef(-rotationHour, 0F, 0F, 1F);
|
||||
|
||||
GlStateManager.rotatef(rotationMinute, 0F, 0F, 1F);
|
||||
Gui.drawRect(-1, -1, 1, 15, 0xFF6F6F6F);
|
||||
Screen.fill(-1, -1, 1, 15, 0xFF6F6F6F);
|
||||
GlStateManager.rotatef(-rotationMinute, 0F, 0F, 1F);
|
||||
|
||||
GlStateManager.color3f(1.0F, 1.0F, 1.0F);
|
||||
@@ -44,11 +45,11 @@ public class UtilRender
|
||||
GlStateManager.color3f(Config.getSkin().getButtonRedF(), Config.getSkin().getButtonGreenF(), Config.getSkin().getButtonBlueF());
|
||||
Minecraft.getInstance().getTextureManager().bindTexture(ResourceHelper.getIconTexture());
|
||||
|
||||
gui.drawTexturedModalRect(width + 0, height, 48, 0, 10, 10);
|
||||
gui.blit(width + 0, height, 48, 0, 10, 10);
|
||||
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.scalef(0.5F, 0.5F, 0.5F);
|
||||
Gui.drawRect((width + 5) * 2 - 1, (height + 4) * 2 + 1, (width + 6) * 2 - 1, (height + 5) * 2 + 1, 0xFF000000);
|
||||
Screen.fill((width + 5) * 2 - 1, (height + 4) * 2 + 1, (width + 6) * 2 - 1, (height + 5) * 2 + 1, 0xFF000000);
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user