- Status
- Offline
- Joined
- Jul 18, 2023
- Messages
- 707
- Reaction score
- 3
Unleash your imagination and expand your Minecraft horizons with our handpicked selection of resources, designed to enrich your gameplay in unimaginable ways. Whether you're a builder, explorer, or adventurer, our sources have something special in store for you. Embrace the excitement and take your Minecraft experience to new heights today!
Target Hood:
Code:
int scaleOffset;
ItemStack[] var169;
ItemStack[] items;
int var178;
ItemStack itemStack;
int height;
float xItemOffset;
int i;
ArrayList armor;
String health;
if (targetHudMode.currentMode.equals("Type 2")) {
dth = (DraggableTargetHUD)enight.instance.draggableHUD.getDraggableComponentByClass(DraggableTargetHUD.class);
x = (float)dth.getX();
height = dth.getHeight();
y = (float)dth.getY();
dth.setWidth(153);
dth.setHeight(42);
if (KillAura.target == null) {
if (Minecraft.player != null && mc.currentScreen instanceof GuiChat) {
curTarget = Minecraft.player;
this.scale = (double)AnimationHelper.animation((float)this.scale, 1.0F, (float)(6.0 * enight.deltaTime()));
} else {
this.scale = (double)AnimationHelper.animation((float)this.scale, 0.0F, (float)(6.0 * enight.deltaTime()));
}
} else {
curTarget = KillAura.target;
this.scale = (double)AnimationHelper.animation((float)this.scale, 1.0F, (float)(6.0 * enight.deltaTime()));
}
if (curTarget != null && curTarget instanceof EntityPlayer) {
try {
GlStateManager.pushMatrix();
GlStateManager.resetColor();
GL11.glTranslated((double) (x + 50.0F), (double) (y + 31.0F), 0.0);
GL11.glScaled(this.scale, this.scale, 0.0);
GL11.glTranslated((double) (-(x + 50.0F)), (double) (-(y + 31.0F)), 0.0);
if (this.blurThud.getCurrentValue()) {
RenderUtils.drawBlur(6.0F, () -> {
RenderUtils.drawSmoothRect((double) x, (double) y, (double) (x + (float) dth.getWidth()), (double) (y + (float) dth.getHeight()), (new Color(0, 0, 0, 100)).getRGB());
});
}
if (this.shadowThud.getCurrentValue()) {
RenderUtils.drawShadow(15.0F, 6.0F, () -> {
RenderUtils.drawSmoothRect((double) x, (double) y, (double) (x + (float) dth.getWidth()), (double) (y + (float) dth.getHeight()), (new Color(0, 0, 0, 100)).getRGB());
});
}
RenderUtils.drawSmoothRect((double) x, (double) y, (double) (x + (float) dth.getWidth()), (double) (y + (float) dth.getHeight()), (new Color(0, 0, 0, 100)).getRGB());
healthWid = (double) (curTarget.getHealth() / curTarget.getMaxHealth() * 110.0F);
healthWid = MathHelper.clamp(healthWid, 0.0, 110.0);
this.healthBarWidth = AnimationHelper.animation(this.healthBarWidth, (float) healthWid, (float) (10.0 * enight.deltaTime()));
health = "" + MathematicHelper.round(curTarget.getHealth(), 1);
distance = "" + MathematicHelper.round(Minecraft.player.getDistanceToEntity(curTarget), 1);
mc.mntsb_15.drawString("Name: " + curTarget.getName(), x + 38.0F, y + 6.0F, -1);mc.mntsb_15.drawString(curTarget.getHealth() >= 3.0F ? health : "", x + 20.8F + this.healthBarWidth, y + 30.5F, (new Color(200, 200, 200)).getRGB());
mc.mntsb_15.drawString("Distance: " + distance, x + 38.0F, y + 12.4F, -1);
RenderUtils.drawGradientRected(x + 38.0F, y + 36.0F, (double) this.healthBarWidth, 4.0, ClientHelper.getTargetHudColor().darker().getRGB(), ClientHelper.getTargetHudColor().brighter().brighter().getRGB());
var161 = Minecraft.player.connection.getPlayerInfoMap().iterator();
while (var161.hasNext()) {
targetHead = (NetworkPlayerInfo) var161.next();
armor = Lists.newArrayList(curTarget.getArmorInventoryList());
items = new ItemStack[]{curTarget.getHeldItemOffhand(), curTarget.getHeldItemMainhand(), (ItemStack)armor.get(0), (ItemStack)armor.get(1), (ItemStack)armor.get(2), (ItemStack)armor.get(3)};
xItemOffset = x + (float)height - 4.7F;
var169 = items;
scaleOffset = items.length;
for(var178 = 0; var178 < scaleOffset; ++var178) {
itemStack = var169[var178];
if (!itemStack.isEmpty()) {
GL11.glPushMatrix();
GL11.glTranslated((double)xItemOffset, (double)(y + 17.5F), 0.0);
GL11.glScaled(0.75, 0.75, 0.75);
RenderHelper.enableGUIStandardItemLighting();
mc.getRenderItem().renderItemAndEffectIntoGUI(Minecraft.player, itemStack, 0, 0);
mc.getRenderItem().renderItemOverlays(mc.fontRendererObj, itemStack, 0, 0);
RenderHelper.disableStandardItemLighting();
GL11.glPopMatrix();
xItemOffset += 14.0F;
}
}
try {
if (Minecraft.world.getPlayerEntityByUUID(targetHead.getGameProfile().getId()) == curTarget) {
mc.getTextureManager().bindTexture(targetHead.getLocationSkin());
scaleOffset = (int) ((float) curTarget.hurtTime * 0.55F);
hurtPercent.set(getHurtPercent(curTarget));
GL11.glPushMatrix();
GL11.glColor4f(1.0F, 1.0F - (Float) hurtPercent.get(), 1.0F - (Float) hurtPercent.get(), 1.0F);
Gui.drawScaledCustomSizeModalRect((float) ((int) x + 3), y + 4.0F, 8.0F, 8.0F, 8.0F, 8.0F, 32.0F, 35.0F, 64.0F, 64.0F);
GL11.glPopMatrix();
GlStateManager.bindTexture(0);
}
} catch (Exception var146) {
}
}
} catch (Exception var155) {
} finally {
GlStateManager.popMatrix();
}
}