NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

package me.aristhena.crest.module.modules.render;

import me.aristhena.crest.option.*;
import me.aristhena.event.events.*;
import java.text.*;
import java.awt.*;
import net.minecraft.util.*;
import net.minecraft.client.*;
import me.aristhena.crest.module.*;
import me.aristhena.utils.*;
import java.util.*;
import me.aristhena.event.*;

@Module.Mod(enabled = false, shown = false)
public class Hud extends Module
{
@Option.Op
public boolean Rainbow;
@Option.Op(min = 500.0, max = 6000.0, increment = 50.0)
public double RBWSpeed;
@Option.Op(min = 0.0, max = 1.5, increment = 0.10000000149011612)
public float Yogunluk;
@Option.Op(min = 0.0, max = 255.0, increment = 1.0)
public double R;
@Option.Op(min = 0.0, max = 255.0, increment = 1.0)
public double G;
@Option.Op(min = 0.0, max = 255.0, increment = 1.0)
public double B;
@Option.Op
public boolean Fps;
@Option.Op
public boolean Location;
@Option.Op
public boolean X;
public boolean Y;
public boolean Z;
public boolean Time;
@Option.Op
public boolean Rect;
@Option.Op
public boolean Rect2;

public Hud() {
this.RBWSpeed = 2500.0;
this.Yogunluk = 0.3f;
this.R = 0;
this.G = 250;
this.B = 0;
this.Rainbow = true;
this.Rect = true;
this.Fps = true;
this.Location = true;
this.X = true;
this.Y = true;
this.Z = true;
}

@EventTarget
private void onRender2D(final Render2DEvent event) {
final String time = new SimpleDateFormat("hh:mm").format(new Date());
final Color color2 = new Color((int)this.R, (int)this.G, (int)this.B);
final EnumFacing yaw = EnumFacing.getHorizontal(MathHelper.floor_double(ClientUtils.mc().thePlayer.rotationYaw * 4.0f / 360.0f + 0.5) & 0x3);
final String displayString = String.valueOf(String.valueOf(String.valueOf(String.valueOf(String.valueOf(String.valueOf(String.valueOf(yaw.getName().substring(0, 1).toUpperCase()))))))) + yaw.getName().substring(1);
if (this.Time) {
ClientUtils.clientFont().drawStringWithShadow("§RFLAME&7" + time, 3.0, 2.0, this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15) : color2.getRGB());
}
else {
ClientUtils.clientFont().drawStringWithShadow("", 3.0, 2.0, this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15) : color2.getRGB());
}
if (this.Fps) {
ClientUtils.clientFont().drawStringWithShadow("§RFPS&7 :" + Minecraft.func_175610_ah(), 3.0, 28.0, this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15) : color2.getRGB());

if (this.X) {
ClientUtils.clientFont().drawStringWithShadow("§RX&7 : " + Math.round(Minecraft.getMinecraft().thePlayer.posX), 3.0, 38.0, this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15) : color2.getRGB());
}
if (this.Y) {
ClientUtils.clientFont().drawStringWithShadow("§RY&7 : " + Math.round(Minecraft.getMinecraft().thePlayer.posY), 3.0, 48.0, this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15) : color2.getRGB());
}

if (this.Z) {
ClientUtils.clientFont().drawStringWithShadow("Z&7 : " + Math.round(Minecraft.getMinecraft().thePlayer.posZ), 3.0, 58.0, this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15) : color2.getRGB());
}


}
if (this.Location) {
ClientUtils.clientFont().drawStringWithShadow("X§7: " + Math.round(Minecraft.getMinecraft().thePlayer.posX) + " §R Y§7: " + Math.round(Minecraft.getMinecraft().thePlayer.posY) + " §R Z§7: " + Math.round(Minecraft.getMinecraft().thePlayer.posZ) + "" + displayString.toUpperCase(), 2.0, (double)(event.getHeight() - 12), this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15) : color2.getRGB());
}
int y = 1;
for (final Module mod : ModuleManager.getModulesForRender()) {
final int x = event.getWidth() - ClientUtils.clientFont().getStringWidth(String.format("%s" + ((mod.getSuffix().length() > 0) ? " §7- %s" : ""), mod.getDisplayName(), mod.getSuffix())) - 2;
if (mod.isEnabled() && mod.isShown()) {
if (this.Rect) {
RenderUtils.rectangle((double)event.getWidth(), (double)y, (double)(event.getWidth() - 2), (double)(y + Minecraft.getMinecraft().fontRendererObj.FONT_HEIGHT + 1), this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15 * y) : color2.getRGB());
RenderUtils.rectangle((double)(x - 2), (double)y, (double)event.getWidth(), (double)(y + Minecraft.getMinecraft().fontRendererObj.FONT_HEIGHT + 1), Integer.MIN_VALUE);
}
if (this.Rect2) {
RenderUtils.rectangle((double)(x - 2), (double)y, (double)event.getWidth(), (double)(y + Minecraft.getMinecraft().fontRendererObj.FONT_HEIGHT + 1), -14474461);
RenderUtils.rectangle((double)(event.getWidth() - 2), (double)y, (double)event.getWidth(), (double)(y + Minecraft.getMinecraft().fontRendererObj.FONT_HEIGHT + 1), this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15 * y) : color2.getRGB());
drawVerticalLine(x - 2, y - 1, y + Minecraft.getMinecraft().fontRendererObj.FONT_HEIGHT + 1, this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15 * y) : color2.getRGB());
drawHorizontalLine(x - 2, event.getWidth(), y + Minecraft.getMinecraft().fontRendererObj.FONT_HEIGHT + 1, this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15 * y) : color2.getRGB());
}
ClientUtils.clientFont().drawStringWithShadow(String.format("%s" + ((mod.getSuffix().length() > 0) ? " §7- %s" : ""), mod.getDisplayName(), mod.getSuffix()), (double)x, (double)y, this.Rainbow ? this.Sasuke((int)this.RBWSpeed, -15 * y) : color2.getRGB());
y += Minecraft.getMinecraft().fontRendererObj.FONT_HEIGHT + 1;
}
}
}

public static void drawHorizontalLine(int startX, int endX, final int y, final int color) {
if (endX < startX) {
final int i = startX;
startX = endX;
endX = i;
}
RenderUtils.rectangle((double)startX, (double)y, (double)(endX + 1), (double)(y + 1), color);
}

public static void drawVerticalLine(final int x, int startY, int endY, final int color) {
if (endY < startY) {
final int i = startY;
startY = endY;
endY = i;
}
RenderUtils.rectangle((double)x, (double)(startY + 1), (double)(x + 1), (double)endY, color);
}

private int Sasuke(final int speed, final int offset) {
float hue = (float)((System.currentTimeMillis() + offset) % speed);
hue /= speed;
return Color.getHSBColor(hue, this.Yogunluk, 1.0f).getRGB();
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.