diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/ClientHooks.java b/src/main/java/com/minelittlepony/unicopia/client/gui/ClientHooks.java index 282eea53..6a939483 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/ClientHooks.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/ClientHooks.java @@ -6,6 +6,7 @@ import com.mojang.blaze3d.platform.GlStateManager; import net.minecraft.client.MinecraftClient; +@Deprecated // TODO: forge events class ClientHooks { public static void beforePreRenderHud() { diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/FlightExperienceBar.java b/src/main/java/com/minelittlepony/unicopia/client/gui/FlightExperienceBar.java index 525cf258..41b0ca0c 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/FlightExperienceBar.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/FlightExperienceBar.java @@ -6,7 +6,7 @@ import com.mojang.blaze3d.platform.GlStateManager; import net.minecraft.client.gui.DrawableHelper; import net.minecraft.util.Identifier; -class FlightExperienceBar extends DrawableHelper implements IHudElement { +class FlightExperienceBar extends DrawableHelper implements HudElement { static final Identifier TEXTURE = new Identifier("textures/gui/bars.png"); diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/IHudElement.java b/src/main/java/com/minelittlepony/unicopia/client/gui/HudElement.java similarity index 87% rename from src/main/java/com/minelittlepony/unicopia/client/gui/IHudElement.java rename to src/main/java/com/minelittlepony/unicopia/client/gui/HudElement.java index cb021b98..8d165908 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/IHudElement.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/HudElement.java @@ -2,7 +2,7 @@ package com.minelittlepony.unicopia.client.gui; import com.minelittlepony.unicopia.entity.player.Pony; -public interface IHudElement { +public interface HudElement { void repositionHud(UHud context); diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java b/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java index 00a9bdb8..8fa0f3f1 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java @@ -16,7 +16,7 @@ public class UHud { public static final UHud instance = new UHud(); - private List elements = new ArrayList<>(); + private List elements = new ArrayList<>(); MinecraftClient mc = MinecraftClient.getInstance(); @@ -52,7 +52,7 @@ public class UHud { elements.forEach(this::positionElement); } - private void positionElement(IHudElement element) { + private void positionElement(HudElement element) { if (!element.shouldRender(player)) { return; } @@ -60,7 +60,7 @@ public class UHud { element.repositionHud(this); } - private void renderElement(IHudElement element) { + private void renderElement(HudElement element) { if (!element.shouldRender(player)) { return; }