Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Desktop;
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- import java.lang.reflect.Method;
- import java.net.URI;
- import java.util.ArrayList;
- import java.util.List;
- import java.util.Random;
- import net.minecraft.realms.RealmsBridge;
- import org.apache.commons.io.Charsets;
- import org.apache.logging.log4j.LogManager;
- import org.apache.logging.log4j.Logger;
- import org.lwjgl.opengl.ContextCapabilities;
- import org.lwjgl.opengl.GL11;
- import org.lwjgl.opengl.GLContext;
- import org.lwjgl.util.glu.Project;
- public class bee
- extends bdw
- implements bcv
- {
- private static final Logger f = ;
- private static final Random g = new Random();
- private float h;
- private String i;
- private bcb r;
- private int s;
- private bpq t;
- private final Object u = new Object();
- private String v;
- private String w;
- private String x;
- private static final bqx y = new bqx("texts/splashes.txt");
- private static final bqx z = new bqx("textures/gui/title/minecraft.png");
- private static final bqx[] A = { new bqx("textures/gui/title/background/panorama_0.png"), new bqx("textures/gui/title/background/panorama_1.png"), new bqx("textures/gui/title/background/panorama_2.png"), new bqx("textures/gui/title/background/panorama_3.png"), new bqx("textures/gui/title/background/panorama_4.png"), new bqx("textures/gui/title/background/panorama_5.png") };
- public static final String a = "Please click " + a.t + "here" + a.v + " for more information.";
- private int B;
- private int C;
- private int D;
- private int E;
- private int F;
- private int G;
- private bqx H;
- private static final String __OBFID = "CL_00001154";
- public bee()
- {
- this.w = a;
- this.i = "missingno";
- BufferedReader var1 = null;
- try
- {
- ArrayList var2 = new ArrayList();
- var1 = new BufferedReader(new InputStreamReader(bao.B().Q().a(y).b(), Charsets.UTF_8));
- String var3;
- while ((var3 = var1.readLine()) != null)
- {
- var3 = var3.trim();
- if (!var3.isEmpty()) {
- var2.add(var3);
- }
- }
- if (!var2.isEmpty()) {
- do
- {
- this.i = ((String)var2.get(g.nextInt(var2.size())));
- } while (this.i.hashCode() == 125780783);
- }
- if (var1 != null) {
- try
- {
- var1.close();
- }
- catch (IOException localIOException) {}
- }
- this.h = g.nextFloat();
- }
- catch (IOException localIOException1) {}finally
- {
- if (var1 != null) {
- try
- {
- var1.close();
- }
- catch (IOException localIOException3) {}
- }
- }
- this.v = "";
- if ((!GLContext.getCapabilities().OpenGL20) && (!buu.b()))
- {
- this.v = brp.a("title.oldgl1", new Object[0]);
- this.w = brp.a("title.oldgl2", new Object[0]);
- this.x = "https://help.mojang.com/customer/portal/articles/325948?ref=game";
- }
- }
- public void e()
- {
- this.s += 1;
- }
- public boolean d()
- {
- return false;
- }
- protected void a(char p_73869_1_, int p_73869_2_) {}
- public void b()
- {
- this.t = new bpq(256, 256);
- this.H = this.k.P().a("background", this.t);
- boolean var2 = true;
- int var3 = this.m / 4 + 48;
- if (this.k.u()) {
- c(var3, 24);
- } else {
- b(var3, 24);
- }
- this.n.add(new bcb(0, this.l / 2 - 100, var3 + 72 + 12, 98, 20, brp.a("��7��lOptions", new Object[0])));
- this.n.add(new bcb(4, this.l / 2 + 2, var3 + 72 + 12, 98, 20, brp.a("��4��lQuitter", new Object[0])));
- this.n.add(new bcf(5, this.l / 2 - 124, var3 + 72 + 12));
- Object var4 = this.u;
- synchronized (this.u)
- {
- this.C = this.q.a(this.v);
- this.B = this.q.a(this.w);
- int var5 = Math.max(this.C, this.B);
- this.D = ((this.l - var5) / 2);
- this.E = (((bcb)this.n.get(0)).i - 24);
- this.F = (this.D + var5);
- this.G = (this.E + 24);
- }
- }
- private void b(int par1, int par2)
- {
- this.n.add(new bcb(1, this.l / 2 + 105, par1, 98, 20, "��7��lSolo"));
- this.n.add(new bcb(31, this.l / 2 - 100, par2 + par2 + par1, 98, 20, "��c��lForum"));
- this.n.add(new bcb(32, this.l / 2 + 2, par2 + par2 + par1, 98, 20, "��3��lTS3"));
- this.n.add(new bcb(33, this.l / 2 - 100, par1 + par2 * 1, "��6��lEterniumProject"));
- this.n.add(new bcb(34, this.l / 2 - 100, par1, 98, 20, "��9��lAltisRP"));
- this.n.add(new bcb(35, this.l / 2 + 2, par1, 98, 20, "��2��lNovaRP"));
- }
- private void c(int p_73972_1_, int p_73972_2_)
- {
- this.n.add(new bcb(11, this.l / 2 - 100, p_73972_1_, brp.a("menu.playdemo", new Object[0])));
- this.n.add(this.r = new bcb(12, this.l / 2 - 100, p_73972_1_ + p_73972_2_ * 1, brp.a("menu.resetdemo", new Object[0])));
- aze var3 = this.k.d();
- ays var4 = var3.c("Demo_World");
- if (var4 == null) {
- this.r.l = false;
- }
- }
- protected void a(bcb p_146284_1_)
- {
- if (p_146284_1_.k == 0) {
- this.k.a(new bdm(this, this.k.u));
- }
- if (p_146284_1_.k == 5) {
- this.k.a(new bdj(this, this.k.u, this.k.S()));
- }
- if (p_146284_1_.k == 1) {
- this.k.a(new bdx(this));
- }
- if (p_146284_1_.k == 2) {
- this.k.a(new bfz(this));
- }
- if (p_146284_1_.k == 14) {
- a();
- }
- if (p_146284_1_.k == 4) {
- this.k.k();
- }
- if (p_146284_1_.k == 11) {
- this.k.a("Demo_World", "Demo_World", mk.a);
- }
- if (p_146284_1_.k == 12)
- {
- aze var2 = this.k.d();
- ays var3 = var2.c("Demo_World");
- if (var3 != null)
- {
- bcw var4 = bdx.a(this, var3.k(), 12);
- this.k.a(var4);
- }
- }
- if (p_146284_1_.k == 31)
- {
- Desktop desktop = null;
- try
- {
- URI url = new URI("https://www.google.fr");
- if (Desktop.isDesktopSupported())
- {
- desktop = Desktop.getDesktop();
- desktop.browse(url);
- }
- }
- catch (Exception localException) {}
- }
- if (p_146284_1_.k == 32)
- {
- Desktop desktop = null;
- try
- {
- URI url = new URI("ts3server://teamspeak-3.crystal-serv.com?port=11111");
- if (Desktop.isDesktopSupported())
- {
- desktop = Desktop.getDesktop();
- desktop.browse(url);
- }
- }
- catch (Exception localException1) {}
- }
- if (p_146284_1_.k == 33)
- {
- Desktop desktop = null;
- try
- {
- URI url = new URI("https://www.google.fr");
- if (Desktop.isDesktopSupported())
- {
- desktop = Desktop.getDesktop();
- desktop.browse(url);
- }
- }
- catch (Exception localException2) {}
- }
- if (p_146284_1_.k == 34) {
- this.k.a(new bcx(this, this.k, "#", 0));
- }
- if (p_146284_1_.k == 35) {
- this.k.a(new bcx(this, this.k, "37.59.31.165", 26090));
- }
- }
- private void a()
- {
- RealmsBridge var1 = new RealmsBridge();
- var1.switchToRealms(this);
- }
- public void a(boolean p_73878_1_, int p_73878_2_)
- {
- if ((p_73878_1_) && (p_73878_2_ == 12))
- {
- aze var6 = this.k.d();
- var6.d();
- var6.e("Demo_World");
- this.k.a(this);
- }
- else if (p_73878_2_ == 13)
- {
- if (p_73878_1_) {
- try
- {
- Class var3 = Class.forName("java.awt.Desktop");
- Object var4 = var3.getMethod("getDesktop", new Class[0]).invoke(null, new Object[0]);
- var3.getMethod("browse", new Class[] { URI.class }).invoke(var4, new Object[] { new URI(this.x) });
- }
- catch (Throwable var5)
- {
- f.error("Couldn't open link", var5);
- }
- }
- this.k.a(this);
- }
- }
- private void b(int p_73970_1_, int p_73970_2_, float p_73970_3_)
- {
- bmh var4 = bmh.a;
- GL11.glMatrixMode(5889);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- Project.gluPerspective(120.0F, 1.0F, 0.05F, 10.0F);
- GL11.glMatrixMode(5888);
- GL11.glPushMatrix();
- GL11.glLoadIdentity();
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F);
- GL11.glRotatef(90.0F, 0.0F, 0.0F, 1.0F);
- GL11.glEnable(3042);
- GL11.glDisable(3008);
- GL11.glDisable(2884);
- GL11.glDepthMask(false);
- buu.c(770, 771, 1, 0);
- byte var5 = 8;
- for (int var6 = 0; var6 < var5 * var5; var6++)
- {
- GL11.glPushMatrix();
- float var7 = (var6 % var5 / var5 - 0.5F) / 64.0F;
- float var8 = (var6 / var5 / var5 - 0.5F) / 64.0F;
- float var9 = 0.0F;
- GL11.glTranslatef(var7, var8, var9);
- GL11.glRotatef(qh.a((this.s + p_73970_3_) / 400.0F) * 25.0F + 20.0F, 1.0F, 0.0F, 0.0F);
- GL11.glRotatef(-(this.s + p_73970_3_) * 0.1F, 0.0F, 1.0F, 0.0F);
- for (int var10 = 0; var10 < 6; var10++)
- {
- GL11.glPushMatrix();
- if (var10 == 1) {
- GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
- }
- if (var10 == 2) {
- GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
- }
- if (var10 == 3) {
- GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
- }
- if (var10 == 4) {
- GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
- }
- if (var10 == 5) {
- GL11.glRotatef(-90.0F, 1.0F, 0.0F, 0.0F);
- }
- this.k.P().a(A[var10]);
- var4.b();
- var4.a(16777215, 255 / (var6 + 1));
- float var11 = 0.0F;
- var4.a(-1.0D, -1.0D, 1.0D, 0.0F + var11, 0.0F + var11);
- var4.a(1.0D, -1.0D, 1.0D, 1.0F - var11, 0.0F + var11);
- var4.a(1.0D, 1.0D, 1.0D, 1.0F - var11, 1.0F - var11);
- var4.a(-1.0D, 1.0D, 1.0D, 0.0F + var11, 1.0F - var11);
- var4.a();
- GL11.glPopMatrix();
- }
- GL11.glPopMatrix();
- GL11.glColorMask(true, true, true, false);
- }
- var4.b(0.0D, 0.0D, 0.0D);
- GL11.glColorMask(true, true, true, true);
- GL11.glMatrixMode(5889);
- GL11.glPopMatrix();
- GL11.glMatrixMode(5888);
- GL11.glPopMatrix();
- GL11.glDepthMask(true);
- GL11.glEnable(2884);
- GL11.glEnable(2929);
- }
- private void a(float p_73968_1_)
- {
- this.k.P().a(this.H);
- GL11.glTexParameteri(3553, 10241, 9729);
- GL11.glTexParameteri(3553, 10240, 9729);
- GL11.glCopyTexSubImage2D(3553, 0, 0, 0, 0, 0, 256, 256);
- GL11.glEnable(3042);
- buu.c(770, 771, 1, 0);
- GL11.glColorMask(true, true, true, false);
- bmh var2 = bmh.a;
- var2.b();
- GL11.glDisable(3008);
- byte var3 = 3;
- for (int var4 = 0; var4 < var3; var4++)
- {
- var2.a(1.0F, 1.0F, 1.0F, 1.0F / (var4 + 1));
- int var5 = this.l;
- int var6 = this.m;
- float var7 = (var4 - var3 / 2) / 256.0F;
- var2.a(var5, var6, this.e, 0.0F + var7, 1.0D);
- var2.a(var5, 0.0D, this.e, 1.0F + var7, 1.0D);
- var2.a(0.0D, 0.0D, this.e, 1.0F + var7, 0.0D);
- var2.a(0.0D, var6, this.e, 0.0F + var7, 0.0D);
- }
- var2.a();
- GL11.glEnable(3008);
- GL11.glColorMask(true, true, true, true);
- }
- private void c(int p_73971_1_, int p_73971_2_, float p_73971_3_)
- {
- this.k.a().e();
- GL11.glViewport(0, 0, 256, 256);
- b(p_73971_1_, p_73971_2_, p_73971_3_);
- a(p_73971_3_);
- a(p_73971_3_);
- a(p_73971_3_);
- a(p_73971_3_);
- a(p_73971_3_);
- a(p_73971_3_);
- a(p_73971_3_);
- this.k.a().a(true);
- GL11.glViewport(0, 0, this.k.d, this.k.e);
- bmh var4 = bmh.a;
- var4.b();
- float var5 = this.l > this.m ? 120.0F / this.l : 120.0F / this.m;
- float var6 = this.m * var5 / 256.0F;
- float var7 = this.l * var5 / 256.0F;
- var4.a(1.0F, 1.0F, 1.0F, 1.0F);
- int var8 = this.l;
- int var9 = this.m;
- var4.a(0.0D, var9, this.e, 0.5F - var6, 0.5F + var7);
- var4.a(var8, var9, this.e, 0.5F - var6, 0.5F - var7);
- var4.a(var8, 0.0D, this.e, 0.5F + var6, 0.5F - var7);
- var4.a(0.0D, 0.0D, this.e, 0.5F + var6, 0.5F + var7);
- var4.a();
- }
- public void a(int p_73863_1_, int p_73863_2_, float p_73863_3_)
- {
- GL11.glDisable(3008);
- c(p_73863_1_, p_73863_2_, p_73863_3_);
- GL11.glEnable(3008);
- bmh var4 = bmh.a;
- short var5 = 274;
- int var6 = this.l / 2 - var5 / 2;
- byte var7 = 30;
- a(0, 0, this.l, this.m, -2130706433, 16777215);
- a(0, 0, this.l, this.m, 0, Integer.MIN_VALUE);
- this.k.P().a(z);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- if (this.h < 1.0E-4D)
- {
- b(var6 + 0, var7 + 0, 0, 0, 99, 44);
- b(var6 + 99, var7 + 0, 129, 0, 27, 44);
- b(var6 + 99 + 26, var7 + 0, 126, 0, 3, 44);
- b(var6 + 99 + 26 + 3, var7 + 0, 99, 0, 26, 44);
- b(var6 + 155, var7 + 0, 0, 45, 155, 44);
- }
- else
- {
- b(var6 + 0, var7 + 0, 0, 0, 155, 44);
- b(var6 + 155, var7 + 0, 0, 45, 155, 44);
- }
- var4.c(-1);
- GL11.glPushMatrix();
- GL11.glTranslatef(this.l / 2 + 90, 70.0F, 0.0F);
- GL11.glRotatef(-20.0F, 0.0F, 0.0F, 1.0F);
- float var8 = 1.8F - qh.e(qh.a((float)(bao.K() % 1000L) / 1000.0F * 3.1415927F * 2.0F) * 0.1F);
- var8 = var8 * 100.0F / (this.q.a(this.i) + 32);
- GL11.glScalef(var8, var8, var8);
- a(this.q, this.i, 0, -8, 65280);
- GL11.glPopMatrix();
- String var9 = "Minecraft 1.7.10";
- if (this.k.u()) {
- var9 = var9 + " Demo";
- }
- b(this.q, var9, 2, this.m - 10, -1);
- String var10 = "Copyright Mojang AB. Do not distribute!";
- b(this.q, var10, this.l - this.q.a(var10) - 2, this.m - 10, -1);
- if ((this.v != null) && (this.v.length() > 0))
- {
- a(this.D - 2, this.E - 2, this.F + 2, this.G - 1, 1428160512);
- b(this.q, this.v, this.D, this.E, -1);
- b(this.q, this.w, (this.l - this.B) / 2, ((bcb)this.n.get(0)).i - 12, -1);
- }
- super.a(p_73863_1_, p_73863_2_, p_73863_3_);
- }
- protected void a(int p_73864_1_, int p_73864_2_, int p_73864_3_)
- {
- super.a(p_73864_1_, p_73864_2_, p_73864_3_);
- Object var4 = this.u;
- synchronized (this.u)
- {
- if ((this.v.length() > 0) && (p_73864_1_ >= this.D) && (p_73864_1_ <= this.F) && (p_73864_2_ >= this.E) && (p_73864_2_ <= this.G))
- {
- bcu var5 = new bcu(this, this.x, 13, true);
- var5.f();
- this.k.a(var5);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement