Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import net.minecraft.client.Minecraft;
- import net.minecraft.util.ResourceLocation;
- import net.minecraftforge.client.event.RenderGameOverlayEvent;
- import net.minecraftforge.client.gui.ForgeIngameGui;
- import net.minecraftforge.eventbus.api.SubscribeEvent;
- public class HeartColors extends ForgeIngameGui {
- public static final ResourceLocation BLUE_HEARTS = new ResourceLocation("xlifehealth:textures/gui/blue_hearts.png");
- public HeartColors() { super(Minecraft.getInstance()); }
- @SubscribeEvent
- public static void setBlueHearts(RenderGameOverlayEvent event) {
- if (event.getType() == RenderGameOverlayEvent.ElementType.HEALTH) {
- Minecraft mc = Minecraft.getInstance();
- mc.getTextureManager().bindTexture(BLUE_HEARTS);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement