<commit_before>package Tamaized.AoV.gui.client;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import Tamaized.AoV.AoV;
import Tamaized.AoV.common.client.ClientProxy;
import Tamaized.AoV.core.AoVCore;
import Tamaized.AoV.core.AoVData;
import Tamaized.AoV.core.abilities.AbilityBase;

public class AoVOverlay extends Gui{
	
	private Minecraft mc = Minecraft.getMinecraft();
	
	@SubscribeEvent
	public void RenderAoVData(RenderGameOverlayEvent e){
		if(e.isCancelable() || e.type != e.type.EXPERIENCE) return;
		if(AoV.clientAoVCore == null) return;
		AoVCore core = AoV.clientAoVCore;
		AoVData data = core.getPlayer(null);
		
		if(data != null && data.getMaxDivinePower() > 0){
			FontRenderer fontRender = mc.fontRendererObj;

			ClientProxy.bar.render(this, e.partialTicks);
			
			int cT = 0xFFFFFFFF;
			int cB = 0xDDFFFFFF;
			AbilityBase spell = ClientProxy.bar.getCurrentSlot();
			if(spell != null && spell.cost > data.getCurrentDivinePower()){
				cT = 0xFFFF0000;
				cB = 0xDDFF0000;
			}
			
			this.drawString(fontRender, "Divine", 5, 40, cT);
			this.drawString(fontRender, "Power", 5, 50, cT);
			
			{
				int x = 5;
				int y = 60;
				int w = 25;
				int h = 80;
			
				this.drawRect(x, y, x+w, y+h, 0x558800FF);
			}
			
			{
				int x = 7;
				int y = 62;
				int w = 21;
				int h = 76;
				float perc = (float)data.getCurrentDivinePower()/(float)data.getMaxDivinePower();
				int var = Math.round(h*perc);
				y = y + (h - var);
				h = var;
				
				this.drawRect(x, y, x+w, y+h, cB);
			}

			fontRender.drawString(String.valueOf(data.getCurrentDivinePower()), 9, 85, 0x000000);
			{
				int x = 10;
				int y = 95;
				int w = 15;
				int h = 1;
			
				this.drawRect(x, y, x+w, y+h, 0xFF000000);
			}
			fontRender.drawString(String.valueOf(data.getMaxDivinePower()), 9, 98, 0x000000);
			GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0f);
		}
	}

}<commit_msg>Made divine power render much smaller<commit_after>package Tamaized.AoV.gui.client;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import Tamaized.AoV.AoV;
import Tamaized.AoV.common.client.ClientProxy;
import Tamaized.AoV.core.AoVCore;
import Tamaized.AoV.core.AoVData;
import Tamaized.AoV.core.abilities.AbilityBase;

public class AoVOverlay extends Gui{
	
	private Minecraft mc = Minecraft.getMinecraft();
	
	@SubscribeEvent
	public void RenderAoVData(RenderGameOverlayEvent e){
		if(e.isCancelable() || e.type != e.type.EXPERIENCE) return;
		if(AoV.clientAoVCore == null) return;
		AoVCore core = AoV.clientAoVCore;
		AoVData data = core.getPlayer(null);
		
		if(data != null && data.getMaxDivinePower() > 0){
			FontRenderer fontRender = mc.fontRendererObj;

			ClientProxy.bar.render(this, e.partialTicks);
			
			GlStateManager.pushMatrix();
			{
				GlStateManager.scale(0.5f, 0.5f, 0f);
				int cT = 0xFFFFFFFF;
				int cB = 0xDDFFFFFF;
				AbilityBase spell = ClientProxy.bar.getCurrentSlot();
				if(spell != null && spell.cost > data.getCurrentDivinePower()){
					cT = 0xFFFF0000;
					cB = 0xDDFF0000;
				}
				
				this.drawString(fontRender, "Divine", 5, 180, cT);
				this.drawString(fontRender, "Power", 5, 190, cT);
				
				{
					int x = 5;
					int y = 200;
					int w = 25;
					int h = 80;
					
					this.drawRect(x, y, x+w, y+h, 0x558800FF);
				}
				
				{
					int x = 7;
					int y = 202;
					int w = 21;
					int h = 76;
					float perc = (float)data.getCurrentDivinePower()/(float)data.getMaxDivinePower();
					int var = Math.round(h*perc);
					y = y + (h - var);
					h = var;
					
					this.drawRect(x, y, x+w, y+h, cB);
				}
				
				fontRender.drawString(String.valueOf(data.getCurrentDivinePower()), 9, 230, 0x000000);
				{
					int x = 8;
					int y = 240;
					int w = 19;
					int h = 1;
					
					this.drawRect(x, y, x+w, y+h, 0xFF000000);
				}
				fontRender.drawString(String.valueOf(data.getMaxDivinePower()), 9, 243, 0x000000);
			}
			GlStateManager.popMatrix();
		}
	}

}
{'fraction_non_alphanumeric': 0.13262539539087212, 'fraction_numerical': 0.0377315860822413, 'mean_word_length': 3.273166023166023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4635570', 'n_tokens_mistral': 2142, 'n_tokens_neox': 1688, 'n_words': 330}