0

import code

This commit is contained in:
2021-05-04 00:48:16 +03:00
commit d9ced9535e
745 changed files with 69002 additions and 0 deletions

5
.gitattributes vendored Normal file
View File

@@ -0,0 +1,5 @@
gradlew text eol=lf
gradlew.bat -text
gradle/wrapper/gradle-wrapper.properties text eol=lf
*.jar filter=lfs diff=lfs merge=lfs -text

11
.gitignore vendored Normal file
View File

@@ -0,0 +1,11 @@
## IDEA ##
.idea/
out/
*.iml
*.ipr
*.iws
*.ids
## GRADLE ##
.gradle/
build/

22
README.MD Normal file
View File

@@ -0,0 +1,22 @@
# Minecraft Alpha 1.1.2_01
Client - 1.1.2_01
Server - 0.2.1
- revengpack decompile
- port to Gradle
- use Java 8
## Run Client
*Не корректно работает: дальше создания карты (build world) не идёт, зависает.*
```shell
gradle client:run
```
## Run Server
```shell
gradle client:run
```

48
client/build.gradle Normal file
View File

@@ -0,0 +1,48 @@
apply plugin: 'java'
apply plugin: 'application'
group = 'minecraft'
version = 'a1.1.2_01'
compileJava {
sourceCompatibility = targetCompatibility = 1.8
options.encoding = 'UTF-8'
}
application {
mainClassName = 'net.minecraft.client.Minecraft'
}
run {
workingDir = new File(buildDir, 'run')
if (!workingDir.exists()) {
workingDir.mkdir()
}
systemProperty 'java.library.path', file("$buildDir/natives/windows")
}
repositories {
flatDir { dirs '../libs' }
}
dependencies {
compile name: 'org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0'
compile name: 'org/lwjgl/lwjgl/lwjgl-platform/2.9.0/lwjgl-platform-2.9.0-natives-windows'
compile name: 'org/lwjgl/lwjgl/lwjgl_util/2.9.0/lwjgl_util-2.9.0'
compile name: 'net/java/jinput/jinput/2.0.5/jinput-2.0.5'
compile name: 'net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-windows'
compile name: 'net/java/jutils/jutils/1.0.0/jutils-1.0.0'
compile name: 'paulscode'
}
task copyNativesWindows {
doLast {
copy {
def resolvedArtifacts = configurations.compile.resolvedConfiguration.resolvedArtifacts
def matches = resolvedArtifacts.findAll {it.classifier == 'natives-windows' || it.name.endsWith('-natives-windows')}
from matches.collect { it.file }.collect { zipTree(it) }
into "$buildDir/natives/windows"
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,108 @@
package net.minecraft.client;
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Canvas;
import net.minecraft.client.Minecraft;
public class MinecraftApplet extends Applet {
private Canvas a;
private Minecraft b;
private Thread c = null;
public void init() {
this.a = new h(this);
boolean var1 = false;
if(this.getParameter("fullscreen") != null) {
var1 = this.getParameter("fullscreen").equalsIgnoreCase("true");
}
this.b = new g(this, this, this.a, this, this.getWidth(), this.getHeight(), var1);
this.b.j = this.getDocumentBase().getHost();
if(this.getDocumentBase().getPort() > 0) {
this.b.j = this.b.j + ":" + this.getDocumentBase().getPort();
}
if(this.getParameter("username") != null && this.getParameter("sessionid") != null) {
this.b.i = new dl(this.getParameter("username"), this.getParameter("sessionid"));
System.out.println("Setting user: " + this.b.i.b + ", " + this.b.i.c);
if(this.getParameter("mppass") != null) {
this.b.i.d = this.getParameter("mppass");
}
} else {
this.b.i = new dl("Player", "");
}
if(this.getParameter("loadmap_user") != null && this.getParameter("loadmap_id") != null) {
this.b.s = this.getParameter("loadmap_user");
this.b.t = Integer.parseInt(this.getParameter("loadmap_id"));
} else if(this.getParameter("server") != null && this.getParameter("port") != null) {
this.b.a(this.getParameter("server"), Integer.parseInt(this.getParameter("port")));
}
this.b.l = true;
this.setLayout(new BorderLayout());
this.add(this.a, "Center");
this.a.setFocusable(true);
this.validate();
}
public void a() {
if(this.c == null) {
this.c = new Thread(this.b, "Minecraft main thread");
this.c.start();
}
}
public void start() {
if(this.b != null) {
this.b.m = false;
}
}
public void stop() {
if(this.b != null) {
this.b.m = true;
}
}
public void destroy() {
this.b();
}
public void b() {
if(this.c != null) {
this.b.d();
try {
this.c.join(10000L);
} catch (InterruptedException var4) {
try {
this.b.c();
} catch (Exception var3) {
var3.printStackTrace();
}
}
this.c = null;
}
}
public void c() {
this.a = null;
this.b = null;
this.c = null;
try {
this.removeAll();
this.validate();
} catch (Exception var2) {
;
}
}
}

View File

@@ -0,0 +1,58 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class a
{
public final int a;
public final int b;
public final int c;
public final int d;
int e;
float f;
float g;
float h;
a i;
public boolean j;
public a(int k, int l, int i1)
{
e = -1;
j = false;
a = k;
b = l;
c = i1;
d = k | l << 10 | i1 << 20;
}
public float a(a a1)
{
float f1 = a1.a - a;
float f2 = a1.b - b;
float f3 = a1.c - c;
return eo.c(f1 * f1 + f2 * f2 + f3 * f3);
}
public boolean equals(java.lang.Object obj)
{
return ((a)obj).d == d;
}
public int hashCode()
{
return d;
}
public boolean a()
{
return e >= 0;
}
public java.lang.String toString()
{
return (new StringBuilder()).append(a).append(", ").append(b).append(", ").append(c).toString();
}
}

View File

@@ -0,0 +1,128 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class aa extends z
{
protected float g[];
protected float h[];
private net.minecraft.client.Minecraft i;
private int j[];
private double k;
private double l;
public aa(net.minecraft.client.Minecraft minecraft)
{
super(di.aO.a(((ev) (null))));
g = new float[320];
h = new float[320];
j = new int[256];
i = minecraft;
f = 1;
try
{
java.awt.image.BufferedImage bufferedimage = javax.imageio.ImageIO.read(net.minecraft.client.Minecraft.class.getResource("/gui/items.png"));
int i1 = (b % 16) * 16;
int j1 = (b / 16) * 16;
bufferedimage.getRGB(i1, j1, 16, 16, j, 0, 16);
}
catch(java.io.IOException ioexception)
{
ioexception.printStackTrace();
}
}
public void a()
{
for(int i1 = 0; i1 < 256; i1++)
{
int j1 = j[i1] >> 24 & 0xff;
int k1 = j[i1] >> 16 & 0xff;
int l1 = j[i1] >> 8 & 0xff;
int i2 = j[i1] >> 0 & 0xff;
if(this.c)
{
int j2 = (k1 * 30 + l1 * 59 + i2 * 11) / 100;
int k2 = (k1 * 30 + l1 * 70) / 100;
int l2 = (k1 * 30 + i2 * 70) / 100;
k1 = j2;
l1 = k2;
i2 = l2;
}
a[i1 * 4 + 0] = (byte)k1;
a[i1 * 4 + 1] = (byte)l1;
a[i1 * 4 + 2] = (byte)i2;
a[i1 * 4 + 3] = (byte)j1;
}
double d = 0.0D;
if(i.e != null && i.g != null)
{
double d1 = (double)i.e.o - i.g.ak;
double d3 = (double)i.e.q - i.g.am;
d = ((double)(i.g.aq - 90F) * 3.1415926535897931D) / 180D - java.lang.Math.atan2(d3, d1);
}
double d2;
for(d2 = d - k; d2 < -3.1415926535897931D; d2 += 6.2831853071795862D);
for(; d2 >= 3.1415926535897931D; d2 -= 6.2831853071795862D);
if(d2 < -1D)
d2 = -1D;
if(d2 > 1.0D)
d2 = 1.0D;
l += d2 * 0.10000000000000001D;
l *= 0.80000000000000004D;
k += l;
double d4 = java.lang.Math.sin(k);
double d5 = java.lang.Math.cos(k);
for(int i3 = -4; i3 <= 4; i3++)
{
int k3 = (int)(8.5D + d5 * (double)i3 * 0.29999999999999999D);
int i4 = (int)(7.5D - d4 * (double)i3 * 0.29999999999999999D * 0.5D);
int k4 = i4 * 16 + k3;
int i5 = 100;
int k5 = 100;
int i6 = 100;
char c = '\377';
if(this.c)
{
int k6 = (i5 * 30 + k5 * 59 + i6 * 11) / 100;
int i7 = (i5 * 30 + k5 * 70) / 100;
int k7 = (i5 * 30 + i6 * 70) / 100;
i5 = k6;
k5 = i7;
i6 = k7;
}
a[k4 * 4 + 0] = (byte)i5;
a[k4 * 4 + 1] = (byte)k5;
a[k4 * 4 + 2] = (byte)i6;
a[k4 * 4 + 3] = (byte)c;
}
for(int j3 = -8; j3 <= 16; j3++)
{
int l3 = (int)(8.5D + d4 * (double)j3 * 0.29999999999999999D);
int j4 = (int)(7.5D + d5 * (double)j3 * 0.29999999999999999D * 0.5D);
int l4 = j4 * 16 + l3;
int j5 = ((int) (j3 < 0 ? 100 : 255));
int l5 = ((int) (j3 < 0 ? 100 : 20));
int j6 = ((int) (j3 < 0 ? 100 : 20));
char c1 = '\377';
if(this.c)
{
int l6 = (j5 * 30 + l5 * 59 + j6 * 11) / 100;
int j7 = (j5 * 30 + l5 * 70) / 100;
int l7 = (j5 * 30 + j6 * 70) / 100;
j5 = l6;
l5 = j7;
j6 = l7;
}
a[l4 * 4 + 0] = (byte)j5;
a[l4 * 4 + 1] = (byte)l5;
a[l4 * 4 + 2] = (byte)j6;
a[l4 * 4 + 3] = (byte)c1;
}
}
}

View File

@@ -0,0 +1,199 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.Random;
import org.lwjgl.opengl.GL11;
public class ab extends ak
{
private bc d;
private java.util.Random e;
public ab()
{
d = new bc();
e = new Random();
b = 0.15F;
c = 0.75F;
}
public void a(dx dx1, double d1, double d2, double d3,
float f, float f1)
{
e.setSeed(187L);
ev ev1 = dx1.a;
org.lwjgl.opengl.GL11.glPushMatrix();
float f2 = eo.a(((float)dx1.b + f1) / 10F + dx1.d) * 0.1F + 0.1F;
float f3 = (((float)dx1.b + f1) / 20F + dx1.d) * 57.29578F;
byte byte0 = 1;
if(dx1.a.a > 1)
byte0 = 2;
if(dx1.a.a > 5)
byte0 = 3;
if(dx1.a.a > 20)
byte0 = 4;
org.lwjgl.opengl.GL11.glTranslatef((float)d1, (float)d2 + f2, (float)d3);
org.lwjgl.opengl.GL11.glEnable(32826);
if(ev1.c < 256 && bc.a(ly.n[ev1.c].f()))
{
org.lwjgl.opengl.GL11.glRotatef(f3, 0.0F, 1.0F, 0.0F);
a("/terrain.png");
float f4 = 0.25F;
if(!ly.n[ev1.c].c() && ev1.c != ly.al.bc)
f4 = 0.5F;
org.lwjgl.opengl.GL11.glScalef(f4, f4, f4);
for(int j = 0; j < byte0; j++)
{
org.lwjgl.opengl.GL11.glPushMatrix();
if(j > 0)
{
float f5 = ((e.nextFloat() * 2.0F - 1.0F) * 0.2F) / f4;
float f7 = ((e.nextFloat() * 2.0F - 1.0F) * 0.2F) / f4;
float f9 = ((e.nextFloat() * 2.0F - 1.0F) * 0.2F) / f4;
org.lwjgl.opengl.GL11.glTranslatef(f5, f7, f9);
}
d.a(ly.n[ev1.c]);
org.lwjgl.opengl.GL11.glPopMatrix();
}
} else
{
org.lwjgl.opengl.GL11.glScalef(0.5F, 0.5F, 0.5F);
int i = ev1.b();
if(ev1.c < 256)
a("/terrain.png");
else
a("/gui/items.png");
ho ho1 = ho.a;
float f6 = (float)((i % 16) * 16 + 0) / 256F;
float f8 = (float)((i % 16) * 16 + 16) / 256F;
float f10 = (float)((i / 16) * 16 + 0) / 256F;
float f11 = (float)((i / 16) * 16 + 16) / 256F;
float f12 = 1.0F;
float f13 = 0.5F;
float f14 = 0.25F;
for(int k = 0; k < byte0; k++)
{
org.lwjgl.opengl.GL11.glPushMatrix();
if(k > 0)
{
float f15 = (e.nextFloat() * 2.0F - 1.0F) * 0.3F;
float f16 = (e.nextFloat() * 2.0F - 1.0F) * 0.3F;
float f17 = (e.nextFloat() * 2.0F - 1.0F) * 0.3F;
org.lwjgl.opengl.GL11.glTranslatef(f15, f16, f17);
}
org.lwjgl.opengl.GL11.glRotatef(180F - a.i, 0.0F, 1.0F, 0.0F);
ho1.b();
ho1.b(0.0F, 1.0F, 0.0F);
ho1.a(0.0F - f13, 0.0F - f14, 0.0D, f6, f11);
ho1.a(f12 - f13, 0.0F - f14, 0.0D, f8, f11);
ho1.a(f12 - f13, 1.0F - f14, 0.0D, f8, f10);
ho1.a(0.0F - f13, 1.0F - f14, 0.0D, f6, f10);
ho1.a();
org.lwjgl.opengl.GL11.glPopMatrix();
}
}
org.lwjgl.opengl.GL11.glDisable(32826);
org.lwjgl.opengl.GL11.glPopMatrix();
}
public void a(kd kd1, ey ey1, ev ev1, int i, int j)
{
if(ev1 == null)
return;
if(ev1.c < 256 && bc.a(ly.n[ev1.c].f()))
{
int k = ev1.c;
ey1.b(ey1.a("/terrain.png"));
ly ly1 = ly.n[k];
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glTranslatef(i - 2, j + 3, 0.0F);
org.lwjgl.opengl.GL11.glScalef(10F, 10F, 10F);
org.lwjgl.opengl.GL11.glTranslatef(1.0F, 0.5F, 8F);
org.lwjgl.opengl.GL11.glRotatef(210F, 1.0F, 0.0F, 0.0F);
org.lwjgl.opengl.GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F);
org.lwjgl.opengl.GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
org.lwjgl.opengl.GL11.glScalef(1.0F, 1.0F, 1.0F);
d.a(ly1);
org.lwjgl.opengl.GL11.glPopMatrix();
} else
if(ev1.b() >= 0)
{
org.lwjgl.opengl.GL11.glDisable(2896);
if(ev1.c < 256)
ey1.b(ey1.a("/terrain.png"));
else
ey1.b(ey1.a("/gui/items.png"));
a(i, j, (ev1.b() % 16) * 16, (ev1.b() / 16) * 16, 16, 16);
org.lwjgl.opengl.GL11.glEnable(2896);
}
org.lwjgl.opengl.GL11.glEnable(2884);
}
public void b(kd kd1, ey ey1, ev ev1, int i, int j)
{
if(ev1 == null)
return;
if(ev1.a > 1)
{
java.lang.String s = (new StringBuilder()).append("").append(ev1.a).toString();
org.lwjgl.opengl.GL11.glDisable(2896);
org.lwjgl.opengl.GL11.glDisable(2929);
kd1.a(s, (i + 19) - 2 - kd1.a(s), j + 6 + 3, 0xffffff);
org.lwjgl.opengl.GL11.glEnable(2896);
org.lwjgl.opengl.GL11.glEnable(2929);
}
if(ev1.d > 0)
{
int k = 13 - (ev1.d * 13) / ev1.d();
int l = 255 - (ev1.d * 255) / ev1.d();
org.lwjgl.opengl.GL11.glDisable(2896);
org.lwjgl.opengl.GL11.glDisable(2929);
org.lwjgl.opengl.GL11.glDisable(3553);
ho ho1 = ho.a;
int i1 = 255 - l << 16 | l << 8;
int j1 = (255 - l) / 4 << 16 | 0x3f00;
a(ho1, i + 2, j + 13, 13, 2, 0);
a(ho1, i + 2, j + 13, 12, 1, j1);
a(ho1, i + 2, j + 13, k, 1, i1);
org.lwjgl.opengl.GL11.glEnable(3553);
org.lwjgl.opengl.GL11.glEnable(2896);
org.lwjgl.opengl.GL11.glEnable(2929);
org.lwjgl.opengl.GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
}
}
private void a(ho ho1, int i, int j, int k, int l, int i1)
{
ho1.b();
ho1.b(i1);
ho1.a(i + 0, j + 0, 0.0D);
ho1.a(i + 0, j + l, 0.0D);
ho1.a(i + k, j + l, 0.0D);
ho1.a(i + k, j + 0, 0.0D);
ho1.a();
}
public void a(int i, int j, int k, int l, int i1, int j1)
{
float f = 0.0F;
float f1 = 0.00390625F;
float f2 = 0.00390625F;
ho ho1 = ho.a;
ho1.b();
ho1.a(i + 0, j + j1, f, (float)(k + 0) * f1, (float)(l + j1) * f2);
ho1.a(i + i1, j + j1, f, (float)(k + i1) * f1, (float)(l + j1) * f2);
ho1.a(i + i1, j + 0, f, (float)(k + i1) * f1, (float)(l + 0) * f2);
ho1.a(i + 0, j + 0, f, (float)(k + 0) * f1, (float)(l + 0) * f2);
ho1.a();
}
public void a(kh kh, double d1, double d2, double d3, float f, float f1)
{
a((dx)kh, d1, d2, d3, f, f1);
}
}

View File

@@ -0,0 +1,85 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ac extends di
{
private int a;
public ac(int i, int j)
{
super(i);
aT = 1;
aU = 64;
a = j;
}
public ev a(ev ev1, cn cn1, dm dm1)
{
float f = 1.0F;
float f1 = dm1.at + (dm1.ar - dm1.at) * f;
float f2 = dm1.as + (dm1.aq - dm1.as) * f;
double d = dm1.ah + (dm1.ak - dm1.ah) * (double)f;
double d1 = dm1.ai + (dm1.al - dm1.ai) * (double)f;
double d2 = dm1.aj + (dm1.am - dm1.aj) * (double)f;
aj aj1 = ((aj)null).b(d, d1, d2);
float f3 = eo.b(-f2 * 0.01745329F - 3.141593F);
float f4 = eo.a(-f2 * 0.01745329F - 3.141593F);
float f5 = -eo.b(-f1 * 0.01745329F);
float f6 = eo.a(-f1 * 0.01745329F);
float f7 = f4 * f5;
float f8 = f6;
float f9 = f3 * f5;
double d3 = 5D;
aj aj2 = aj1.c((double)f7 * d3, (double)f8 * d3, (double)f9 * d3);
mf mf1 = cn1.a(aj1, aj2, a == 0);
if(mf1 == null)
return ev1;
if(mf1.a == 0)
{
int i = mf1.b;
int j = mf1.c;
int k = mf1.d;
if(a == 0)
{
if(cn1.f(i, j, k) == gb.f && cn1.e(i, j, k) == 0)
{
cn1.d(i, j, k, 0);
return new ev(di.av);
}
if(cn1.f(i, j, k) == gb.g && cn1.e(i, j, k) == 0)
{
cn1.d(i, j, k, 0);
return new ev(di.aw);
}
} else
{
if(a < 0)
return new ev(di.au);
if(mf1.e == 0)
j--;
if(mf1.e == 1)
j++;
if(mf1.e == 2)
k--;
if(mf1.e == 3)
k++;
if(mf1.e == 4)
i--;
if(mf1.e == 5)
i++;
if(cn1.a(i, j, k) == 0 || !cn1.f(i, j, k).a())
{
cn1.b(i, j, k, a, 0);
return new ev(di.au);
}
}
} else
if(a == 0 && (mf1.g instanceof am))
return new ev(di.aE);
return ev1;
}
}

View File

@@ -0,0 +1,382 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.awt.Color;
import java.io.File;
import java.util.LinkedList;
public class ad extends java.awt.Canvas
implements java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.lang.Runnable
{
private int a;
private int b;
private boolean c;
private cn d;
private java.io.File e;
private boolean f;
private java.util.List g;
private jj h[][];
private int i;
private int j;
private int k;
private int l;
public java.io.File a()
{
if(e == null)
e = a("minecraft");
return e;
}
public java.io.File a(java.lang.String s)
{
java.lang.String s1 = java.lang.System.getProperty("user.home", ".");
java.io.File file;
switch(ln.a[ad.e().ordinal()])
{
case 1: // '\001'
case 2: // '\002'
file = new File(s1, (new StringBuilder()).append('.').append(s).append('/').toString());
break;
case 3: // '\003'
java.lang.String s2 = java.lang.System.getenv("APPDATA");
if(s2 != null)
file = new File(s2, (new StringBuilder()).append(".").append(s).append('/').toString());
else
file = new File(s1, (new StringBuilder()).append('.').append(s).append('/').toString());
break;
case 4: // '\004'
file = new File(s1, (new StringBuilder()).append("Library/Application Support/").append(s).toString());
break;
default:
file = new File(s1, (new StringBuilder()).append(s).append('/').toString());
break;
}
if(!file.exists() && !file.mkdirs())
throw new RuntimeException((new StringBuilder()).append("The working directory could not be created: ").append(((java.lang.Object) (file))).toString());
else
return file;
}
private static fa e()
{
java.lang.String s = java.lang.System.getProperty("os.name").toLowerCase();
if(s.contains("win"))
return fa.c;
if(s.contains("mac"))
return fa.d;
if(s.contains("solaris"))
return fa.b;
if(s.contains("sunos"))
return fa.b;
if(s.contains("linux"))
return fa.a;
if(s.contains("unix"))
return fa.a;
else
return fa.e;
}
public ad()
{
a = 0;
b = 2;
c = true;
f = true;
g = java.util.Collections.synchronizedList(((java.util.List) (new LinkedList())));
h = new jj[64][64];
e = a();
for(int i1 = 0; i1 < 64; i1++)
{
for(int j1 = 0; j1 < 64; j1++)
h[i1][j1] = new jj(((cn) (null)), i1, j1);
}
addMouseListener(((java.awt.event.MouseListener) (this)));
addMouseMotionListener(((java.awt.event.MouseMotionListener) (this)));
addKeyListener(((java.awt.event.KeyListener) (this)));
setFocusable(true);
requestFocus();
setBackground(java.awt.Color.red);
}
public void b(java.lang.String s)
{
i = j = 0;
d = ((cn) (new lk(this, new File(e, "saves"), s)));
d.e = 0;
synchronized(g)
{
g.clear();
for(int i1 = 0; i1 < 64; i1++)
{
for(int j1 = 0; j1 < 64; j1++)
h[i1][j1].a(d, i1, j1);
}
}
}
private void a(int i1)
{
synchronized(g)
{
d.e = i1;
g.clear();
for(int j1 = 0; j1 < 64; j1++)
{
for(int k1 = 0; k1 < 64; k1++)
h[j1][k1].a(d, j1, k1);
}
}
}
public void b()
{
(new lh(this)).start();
for(int i1 = 0; i1 < 8; i1++)
(new Thread(((java.lang.Runnable) (this)))).start();
}
public void c()
{
f = false;
}
private jj a(int i1, int j1)
{
int k1 = i1 & 0x3f;
int l1 = j1 & 0x3f;
jj jj1 = h[k1][l1];
if(jj1.c == i1 && jj1.d == j1)
return jj1;
synchronized(g)
{
g.remove(((java.lang.Object) (jj1)));
}
jj1.a(i1, j1);
return jj1;
}
public void run()
{
lt lt1 = new lt();
while(f)
{
jj jj1 = null;
synchronized(g)
{
if(g.size() > 0)
jj1 = (jj)g.remove(0);
}
if(jj1 != null)
if(a - jj1.g < 2)
{
lt1.a(jj1);
repaint();
} else
{
jj1.h = false;
}
try
{
java.lang.Thread.sleep(2L);
}
catch(java.lang.InterruptedException interruptedexception)
{
interruptedexception.printStackTrace();
}
}
}
public void update(java.awt.Graphics g1)
{
}
public void paint(java.awt.Graphics g1)
{
}
public void d()
{
java.awt.image.BufferStrategy bufferstrategy = getBufferStrategy();
if(bufferstrategy == null)
{
createBufferStrategy(2);
return;
} else
{
a((java.awt.Graphics2D)bufferstrategy.getDrawGraphics());
bufferstrategy.show();
return;
}
}
public void a(java.awt.Graphics2D graphics2d)
{
a++;
java.awt.geom.AffineTransform affinetransform = graphics2d.getTransform();
graphics2d.setClip(0, 0, getWidth(), getHeight());
graphics2d.setRenderingHint(java.awt.RenderingHints.KEY_INTERPOLATION, java.awt.RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
graphics2d.translate(getWidth() / 2, getHeight() / 2);
graphics2d.scale(b, b);
graphics2d.translate(i, j);
if(d != null)
graphics2d.translate(-(d.o + d.q), -(-d.o + d.q) + 64);
java.awt.Rectangle rectangle = graphics2d.getClipBounds();
graphics2d.setColor(new Color(0xff101020));
graphics2d.fillRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
byte byte0 = 16;
byte byte1 = 3;
int i1 = rectangle.x / byte0 / 2 - 2 - byte1;
int j1 = (rectangle.x + rectangle.width) / byte0 / 2 + 1 + byte1;
int k1 = rectangle.y / byte0 - 1 - byte1 * 2;
int l1 = (rectangle.y + rectangle.height + 16 + 128) / byte0 + 1 + byte1 * 2;
for(int i2 = k1; i2 <= l1; i2++)
{
for(int k2 = i1; k2 <= j1; k2++)
{
int l2 = k2 - (i2 >> 1);
int i3 = k2 + (i2 + 1 >> 1);
jj jj1 = a(l2, i3);
jj1.g = a;
if(!jj1.e)
{
if(!jj1.h)
{
jj1.h = true;
g.add(((java.lang.Object) (jj1)));
}
continue;
}
jj1.h = false;
if(!jj1.f)
{
int j3 = k2 * byte0 * 2 + (i2 & 1) * byte0;
int k3 = i2 * byte0 - 128 - 16;
graphics2d.drawImage(((java.awt.Image) (jj1.a)), j3, k3, ((java.awt.image.ImageObserver) (null)));
}
}
}
if(c)
{
graphics2d.setTransform(affinetransform);
int j2 = getHeight() - 32 - 4;
graphics2d.setColor(new Color(0x80000000, true));
graphics2d.fillRect(4, getHeight() - 32 - 4, getWidth() - 8, 32);
graphics2d.setColor(java.awt.Color.WHITE);
java.lang.String s = "F1 - F5: load levels | 0-9: Set time of day | Space: return to spawn | Double click: zoom | Escape: hide this text";
graphics2d.drawString(s, getWidth() / 2 - graphics2d.getFontMetrics().stringWidth(s) / 2, j2 + 20);
}
graphics2d.dispose();
}
public void mouseDragged(java.awt.event.MouseEvent mouseevent)
{
int i1 = mouseevent.getX() / b;
int j1 = mouseevent.getY() / b;
i += i1 - k;
j += j1 - l;
k = i1;
l = j1;
repaint();
}
public void mouseMoved(java.awt.event.MouseEvent mouseevent)
{
}
public void mouseClicked(java.awt.event.MouseEvent mouseevent)
{
if(mouseevent.getClickCount() == 2)
{
b = 3 - b;
repaint();
}
}
public void mouseEntered(java.awt.event.MouseEvent mouseevent)
{
}
public void mouseExited(java.awt.event.MouseEvent mouseevent)
{
}
public void mousePressed(java.awt.event.MouseEvent mouseevent)
{
int i1 = mouseevent.getX() / b;
int j1 = mouseevent.getY() / b;
k = i1;
l = j1;
}
public void mouseReleased(java.awt.event.MouseEvent mouseevent)
{
}
public void keyPressed(java.awt.event.KeyEvent keyevent)
{
if(keyevent.getKeyCode() == 48)
a(11);
if(keyevent.getKeyCode() == 49)
a(10);
if(keyevent.getKeyCode() == 50)
a(9);
if(keyevent.getKeyCode() == 51)
a(7);
if(keyevent.getKeyCode() == 52)
a(6);
if(keyevent.getKeyCode() == 53)
a(5);
if(keyevent.getKeyCode() == 54)
a(3);
if(keyevent.getKeyCode() == 55)
a(2);
if(keyevent.getKeyCode() == 56)
a(1);
if(keyevent.getKeyCode() == 57)
a(0);
if(keyevent.getKeyCode() == 112)
b("World1");
if(keyevent.getKeyCode() == 113)
b("World2");
if(keyevent.getKeyCode() == 114)
b("World3");
if(keyevent.getKeyCode() == 115)
b("World4");
if(keyevent.getKeyCode() == 116)
b("World5");
if(keyevent.getKeyCode() == 32)
i = j = 0;
if(keyevent.getKeyCode() == 27)
c = !c;
repaint();
}
public void keyReleased(java.awt.event.KeyEvent keyevent)
{
}
public void keyTyped(java.awt.event.KeyEvent keyevent)
{
}
static boolean a(ad ad1)
{
return ad1.f;
}
}

View File

@@ -0,0 +1,29 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ae extends ik
{
private int a;
public ae(int i)
{
a = i;
}
public boolean a(cn cn1, java.util.Random random, int i, int j, int k)
{
for(int l = 0; l < 64; l++)
{
int i1 = (i + random.nextInt(8)) - random.nextInt(8);
int j1 = (j + random.nextInt(4)) - random.nextInt(4);
int k1 = (k + random.nextInt(8)) - random.nextInt(8);
if(cn1.a(i1, j1, k1) == 0 && ((mq)ly.n[a]).g(cn1, i1, j1, k1))
cn1.a(i1, j1, k1, a);
}
return true;
}
}

View File

@@ -0,0 +1,20 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.io.IOException;
public interface af
{
public abstract ga a(cn cn, int i, int j) throws IOException;
public abstract void a(cn cn, ga ga) throws IOException;
public abstract void b(cn cn, ga ga);
public abstract void a();
public abstract void b();
}

View File

@@ -0,0 +1,45 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public abstract class ag extends ek
{
public ag(cn cn1)
{
super(cn1);
}
protected float a(int i, int j, int k)
{
if(ag.a(i, j - 1, k) == ly.v.bc)
return 10F;
else
return ag.c(i, j, k) - 0.5F;
}
public void a(hm hm)
{
super.a(hm);
}
public void b(hm hm)
{
super.b(hm);
}
public boolean a()
{
int i = eo.b(ak);
int j = eo.b(au.b);
int k = eo.b(am);
return ag.a(i, j - 1, k) == ly.v.bc && ag.j(i, j, k) > 8 && super.a();
}
public int b()
{
return 120;
}
}

View File

@@ -0,0 +1,19 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.net.URL;
public class ah
{
public java.lang.String a;
public java.net.URL b;
public ah(java.lang.String s, java.net.URL url)
{
a = s;
b = url;
}
}

View File

@@ -0,0 +1,97 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ai extends ly
{
private boolean a;
public ai(int j, int k, boolean flag)
{
super(j, k, gb.d);
if(flag)
b(true);
a = flag;
}
public int a()
{
return 30;
}
public void b(cn cn1, int j, int k, int l, dm dm)
{
h(cn1, j, k, l);
super.b(cn1, j, k, l, dm);
}
public void a(cn cn1, int j, int k, int l, kh kh)
{
h(cn1, j, k, l);
super.a(cn1, j, k, l, kh);
}
public boolean a(cn cn1, int j, int k, int l, dm dm)
{
h(cn1, j, k, l);
return super.a(cn1, j, k, l, dm);
}
private void h(cn cn1, int j, int k, int l)
{
i(cn1, j, k, l);
if(bc == ly.aO.bc)
cn1.d(j, k, l, ly.aP.bc);
}
public void a(cn cn1, int j, int k, int l, java.util.Random random)
{
if(bc == ly.aP.bc)
cn1.d(j, k, l, ly.aO.bc);
}
public int a(int j, java.util.Random random)
{
return di.aA.aS;
}
public int a(java.util.Random random)
{
return 4 + random.nextInt(2);
}
public void b(cn cn1, int j, int k, int l, java.util.Random random)
{
if(a)
i(cn1, j, k, l);
}
private void i(cn cn1, int j, int k, int l)
{
java.util.Random random = cn1.n;
double d = 0.0625D;
for(int i1 = 0; i1 < 6; i1++)
{
double d1 = (float)j + random.nextFloat();
double d2 = (float)k + random.nextFloat();
double d3 = (float)l + random.nextFloat();
if(i1 == 0 && !cn1.g(j, k + 1, l))
d2 = (double)(k + 1) + d;
if(i1 == 1 && !cn1.g(j, k - 1, l))
d2 = (double)(k + 0) - d;
if(i1 == 2 && !cn1.g(j, k, l + 1))
d3 = (double)(l + 1) + d;
if(i1 == 3 && !cn1.g(j, k, l - 1))
d3 = (double)(l + 0) - d;
if(i1 == 4 && !cn1.g(j + 1, k, l))
d1 = (double)(j + 1) + d;
if(i1 == 5 && !cn1.g(j - 1, k, l))
d1 = (double)(j + 0) - d;
if(d1 < (double)j || d1 > (double)(j + 1) || d2 < 0.0D || d2 > (double)(k + 1) || d3 < (double)l || d3 > (double)(l + 1))
cn1.a("reddust", d1, d2, d3, 0.0D, 0.0D, 0.0D);
}
}
}

View File

@@ -0,0 +1,179 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.ArrayList;
public class aj
{
private static java.util.List d = new ArrayList();
private static int e = 0;
public double a;
public double b;
public double c;
public static aj a(double d1, double d2, double d3)
{
return new aj(d1, d2, d3);
}
public static void a()
{
e = 0;
}
public static aj b(double d1, double d2, double d3)
{
if(e >= d.size())
d.add(((java.lang.Object) (aj.a(0.0D, 0.0D, 0.0D))));
return ((aj)d.get(e++)).e(d1, d2, d3);
}
private aj(double d1, double d2, double d3)
{
if(d1 == -0D)
d1 = 0.0D;
if(d2 == -0D)
d2 = 0.0D;
if(d3 == -0D)
d3 = 0.0D;
a = d1;
b = d2;
c = d3;
}
private aj e(double d1, double d2, double d3)
{
a = d1;
b = d2;
c = d3;
return this;
}
public aj a(aj aj1)
{
return aj.b(aj1.a - a, aj1.b - b, aj1.c - c);
}
public aj b()
{
double d1 = eo.a(a * a + b * b + c * c);
if(d1 < 0.0001D)
return aj.b(0.0D, 0.0D, 0.0D);
else
return aj.b(a / d1, b / d1, c / d1);
}
public aj b(aj aj1)
{
return aj.b(b * aj1.c - c * aj1.b, c * aj1.a - a * aj1.c, a * aj1.b - b * aj1.a);
}
public aj c(double d1, double d2, double d3)
{
return aj.b(a + d1, b + d2, c + d3);
}
public double c(aj aj1)
{
double d1 = aj1.a - a;
double d2 = aj1.b - b;
double d3 = aj1.c - c;
return (double)eo.a(d1 * d1 + d2 * d2 + d3 * d3);
}
public double d(aj aj1)
{
double d1 = aj1.a - a;
double d2 = aj1.b - b;
double d3 = aj1.c - c;
return d1 * d1 + d2 * d2 + d3 * d3;
}
public double d(double d1, double d2, double d3)
{
double d4 = d1 - a;
double d5 = d2 - b;
double d6 = d3 - c;
return d4 * d4 + d5 * d5 + d6 * d6;
}
public double c()
{
return (double)eo.a(a * a + b * b + c * c);
}
public aj a(aj aj1, double d1)
{
double d2 = aj1.a - a;
double d3 = aj1.b - b;
double d4 = aj1.c - c;
if(d2 * d2 < 1.0000000116860974E-007D)
return null;
double d5 = (d1 - a) / d2;
if(d5 < 0.0D || d5 > 1.0D)
return null;
else
return aj.b(a + d2 * d5, b + d3 * d5, c + d4 * d5);
}
public aj b(aj aj1, double d1)
{
double d2 = aj1.a - a;
double d3 = aj1.b - b;
double d4 = aj1.c - c;
if(d3 * d3 < 1.0000000116860974E-007D)
return null;
double d5 = (d1 - b) / d3;
if(d5 < 0.0D || d5 > 1.0D)
return null;
else
return aj.b(a + d2 * d5, b + d3 * d5, c + d4 * d5);
}
public aj c(aj aj1, double d1)
{
double d2 = aj1.a - a;
double d3 = aj1.b - b;
double d4 = aj1.c - c;
if(d4 * d4 < 1.0000000116860974E-007D)
return null;
double d5 = (d1 - c) / d4;
if(d5 < 0.0D || d5 > 1.0D)
return null;
else
return aj.b(a + d2 * d5, b + d3 * d5, c + d4 * d5);
}
public java.lang.String toString()
{
return (new StringBuilder()).append("(").append(a).append(", ").append(b).append(", ").append(c).append(")").toString();
}
public void a(float f)
{
float f1 = eo.b(f);
float f2 = eo.a(f);
double d1 = a;
double d2 = b * (double)f1 + c * (double)f2;
double d3 = c * (double)f1 - b * (double)f2;
a = d1;
b = d2;
c = d3;
}
public void b(float f)
{
float f1 = eo.b(f);
float f2 = eo.a(f);
double d1 = a * (double)f1 + c * (double)f2;
double d2 = b;
double d3 = c * (double)f1 - a * (double)f2;
a = d1;
b = d2;
c = d3;
}
}

View File

@@ -0,0 +1,255 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import org.lwjgl.opengl.GL11;
public abstract class ak
{
protected kx a;
private fo d;
private bc e;
protected float b;
protected float c;
public ak()
{
d = ((fo) (new cr()));
e = new bc();
b = 0.0F;
c = 1.0F;
}
public abstract void a(kh kh1, double d1, double d2, double d3,
float f, float f1);
protected void a(java.lang.String s)
{
ey ey1 = a.e;
ey1.b(ey1.a(s));
}
protected void a(java.lang.String s, java.lang.String s1)
{
ey ey1 = a.e;
ey1.b(ey1.a(s, s1));
}
private void a(kh kh1, double d1, double d2, double d3,
float f)
{
org.lwjgl.opengl.GL11.glDisable(2896);
int i = ly.as.bb;
int j = (i & 0xf) << 4;
int k = i & 0xf0;
float f1 = (float)j / 256F;
float f2 = ((float)j + 15.99F) / 256F;
float f3 = (float)k / 256F;
float f4 = ((float)k + 15.99F) / 256F;
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glTranslatef((float)d1, (float)d2, (float)d3);
float f5 = kh1.aC * 1.4F;
org.lwjgl.opengl.GL11.glScalef(f5, f5, f5);
a("/terrain.png");
ho ho1 = ho.a;
float f6 = 1.0F;
float f7 = 0.5F;
float f8 = 0.0F;
float f9 = kh1.aD / kh1.aC;
org.lwjgl.opengl.GL11.glRotatef(-a.i, 0.0F, 1.0F, 0.0F);
org.lwjgl.opengl.GL11.glTranslatef(0.0F, 0.0F, 0.4F + (float)(int)f9 * 0.02F);
org.lwjgl.opengl.GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
ho1.b();
while(f9 > 0.0F)
{
ho1.a(f6 - f7, 0.0F - f8, 0.0D, f2, f4);
ho1.a(0.0F - f7, 0.0F - f8, 0.0D, f1, f4);
ho1.a(0.0F - f7, 1.4F - f8, 0.0D, f1, f3);
ho1.a(f6 - f7, 1.4F - f8, 0.0D, f2, f3);
f9--;
f8--;
f6 *= 0.9F;
org.lwjgl.opengl.GL11.glTranslatef(0.0F, 0.0F, -0.04F);
}
ho1.a();
org.lwjgl.opengl.GL11.glPopMatrix();
org.lwjgl.opengl.GL11.glEnable(2896);
}
private void c(kh kh1, double d1, double d2, double d3,
float f, float f1)
{
org.lwjgl.opengl.GL11.glEnable(3042);
org.lwjgl.opengl.GL11.glBlendFunc(770, 771);
ey ey1 = a.e;
ey1.b(ey1.a("%%/shadow.png"));
cn cn1 = b();
org.lwjgl.opengl.GL11.glDepthMask(false);
float f2 = b;
double d4 = kh1.aI + (kh1.ak - kh1.aI) * (double)f1;
double d5 = kh1.aJ + (kh1.al - kh1.aJ) * (double)f1 + (double)kh1.h_();
double d6 = kh1.aK + (kh1.am - kh1.aK) * (double)f1;
int i = eo.b(d4 - (double)f2);
int j = eo.b(d4 + (double)f2);
int k = eo.b(d5 - (double)f2);
int l = eo.b(d5);
int i1 = eo.b(d6 - (double)f2);
int j1 = eo.b(d6 + (double)f2);
double d7 = d1 - d4;
double d8 = d2 - d5;
double d9 = d3 - d6;
ho ho1 = ho.a;
ho1.b();
for(int k1 = i; k1 <= j; k1++)
{
for(int l1 = k; l1 <= l; l1++)
{
for(int i2 = i1; i2 <= j1; i2++)
{
int j2 = cn1.a(k1, l1 - 1, i2);
if(j2 > 0 && cn1.j(k1, l1, i2) > 3)
a(ly.n[j2], d1, d2 + (double)kh1.h_(), d3, k1, l1, i2, f, f2, d7, d8 + (double)kh1.h_(), d9);
}
}
}
ho1.a();
org.lwjgl.opengl.GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
org.lwjgl.opengl.GL11.glDisable(3042);
org.lwjgl.opengl.GL11.glDepthMask(true);
}
private cn b()
{
return a.g;
}
private void a(ly ly1, double d1, double d2, double d3,
int i, int j, int k, float f, float f1, double d4,
double d5, double d6)
{
ho ho1 = ho.a;
if(!ly1.c())
return;
double d7 = ((double)f - (d2 - ((double)j + d5)) / 2D) * 0.5D * (double)b().c(i, j, k);
if(d7 < 0.0D)
return;
if(d7 > 1.0D)
d7 = 1.0D;
ho1.a(1.0F, 1.0F, 1.0F, (float)d7);
double d8 = (double)i + ly1.bf + d4;
double d9 = (double)i + ly1.bi + d4;
double d10 = (double)j + ly1.bg + d5 + 0.015625D;
double d11 = (double)k + ly1.bh + d6;
double d12 = (double)k + ly1.bk + d6;
float f2 = (float)((d1 - d8) / 2D / (double)f1 + 0.5D);
float f3 = (float)((d1 - d9) / 2D / (double)f1 + 0.5D);
float f4 = (float)((d3 - d11) / 2D / (double)f1 + 0.5D);
float f5 = (float)((d3 - d12) / 2D / (double)f1 + 0.5D);
ho1.a(d8, d10, d11, f2, f4);
ho1.a(d8, d10, d12, f2, f5);
ho1.a(d9, d10, d12, f3, f5);
ho1.a(d9, d10, d11, f3, f4);
}
public static void a(cf cf1, double d1, double d2, double d3)
{
org.lwjgl.opengl.GL11.glDisable(3553);
ho ho1 = ho.a;
org.lwjgl.opengl.GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
ho1.b();
ho1.b(d1, d2, d3);
ho1.b(0.0F, 0.0F, -1F);
ho1.a(cf1.a, cf1.e, cf1.c);
ho1.a(cf1.d, cf1.e, cf1.c);
ho1.a(cf1.d, cf1.b, cf1.c);
ho1.a(cf1.a, cf1.b, cf1.c);
ho1.b(0.0F, 0.0F, 1.0F);
ho1.a(cf1.a, cf1.b, cf1.f);
ho1.a(cf1.d, cf1.b, cf1.f);
ho1.a(cf1.d, cf1.e, cf1.f);
ho1.a(cf1.a, cf1.e, cf1.f);
ho1.b(0.0F, -1F, 0.0F);
ho1.a(cf1.a, cf1.b, cf1.c);
ho1.a(cf1.d, cf1.b, cf1.c);
ho1.a(cf1.d, cf1.b, cf1.f);
ho1.a(cf1.a, cf1.b, cf1.f);
ho1.b(0.0F, 1.0F, 0.0F);
ho1.a(cf1.a, cf1.e, cf1.f);
ho1.a(cf1.d, cf1.e, cf1.f);
ho1.a(cf1.d, cf1.e, cf1.c);
ho1.a(cf1.a, cf1.e, cf1.c);
ho1.b(-1F, 0.0F, 0.0F);
ho1.a(cf1.a, cf1.b, cf1.f);
ho1.a(cf1.a, cf1.e, cf1.f);
ho1.a(cf1.a, cf1.e, cf1.c);
ho1.a(cf1.a, cf1.b, cf1.c);
ho1.b(1.0F, 0.0F, 0.0F);
ho1.a(cf1.d, cf1.b, cf1.c);
ho1.a(cf1.d, cf1.e, cf1.c);
ho1.a(cf1.d, cf1.e, cf1.f);
ho1.a(cf1.d, cf1.b, cf1.f);
ho1.b(0.0D, 0.0D, 0.0D);
ho1.a();
org.lwjgl.opengl.GL11.glEnable(3553);
}
public static void a(cf cf1)
{
ho ho1 = ho.a;
ho1.b();
ho1.a(cf1.a, cf1.e, cf1.c);
ho1.a(cf1.d, cf1.e, cf1.c);
ho1.a(cf1.d, cf1.b, cf1.c);
ho1.a(cf1.a, cf1.b, cf1.c);
ho1.a(cf1.a, cf1.b, cf1.f);
ho1.a(cf1.d, cf1.b, cf1.f);
ho1.a(cf1.d, cf1.e, cf1.f);
ho1.a(cf1.a, cf1.e, cf1.f);
ho1.a(cf1.a, cf1.b, cf1.c);
ho1.a(cf1.d, cf1.b, cf1.c);
ho1.a(cf1.d, cf1.b, cf1.f);
ho1.a(cf1.a, cf1.b, cf1.f);
ho1.a(cf1.a, cf1.e, cf1.f);
ho1.a(cf1.d, cf1.e, cf1.f);
ho1.a(cf1.d, cf1.e, cf1.c);
ho1.a(cf1.a, cf1.e, cf1.c);
ho1.a(cf1.a, cf1.b, cf1.f);
ho1.a(cf1.a, cf1.e, cf1.f);
ho1.a(cf1.a, cf1.e, cf1.c);
ho1.a(cf1.a, cf1.b, cf1.c);
ho1.a(cf1.d, cf1.b, cf1.c);
ho1.a(cf1.d, cf1.e, cf1.c);
ho1.a(cf1.d, cf1.e, cf1.f);
ho1.a(cf1.d, cf1.b, cf1.f);
ho1.a();
}
public void a(kx kx1)
{
a = kx1;
}
public void b(kh kh1, double d1, double d2, double d3,
float f, float f1)
{
if(a.k.i && b > 0.0F)
{
double d4 = a.a(kh1.ak, kh1.al, kh1.am);
float f2 = (float)((1.0D - d4 / 256D) * (double)c);
if(f2 > 0.0F)
c(kh1, d1, d2, d3, f2, f1);
}
if(kh1.aT > 0)
a(kh1, d1, d2, d3, f1);
}
public kd a()
{
return a.a();
}
}

View File

@@ -0,0 +1,165 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class al extends ly
{
private js a;
protected al(int i, int j, js js1)
{
super(i, j, gb.d);
a = js1;
b(true);
float f = 0.0625F;
a(f, 0.0F, f, 1.0F - f, 0.03125F, 1.0F - f);
}
public int a()
{
return 20;
}
public cf d(cn cn1, int i, int j, int k)
{
return null;
}
public boolean b()
{
return false;
}
public boolean c()
{
return false;
}
public boolean a(cn cn1, int i, int j, int k)
{
return cn1.g(i, j - 1, k);
}
public void e(cn cn1, int i, int j, int k)
{
}
public void a(cn cn1, int i, int j, int k, int l)
{
boolean flag = false;
if(!cn1.g(i, j - 1, k))
flag = true;
if(flag)
{
b_(cn1, i, j, k, cn1.e(i, j, k));
cn1.d(i, j, k, 0);
}
}
public void a(cn cn1, int i, int j, int k, java.util.Random random)
{
if(cn1.e(i, j, k) == 0)
{
return;
} else
{
h(cn1, i, j, k);
return;
}
}
public void b(cn cn1, int i, int j, int k, kh kh)
{
if(cn1.e(i, j, k) == 1)
{
return;
} else
{
h(cn1, i, j, k);
return;
}
}
private void h(cn cn1, int i, int j, int k)
{
boolean flag = cn1.e(i, j, k) == 1;
boolean flag1 = false;
float f = 0.125F;
java.util.List list = null;
if(a == js.a)
list = cn1.b(((kh) (null)), cf.b((float)i + f, j, (float)k + f, (float)(i + 1) - f, (double)j + 0.25D, (float)(k + 1) - f));
if(a == js.b)
list = cn1.a(ge.class, cf.b((float)i + f, j, (float)k + f, (float)(i + 1) - f, (double)j + 0.25D, (float)(k + 1) - f));
if(a == js.c)
list = cn1.a(dm.class, cf.b((float)i + f, j, (float)k + f, (float)(i + 1) - f, (double)j + 0.25D, (float)(k + 1) - f));
if(list.size() > 0)
flag1 = true;
if(flag1 && !flag)
{
cn1.b(i, j, k, 1);
cn1.g(i, j, k, bc);
cn1.g(i, j - 1, k, bc);
cn1.b(i, j, k, i, j, k);
cn1.a((double)i + 0.5D, (double)j + 0.10000000000000001D, (double)k + 0.5D, "random.click", 0.3F, 0.6F);
}
if(!flag1 && flag)
{
cn1.b(i, j, k, 0);
cn1.g(i, j, k, bc);
cn1.g(i, j - 1, k, bc);
cn1.b(i, j, k, i, j, k);
cn1.a((double)i + 0.5D, (double)j + 0.10000000000000001D, (double)k + 0.5D, "random.click", 0.3F, 0.5F);
}
if(flag1)
cn1.h(i, j, k, bc);
}
public void b(cn cn1, int i, int j, int k)
{
int l = cn1.e(i, j, k);
if(l > 0)
{
cn1.g(i, j, k, bc);
cn1.g(i, j - 1, k, bc);
}
super.b(cn1, i, j, k);
}
public void a(nm nm1, int i, int j, int k)
{
boolean flag = nm1.e(i, j, k) == 1;
float f = 0.0625F;
if(flag)
a(f, 0.0F, f, 1.0F - f, 0.03125F, 1.0F - f);
else
a(f, 0.0F, f, 1.0F - f, 0.0625F, 1.0F - f);
}
public boolean b(nm nm1, int i, int j, int k, int l)
{
return nm1.e(i, j, k) > 0;
}
public boolean c(cn cn1, int i, int j, int k, int l)
{
if(cn1.e(i, j, k) == 0)
return false;
else
return l == 1;
}
public boolean d()
{
return true;
}
public void e()
{
float f = 0.5F;
float f1 = 0.125F;
float f2 = 0.5F;
a(0.5F - f, 0.5F - f1, 0.5F - f2, 0.5F + f, 0.5F + f1, 0.5F + f2);
}
}

View File

@@ -0,0 +1,67 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class am extends ag
{
public boolean a;
public am(cn cn)
{
super(cn);
a = false;
u = "/mob/cow.png";
a(0.9F, 1.3F);
}
public void a(hm hm)
{
super.a(hm);
}
public void b(hm hm)
{
super.b(hm);
}
protected java.lang.String c()
{
return "mob.cow";
}
protected java.lang.String d()
{
return "mob.cowhurt";
}
protected java.lang.String e()
{
return "mob.cowhurt";
}
protected float f()
{
return 0.4F;
}
protected int g()
{
return di.aD.aS;
}
public boolean a(dm dm1)
{
ev ev1 = dm1.b.a();
if(ev1 != null && ev1.c == di.au.aS)
{
dm1.b.a(dm1.b.d, new ev(di.aE));
return true;
} else
{
return false;
}
}
}

View File

@@ -0,0 +1,30 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class an extends mm
{
private final gh c;
public an(ee ee, gh gh1, gh gh2, int i, int j, int k)
{
super(ee, gh2, i, j, k);
c = gh1;
}
public boolean a(ev ev)
{
return false;
}
public void a()
{
for(int i = 0; i < c.c(); i++)
if(c.c(i) != null)
c.a(i, 1);
}
}

View File

@@ -0,0 +1,216 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ao extends kh
{
private int b;
private int c;
private int d;
private int e;
private boolean f;
public int a;
private ge g;
private int h;
private int i;
public ao(cn cn1)
{
super(cn1);
b = -1;
c = -1;
d = -1;
e = 0;
f = false;
a = 0;
i = 0;
a(0.25F, 0.25F);
}
public boolean a(double d1)
{
double d2 = au.b() * 4D;
d2 *= 64D;
return d1 < d2 * d2;
}
public ao(cn cn1, ge ge1)
{
super(cn1);
b = -1;
c = -1;
d = -1;
e = 0;
f = false;
a = 0;
i = 0;
g = ge1;
a(0.25F, 0.25F);
c(ge1.ak, ge1.al, ge1.am, ge1.aq, ge1.ar);
ak -= eo.b((aq / 180F) * 3.141593F) * 0.16F;
al -= 0.10000000149011612D;
am -= eo.a((aq / 180F) * 3.141593F) * 0.16F;
a(ak, al, am);
aB = 0.0F;
float f1 = 0.4F;
an = -eo.a((aq / 180F) * 3.141593F) * eo.b((ar / 180F) * 3.141593F) * f1;
ap = eo.b((aq / 180F) * 3.141593F) * eo.b((ar / 180F) * 3.141593F) * f1;
ao = -eo.a((ar / 180F) * 3.141593F) * f1;
a(an, ao, ap, 1.5F, 1.0F);
}
public void a(double d1, double d2, double d3, float f1,
float f2)
{
float f3 = eo.a(d1 * d1 + d2 * d2 + d3 * d3);
d1 /= f3;
d2 /= f3;
d3 /= f3;
d1 += aQ.nextGaussian() * 0.0074999998323619366D * (double)f2;
d2 += aQ.nextGaussian() * 0.0074999998323619366D * (double)f2;
d3 += aQ.nextGaussian() * 0.0074999998323619366D * (double)f2;
d1 *= f1;
d2 *= f1;
d3 *= f1;
an = d1;
ao = d2;
ap = d3;
float f4 = eo.a(d1 * d1 + d3 * d3);
as = aq = (float)((java.lang.Math.atan2(d1, d3) * 180D) / 3.1415927410125732D);
at = ar = (float)((java.lang.Math.atan2(d2, f4) * 180D) / 3.1415927410125732D);
h = 0;
}
public void e_()
{
super.e_();
if(a > 0)
a--;
if(f)
{
int j = ag.a(b, c, d);
if(j != e)
{
f = false;
an *= aQ.nextFloat() * 0.2F;
ao *= aQ.nextFloat() * 0.2F;
ap *= aQ.nextFloat() * 0.2F;
h = 0;
i = 0;
} else
{
h++;
if(h == 1200)
F();
return;
}
} else
{
i++;
}
aj aj1 = ((aj)null).b(ak, al, am);
aj aj2 = ((aj)null).b(ak + an, al + ao, am + ap);
mf mf1 = ag.a(aj1, aj2);
aj1 = ((aj)null).b(ak, al, am);
aj2 = ((aj)null).b(ak + an, al + ao, am + ap);
if(mf1 != null)
aj2 = ((aj)null).b(mf1.f.a, mf1.f.b, mf1.f.c);
kh kh1 = null;
java.util.List list = ag.b(((kh) (this)), au.a(an, ao, ap).b(1.0D, 1.0D, 1.0D));
double d1 = 0.0D;
for(int k = 0; k < list.size(); k++)
{
kh kh2 = (kh)list.get(k);
if(!kh2.c_() || kh2 == g && i < 5)
continue;
float f3 = 0.3F;
cf cf1 = kh2.au.b(f3, f3, f3);
mf mf2 = cf1.a(aj1, aj2);
if(mf2 == null)
continue;
double d2 = aj1.c(mf2.f);
if(d2 < d1 || d1 == 0.0D)
{
kh1 = kh2;
d1 = d2;
}
}
if(kh1 != null)
mf1 = new mf(kh1);
if(mf1 != null)
{
if(mf1.g != null)
if(!mf1.g.a(((kh) (g)), 0));
for(int l = 0; l < 8; l++)
ag.a("snowballpoof", ak, al, am, 0.0D, 0.0D, 0.0D);
F();
}
ak += an;
al += ao;
am += ap;
float f1 = eo.a(an * an + ap * ap);
aq = (float)((java.lang.Math.atan2(an, ap) * 180D) / 3.1415927410125732D);
for(ar = (float)((java.lang.Math.atan2(ao, f1) * 180D) / 3.1415927410125732D); ar - at < -180F; at -= 360F);
for(; ar - at >= 180F; at += 360F);
for(; aq - as < -180F; as -= 360F);
for(; aq - as >= 180F; as += 360F);
ar = at + (ar - at) * 0.2F;
aq = as + (aq - as) * 0.2F;
float f2 = 0.99F;
float f4 = 0.03F;
if(g_())
{
for(int i1 = 0; i1 < 4; i1++)
{
float f5 = 0.25F;
ag.a("bubble", ak - an * (double)f5, al - ao * (double)f5, am - ap * (double)f5, an, ao, ap);
}
f2 = 0.8F;
}
an *= f2;
ao *= f2;
ap *= f2;
ao -= f4;
a(ak, al, am);
}
public void a(hm hm1)
{
hm1.a("xTile", (short)b);
hm1.a("yTile", (short)c);
hm1.a("zTile", (short)d);
hm1.a("inTile", (byte)e);
hm1.a("shake", (byte)a);
hm1.a("inGround", (byte)(f ? 1 : 0));
}
public void b(hm hm1)
{
b = ((int) (hm1.d("xTile")));
c = ((int) (hm1.d("yTile")));
d = ((int) (hm1.d("zTile")));
e = hm1.c("inTile") & 0xff;
a = hm1.c("shake") & 0xff;
f = hm1.c("inGround") == 1;
}
public void b(dm dm1)
{
if(f && g == dm1 && a <= 0 && dm1.b.a(new ev(di.j.aS, 1)))
{
ag.a(((kh) (this)), "random.pop", 0.2F, ((aQ.nextFloat() - aQ.nextFloat()) * 0.7F + 1.0F) * 2.0F);
dm1.a_(((kh) (this)), 1);
F();
}
}
public float h_()
{
return 0.0F;
}
}

View File

@@ -0,0 +1,20 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ap extends oj
{
public ap(int i, int j)
{
super(i, j);
}
public ev a(ev ev1, cn cn, dm dm)
{
super.a(ev1, cn, dm);
return new ev(di.C);
}
}

View File

@@ -0,0 +1,95 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.TextArea;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.lwjgl.Sys;
import org.lwjgl.opengl.GL11;
public class aq extends java.awt.Panel
{
public aq(go go1)
{
setBackground(new Color(0x2e3444));
setLayout(((java.awt.LayoutManager) (new BorderLayout())));
java.io.StringWriter stringwriter = new StringWriter();
go1.b.printStackTrace(new PrintWriter(((java.io.Writer) (stringwriter))));
java.lang.String s = stringwriter.toString();
java.lang.String s1 = "";
java.lang.String s2 = "";
try
{
s2 = (new StringBuilder()).append(s2).append("Generated ").append((new SimpleDateFormat()).format(new Date())).append("\n").toString();
s2 = (new StringBuilder()).append(s2).append("\n").toString();
s2 = (new StringBuilder()).append(s2).append("Minecraft: Minecraft Alpha v1.1.2_01\n").toString();
s2 = (new StringBuilder()).append(s2).append("OS: ").append(java.lang.System.getProperty("os.name")).append(" (").append(java.lang.System.getProperty("os.arch")).append(") version ").append(java.lang.System.getProperty("os.version")).append("\n").toString();
s2 = (new StringBuilder()).append(s2).append("Java: ").append(java.lang.System.getProperty("java.version")).append(", ").append(java.lang.System.getProperty("java.vendor")).append("\n").toString();
s2 = (new StringBuilder()).append(s2).append("VM: ").append(java.lang.System.getProperty("java.vm.name")).append(" (").append(java.lang.System.getProperty("java.vm.info")).append("), ").append(java.lang.System.getProperty("java.vm.vendor")).append("\n").toString();
s2 = (new StringBuilder()).append(s2).append("LWJGL: ").append(org.lwjgl.Sys.getVersion()).append("\n").toString();
s1 = org.lwjgl.opengl.GL11.glGetString(7936);
s2 = (new StringBuilder()).append(s2).append("OpenGL: ").append(org.lwjgl.opengl.GL11.glGetString(7937)).append(" version ").append(org.lwjgl.opengl.GL11.glGetString(7938)).append(", ").append(org.lwjgl.opengl.GL11.glGetString(7936)).append("\n").toString();
}
catch(java.lang.Throwable throwable)
{
s2 = (new StringBuilder()).append(s2).append("[failed to get system properties (").append(((java.lang.Object) (throwable))).append(")]\n").toString();
}
s2 = (new StringBuilder()).append(s2).append("\n").toString();
s2 = (new StringBuilder()).append(s2).append(s).toString();
java.lang.String s3 = "";
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("\n").toString();
if(s.contains("Pixel format not accelerated"))
{
s3 = (new StringBuilder()).append(s3).append(" Bad video card drivers! \n").toString();
s3 = (new StringBuilder()).append(s3).append(" ----------------------- \n").toString();
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("Minecraft was unable to start because it failed to find an accelerated OpenGL mode.\n").toString();
s3 = (new StringBuilder()).append(s3).append("This can usually be fixed by updating the video card drivers.\n").toString();
if(s1.toLowerCase().contains("nvidia"))
{
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("You might be able to find drivers for your video card here:\n").toString();
s3 = (new StringBuilder()).append(s3).append(" http://www.nvidia.com/\n").toString();
} else
if(s1.toLowerCase().contains("ati"))
{
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("You might be able to find drivers for your video card here:\n").toString();
s3 = (new StringBuilder()).append(s3).append(" http://www.amd.com/\n").toString();
}
} else
{
s3 = (new StringBuilder()).append(s3).append(" Minecraft has crashed! \n").toString();
s3 = (new StringBuilder()).append(s3).append(" ---------------------- \n").toString();
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("Minecraft has stopped running because it encountered a problem.\n").toString();
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("If you wish to report this, please copy this entire text and email it to support@mojang.com.\n").toString();
s3 = (new StringBuilder()).append(s3).append("Please include a description of what you did when the error occured.\n").toString();
}
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("--- BEGIN ERROR REPORT ").append(java.lang.Integer.toHexString(s3.hashCode())).append(" --------\n").toString();
s3 = (new StringBuilder()).append(s3).append(s2).toString();
s3 = (new StringBuilder()).append(s3).append("--- END ERROR REPORT ").append(java.lang.Integer.toHexString(s3.hashCode())).append(" ----------\n").toString();
s3 = (new StringBuilder()).append(s3).append("\n").toString();
s3 = (new StringBuilder()).append(s3).append("\n").toString();
java.awt.TextArea textarea = new TextArea(s3, 0, 0, 1);
textarea.setFont(new Font("Monospaced", 0, 12));
add(((java.awt.Component) (new db())), "North");
add(((java.awt.Component) (new nb(80))), "East");
add(((java.awt.Component) (new nb(80))), "West");
add(((java.awt.Component) (new nb(100))), "South");
add(((java.awt.Component) (textarea)), "Center");
}
}

View File

@@ -0,0 +1,28 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.ArrayList;
public class ar
{
protected java.util.List c;
public ar()
{
c = ((java.util.List) (new ArrayList()));
}
public void a(dm dm1)
{
eu eu1 = dm1.b;
if(eu1.e != null)
dm1.a(eu1.e);
}
public void a(gh gh)
{
}
}

View File

@@ -0,0 +1,28 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class as extends bh
{
private java.lang.String a;
private java.lang.String h;
public void a()
{
}
public void a(int i, int j, float f)
{
a(0, 0, c, d, 0xff402020, 0xff501010);
a(g, a, c / 2, 90, 0xffffff);
a(g, h, c / 2, 110, 0xffffff);
super.a(i, j, f);
}
protected void a(char c, int i)
{
}
}

View File

@@ -0,0 +1,85 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class at extends z
{
protected float g[];
protected float h[];
protected float i[];
protected float j[];
public at()
{
super(ly.D.bb);
g = new float[256];
h = new float[256];
i = new float[256];
j = new float[256];
}
public void a()
{
for(int k = 0; k < 16; k++)
{
for(int l = 0; l < 16; l++)
{
float f = 0.0F;
int j1 = (int)(eo.a(((float)l * 3.141593F * 2.0F) / 16F) * 1.2F);
int k1 = (int)(eo.a(((float)k * 3.141593F * 2.0F) / 16F) * 1.2F);
for(int i2 = k - 1; i2 <= k + 1; i2++)
{
for(int k2 = l - 1; k2 <= l + 1; k2++)
{
int i3 = i2 + j1 & 0xf;
int k3 = k2 + k1 & 0xf;
f += g[i3 + k3 * 16];
}
}
h[k + l * 16] = f / 10F + ((i[(k + 0 & 0xf) + (l + 0 & 0xf) * 16] + i[(k + 1 & 0xf) + (l + 0 & 0xf) * 16] + i[(k + 1 & 0xf) + (l + 1 & 0xf) * 16] + i[(k + 0 & 0xf) + (l + 1 & 0xf) * 16]) / 4F) * 0.8F;
i[k + l * 16] += j[k + l * 16] * 0.01F;
if(i[k + l * 16] < 0.0F)
i[k + l * 16] = 0.0F;
j[k + l * 16] -= 0.06F;
if(java.lang.Math.random() < 0.0050000000000000001D)
j[k + l * 16] = 1.5F;
}
}
float af[] = h;
h = g;
g = af;
for(int i1 = 0; i1 < 256; i1++)
{
float f1 = g[i1] * 2.0F;
if(f1 > 1.0F)
f1 = 1.0F;
if(f1 < 0.0F)
f1 = 0.0F;
float f2 = f1;
int l1 = (int)(f2 * 100F + 155F);
int j2 = (int)(f2 * f2 * 255F);
int l2 = (int)(f2 * f2 * f2 * f2 * 128F);
if(c)
{
int j3 = (l1 * 30 + j2 * 59 + l2 * 11) / 100;
int l3 = (l1 * 30 + j2 * 70) / 100;
int i4 = (l1 * 30 + l2 * 70) / 100;
l1 = j3;
j2 = l3;
l2 = i4;
}
a[i1 * 4 + 0] = (byte)l1;
a[i1 * 4 + 1] = (byte)j2;
a[i1 * 4 + 2] = (byte)l2;
a[i1 * 4 + 3] = -1;
}
}
}

View File

@@ -0,0 +1,58 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import org.lwjgl.opengl.GL11;
public class au extends bh
{
public au()
{
}
public void a()
{
e.clear();
e.add(((java.lang.Object) (new fk(1, c / 2 - 100, d / 4 + 72, "Respawn"))));
e.add(((java.lang.Object) (new fk(2, c / 2 - 100, d / 4 + 96, "Title menu"))));
if(b.i == null)
((fk)e.get(1)).g = false;
}
protected void a(char c, int i)
{
}
protected void a(fk fk1)
{
if(fk1.f != 0);
if(fk1.f == 1)
{
b.o();
b.a(((bh) (null)));
}
if(fk1.f == 2)
{
b.a(((cn) (null)));
b.a(((bh) (new cx())));
}
}
public void a(int i, int j, float f)
{
a(0, 0, c, d, 0x60500000, 0xa0803030);
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glScalef(2.0F, 2.0F, 2.0F);
a(g, "Game over!", c / 2 / 2, 30, 0xffffff);
org.lwjgl.opengl.GL11.glPopMatrix();
a(g, (new StringBuilder()).append("Score: &e").append(b.g.r()).toString(), c / 2, 100, 0xffffff);
super.a(i, j, f);
}
public boolean b()
{
return false;
}
}

View File

@@ -0,0 +1,53 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class av extends di
{
private int a;
public av(int i)
{
super(i);
a = i + 256;
a(ly.n[i + 256].a(2));
}
public boolean a(ev ev1, dm dm, cn cn1, int i, int j, int k, int l)
{
if(cn1.a(i, j, k) == ly.aT.bc)
{
l = 0;
} else
{
if(l == 0)
j--;
if(l == 1)
j++;
if(l == 2)
k--;
if(l == 3)
k++;
if(l == 4)
i--;
if(l == 5)
i++;
}
if(ev1.a == 0)
return false;
if(cn1.a(a, i, j, k, false))
{
ly ly1 = ly.n[a];
if(cn1.d(i, j, k, a))
{
ly.n[a].d(cn1, i, j, k, l);
cn1.a((float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, ly1.bl.d(), (ly1.bl.b() + 1.0F) / 2.0F, ly1.bl.c() * 0.8F);
ev1.a--;
}
}
return true;
}
}

View File

@@ -0,0 +1,21 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public interface aw
{
public abstract boolean a(int i, int j);
public abstract ga b(int i, int j);
public abstract void a(aw aw1, int i, int j);
public abstract boolean a(boolean flag, nu nu);
public abstract boolean a();
public abstract boolean b();
}

View File

@@ -0,0 +1,89 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ax extends dq
{
public ax(cn cn1)
{
super(cn1);
u = "/mob/spider.png";
a(1.4F, 0.9F);
aa = 0.8F;
}
public double h()
{
return (double)aD * 0.75D - 0.5D;
}
protected kh i()
{
float f = a(1.0F);
if(f < 0.5F)
{
double d1 = 16D;
return ((kh) (ag.a(((kh) (this)), d1)));
} else
{
return null;
}
}
protected java.lang.String c()
{
return "mob.spider";
}
protected java.lang.String d()
{
return "mob.spider";
}
protected java.lang.String e()
{
return "mob.spiderdeath";
}
protected void a(kh kh1, float f)
{
float f1 = a(1.0F);
if(f1 > 0.5F && aQ.nextInt(100) == 0)
{
this.f = null;
return;
}
if(f > 2.0F && f < 6F && aQ.nextInt(10) == 0)
{
if(av)
{
double d1 = kh1.ak - ak;
double d2 = kh1.am - am;
float f2 = eo.a(d1 * d1 + d2 * d2);
an = (d1 / (double)f2) * 0.5D * 0.80000001192092896D + an * 0.20000000298023224D;
ap = (d2 / (double)f2) * 0.5D * 0.80000001192092896D + ap * 0.20000000298023224D;
ao = 0.40000000596046448D;
}
} else
{
super.a(kh1, f);
}
}
public void a(hm hm)
{
super.a(hm);
}
public void b(hm hm)
{
super.b(hm);
}
protected int g()
{
return di.I.aS;
}
}

View File

@@ -0,0 +1,56 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ay extends bh
{
private bh h;
protected java.lang.String a;
private fr i;
public ay(bh bh1, fr fr1)
{
a = "Options";
h = bh1;
i = fr1;
}
public void a()
{
for(int j = 0; j < i.v; j++)
{
int k = i.b(j);
if(k == 0)
e.add(((java.lang.Object) (new o(j, (c / 2 - 155) + (j % 2) * 160, d / 6 + 24 * (j >> 1), i.d(j)))));
else
e.add(((java.lang.Object) (new mo(j, (c / 2 - 155) + (j % 2) * 160, d / 6 + 24 * (j >> 1), j, i.d(j), i.c(j)))));
}
e.add(((java.lang.Object) (new fk(100, c / 2 - 100, d / 6 + 120 + 12, "Controls..."))));
e.add(((java.lang.Object) (new fk(200, c / 2 - 100, d / 6 + 168, "Done"))));
}
protected void a(fk fk1)
{
if(!fk1.g)
return;
if(fk1.f < 100)
{
i.b(fk1.f, 1);
fk1.e = i.d(fk1.f);
}
if(fk1.f == 100)
b.a(((bh) (new lw(((bh) (this)), i))));
if(fk1.f == 200)
b.a(h);
}
public void a(int j, int k, float f)
{
i();
a(g, a, c / 2, 20, 0xffffff);
super.a(j, k, f);
}
}

View File

@@ -0,0 +1,138 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.HashSet;
public class az
{
private int a;
private java.lang.Class b;
private java.lang.Class c[];
private java.util.Set d;
public az(int i, java.lang.Class class1, java.lang.Class aclass[])
{
d = ((java.util.Set) (new HashSet()));
a = i;
b = class1;
c = aclass;
}
public void a(cn cn1)
{
int i = cn1.b(b);
if(i < a)
{
for(int j = 0; j < 3; j++)
a(cn1, 1, ((nu) (null)));
}
}
protected mt a(cn cn1, int i, int j)
{
int k = i + cn1.n.nextInt(16);
int l = cn1.n.nextInt(128);
int i1 = j + cn1.n.nextInt(16);
return new mt(k, l, i1);
}
private int a(cn cn1, int i, nu nu)
{
d.clear();
for(int j = 0; j < cn1.k.size(); j++)
{
dm dm1 = (dm)cn1.k.get(j);
int l = eo.b(dm1.ak / 16D);
int i1 = eo.b(dm1.am / 16D);
byte byte0 = 4;
for(int k1 = -byte0; k1 <= byte0; k1++)
{
for(int i2 = -byte0; i2 <= byte0; i2++)
d.add(((java.lang.Object) (new ol(k1 + l, i2 + i1))));
}
}
int k = 0;
java.util.Iterator iterator = d.iterator();
do
{
if(!iterator.hasNext())
break;
ol ol1 = (ol)iterator.next();
if(cn1.n.nextInt(10) == 0)
{
int j1 = cn1.n.nextInt(c.length);
mt mt1 = a(cn1, ol1.a * 16, ol1.b * 16);
int l1 = mt1.a;
int j2 = mt1.b;
int k2 = mt1.c;
if(cn1.g(l1, j2, k2))
return 0;
if(cn1.f(l1, j2, k2) != gb.a)
return 0;
int l2 = 0;
while(l2 < 3)
{
int i3 = l1;
int j3 = j2;
int k3 = k2;
byte byte1 = 6;
for(int l3 = 0; l3 < 2; l3++)
{
i3 += cn1.n.nextInt(((int) (byte1))) - cn1.n.nextInt(((int) (byte1)));
j3 += cn1.n.nextInt(1) - cn1.n.nextInt(1);
k3 += cn1.n.nextInt(((int) (byte1))) - cn1.n.nextInt(((int) (byte1)));
if(!cn1.g(i3, j3 - 1, k3) || cn1.g(i3, j3, k3) || cn1.f(i3, j3, k3).d() || cn1.g(i3, j3 + 1, k3))
continue;
float f = (float)i3 + 0.5F;
float f1 = j3;
float f2 = (float)k3 + 0.5F;
if(cn1.a(f, f1, f2, 24D) != null)
continue;
float f3 = f - (float)cn1.o;
float f4 = f1 - (float)cn1.p;
float f5 = f2 - (float)cn1.q;
float f6 = f3 * f3 + f4 * f4 + f5 * f5;
if(f6 < 576F)
continue;
ge ge1;
try
{
ge1 = (ge)c[j1].getConstructor(new java.lang.Class[] {
cn.class
}).newInstance(new java.lang.Object[] {
cn1
});
}
catch(java.lang.Exception exception)
{
exception.printStackTrace();
return k;
}
ge1.c(f, f1, f2, cn1.n.nextFloat() * 360F, 0.0F);
if(!ge1.a())
continue;
k++;
cn1.a(((kh) (ge1)));
if((ge1 instanceof ax) && cn1.n.nextInt(100) == 0)
{
cw cw1 = new cw(cn1);
cw1.c(f, f1, f2, ge1.aq, 0.0F);
cn1.a(((kh) (cw1)));
cw1.g(((kh) (ge1)));
}
}
l2++;
}
}
} while(true);
return k;
}
}

View File

@@ -0,0 +1,186 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.Random;
public class b extends jt
{
private java.util.Random a;
protected b(int i)
{
super(i, gb.c);
a = new Random();
bb = 26;
}
public int a(nm nm1, int i, int j, int k, int l)
{
if(l == 1)
return bb - 1;
if(l == 0)
return bb - 1;
int i1 = nm1.a(i, j, k - 1);
int j1 = nm1.a(i, j, k + 1);
int k1 = nm1.a(i - 1, j, k);
int l1 = nm1.a(i + 1, j, k);
if(i1 == bc || j1 == bc)
{
if(l == 2 || l == 3)
return bb;
int i2 = 0;
if(i1 == bc)
i2 = -1;
int k2 = nm1.a(i - 1, j, i1 != bc ? k + 1 : k - 1);
int i3 = nm1.a(i + 1, j, i1 != bc ? k + 1 : k - 1);
if(l == 4)
i2 = -1 - i2;
byte byte1 = 5;
if((ly.p[k1] || ly.p[k2]) && !ly.p[l1] && !ly.p[i3])
byte1 = 5;
if((ly.p[l1] || ly.p[i3]) && !ly.p[k1] && !ly.p[k2])
byte1 = 4;
return (l != byte1 ? bb + 32 : bb + 16) + i2;
}
if(k1 == bc || l1 == bc)
{
if(l == 4 || l == 5)
return bb;
int j2 = 0;
if(k1 == bc)
j2 = -1;
int l2 = nm1.a(k1 != bc ? i + 1 : i - 1, j, k - 1);
int j3 = nm1.a(k1 != bc ? i + 1 : i - 1, j, k + 1);
if(l == 3)
j2 = -1 - j2;
byte byte2 = 3;
if((ly.p[i1] || ly.p[l2]) && !ly.p[j1] && !ly.p[j3])
byte2 = 3;
if((ly.p[j1] || ly.p[j3]) && !ly.p[i1] && !ly.p[l2])
byte2 = 2;
return (l != byte2 ? bb + 32 : bb + 16) + j2;
}
byte byte0 = 3;
if(ly.p[i1] && !ly.p[j1])
byte0 = 3;
if(ly.p[j1] && !ly.p[i1])
byte0 = 2;
if(ly.p[k1] && !ly.p[l1])
byte0 = 5;
if(ly.p[l1] && !ly.p[k1])
byte0 = 4;
return l != byte0 ? bb : bb + 1;
}
public int a(int i)
{
if(i == 1)
return bb - 1;
if(i == 0)
return bb - 1;
if(i == 3)
return bb + 1;
else
return bb;
}
public boolean a(cn cn1, int i, int j, int k)
{
int l = 0;
if(cn1.a(i - 1, j, k) == bc)
l++;
if(cn1.a(i + 1, j, k) == bc)
l++;
if(cn1.a(i, j, k - 1) == bc)
l++;
if(cn1.a(i, j, k + 1) == bc)
l++;
if(l > 1)
return false;
if(h(cn1, i - 1, j, k))
return false;
if(h(cn1, i + 1, j, k))
return false;
if(h(cn1, i, j, k - 1))
return false;
return !h(cn1, i, j, k + 1);
}
private boolean h(cn cn1, int i, int j, int k)
{
if(cn1.a(i, j, k) != bc)
return false;
if(cn1.a(i - 1, j, k) == bc)
return true;
if(cn1.a(i + 1, j, k) == bc)
return true;
if(cn1.a(i, j, k - 1) == bc)
return true;
return cn1.a(i, j, k + 1) == bc;
}
public void b(cn cn1, int i, int j, int k)
{
fe fe1 = (fe)cn1.b(i, j, k);
label0:
for(int l = 0; l < ((gh) (fe1)).c(); l++)
{
ev ev1 = ((gh) (fe1)).c(l);
if(ev1 == null)
continue;
float f = a.nextFloat() * 0.8F + 0.1F;
float f1 = a.nextFloat() * 0.8F + 0.1F;
float f2 = a.nextFloat() * 0.8F + 0.1F;
do
{
if(ev1.a <= 0)
continue label0;
int i1 = a.nextInt(21) + 10;
if(i1 > ev1.a)
i1 = ev1.a;
ev1.a -= i1;
dx dx1 = new dx(cn1, (float)i + f, (float)j + f1, (float)k + f2, new ev(ev1.c, i1, ev1.d));
float f3 = 0.05F;
dx1.an = (float)a.nextGaussian() * f3;
dx1.ao = (float)a.nextGaussian() * f3 + 0.2F;
dx1.ap = (float)a.nextGaussian() * f3;
cn1.a(((kh) (dx1)));
} while(true);
}
super.b(cn1, i, j, k);
}
public boolean a(cn cn1, int i, int j, int k, dm dm1)
{
java.lang.Object obj = ((java.lang.Object) ((fe)cn1.b(i, j, k)));
if(cn1.g(i, j + 1, k))
return true;
if(cn1.a(i - 1, j, k) == bc && cn1.g(i - 1, j + 1, k))
return true;
if(cn1.a(i + 1, j, k) == bc && cn1.g(i + 1, j + 1, k))
return true;
if(cn1.a(i, j, k - 1) == bc && cn1.g(i, j + 1, k - 1))
return true;
if(cn1.a(i, j, k + 1) == bc && cn1.g(i, j + 1, k + 1))
return true;
if(cn1.a(i - 1, j, k) == bc)
obj = ((java.lang.Object) (new hs("Large chest", ((gh) ((fe)cn1.b(i - 1, j, k))), ((gh) (obj)))));
if(cn1.a(i + 1, j, k) == bc)
obj = ((java.lang.Object) (new hs("Large chest", ((gh) (obj)), ((gh) ((fe)cn1.b(i + 1, j, k))))));
if(cn1.a(i, j, k - 1) == bc)
obj = ((java.lang.Object) (new hs("Large chest", ((gh) ((fe)cn1.b(i, j, k - 1))), ((gh) (obj)))));
if(cn1.a(i, j, k + 1) == bc)
obj = ((java.lang.Object) (new hs("Large chest", ((gh) (obj)), ((gh) ((fe)cn1.b(i, j, k + 1))))));
dm1.a(((gh) (obj)));
return true;
}
protected ic a_()
{
return ((ic) (new fe()));
}
}

View File

@@ -0,0 +1,40 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ba extends nq
{
public ba(cn cn1, double d, double d1, double d2,
double d3, double d4, double d5)
{
super(cn1, d, d1, d2, d3, d4, d5);
i = 1.0F;
j = 1.0F;
k = 1.0F;
b = 32;
a(0.02F, 0.02F);
g = g * (aQ.nextFloat() * 0.6F + 0.2F);
an = d3 * 0.20000000298023224D + (double)((float)(java.lang.Math.random() * 2D - 1.0D) * 0.02F);
ao = d4 * 0.20000000298023224D + (double)((float)(java.lang.Math.random() * 2D - 1.0D) * 0.02F);
ap = d5 * 0.20000000298023224D + (double)((float)(java.lang.Math.random() * 2D - 1.0D) * 0.02F);
f = (int)(8D / (java.lang.Math.random() * 0.80000000000000004D + 0.20000000000000001D));
}
public void e_()
{
ah = ak;
ai = al;
aj = am;
ao += 0.002D;
c(an, ao, ap);
an *= 0.85000002384185791D;
ao *= 0.85000002384185791D;
ap *= 0.85000002384185791D;
if(ag.f(eo.b(ak), eo.b(al), eo.b(am)) != gb.f)
F();
if(f-- <= 0)
F();
}
}

View File

@@ -0,0 +1,40 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bb
{
public final java.lang.String a;
public final float b;
public final float c;
public bb(java.lang.String s, float f, float f1)
{
a = s;
b = f;
c = f1;
}
public float b()
{
return b;
}
public float c()
{
return c;
}
public java.lang.String a()
{
return (new StringBuilder()).append("step.").append(a).toString();
}
public java.lang.String d()
{
return (new StringBuilder()).append("step.").append(a).toString();
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,105 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bd extends ic
{
public int a;
public java.lang.String b;
public double c;
public double d;
public bd()
{
a = -1;
d = 0.0D;
b = "Pig";
a = 20;
}
public boolean a()
{
return e.a((double)f + 0.5D, (double)g + 0.5D, (double)h + 0.5D, 16D) != null;
}
public void b()
{
d = c;
if(!a())
return;
double d1 = (float)f + e.n.nextFloat();
double d3 = (float)g + e.n.nextFloat();
double d5 = (float)h + e.n.nextFloat();
e.a("smoke", d1, d3, d5, 0.0D, 0.0D, 0.0D);
e.a("flame", d1, d3, d5, 0.0D, 0.0D, 0.0D);
for(c += 1000F / ((float)a + 200F); c > 360D;)
{
c -= 360D;
d -= 360D;
}
if(a == -1)
c();
if(a > 0)
{
a--;
return;
}
byte byte0 = 4;
for(int i = 0; i < byte0; i++)
{
ge ge1 = (ge)(ge)ew.a(b, e);
if(ge1 == null)
return;
int j = e.a(((java.lang.Object) (ge1)).getClass(), cf.b(f, g, h, f + 1, g + 1, h + 1).b(8D, 4D, 8D)).size();
if(j >= 6)
{
c();
return;
}
if(ge1 == null)
continue;
double d7 = (double)f + (e.n.nextDouble() - e.n.nextDouble()) * 4D;
double d8 = (g + e.n.nextInt(3)) - 1;
double d9 = (double)h + (e.n.nextDouble() - e.n.nextDouble()) * 4D;
ge1.c(d7, d8, d9, e.n.nextFloat() * 360F, 0.0F);
if(!ge1.a())
continue;
e.a(((kh) (ge1)));
for(int k = 0; k < 20; k++)
{
double d2 = (double)f + 0.5D + ((double)e.n.nextFloat() - 0.5D) * 2D;
double d4 = (double)g + 0.5D + ((double)e.n.nextFloat() - 0.5D) * 2D;
double d6 = (double)h + 0.5D + ((double)e.n.nextFloat() - 0.5D) * 2D;
e.a("smoke", d2, d4, d6, 0.0D, 0.0D, 0.0D);
e.a("flame", d2, d4, d6, 0.0D, 0.0D, 0.0D);
}
ge1.z();
c();
}
super.b();
}
private void c()
{
a = 200 + e.n.nextInt(600);
}
public void a(hm hm1)
{
super.a(hm1);
b = hm1.i("EntityId");
a = ((int) (hm1.d("Delay")));
}
public void b(hm hm1)
{
super.b(hm1);
hm1.a("EntityId", b);
hm1.a("Delay", (short)a);
}
}

View File

@@ -0,0 +1,23 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import org.lwjgl.opengl.ContextCapabilities;
import org.lwjgl.opengl.GLContext;
public class be
{
private static boolean a = false;
public be()
{
}
public boolean a()
{
return a && org.lwjgl.opengl.GLContext.getCapabilities().GL_ARB_occlusion_query;
}
}

View File

@@ -0,0 +1,154 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.net.URL;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import net.minecraft.client.Minecraft;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class bf extends java.lang.Thread
{
public java.io.File a;
private net.minecraft.client.Minecraft b;
private boolean c;
public bf(java.io.File file, net.minecraft.client.Minecraft minecraft)
{
c = false;
b = minecraft;
setName("Resource download thread");
setDaemon(true);
a = new File(file, "resources/");
if(!a.exists() && !a.mkdirs())
throw new RuntimeException((new StringBuilder()).append("The working directory could not be created: ").append(((java.lang.Object) (a))).toString());
else
return;
}
public void run()
{
try {
java.net.URL url;
org.w3c.dom.NodeList nodelist;
int i;
url = new URL("http://s3.amazonaws.com/MinecraftResources/");
javax.xml.parsers.DocumentBuilderFactory documentbuilderfactory = javax.xml.parsers.DocumentBuilderFactory.newInstance();
javax.xml.parsers.DocumentBuilder documentbuilder = documentbuilderfactory.newDocumentBuilder();
org.w3c.dom.Document document = documentbuilder.parse(url.openStream());
nodelist = document.getElementsByTagName("Contents");
for (i = 0; i < 2; i++)
for (int j = 0; j < nodelist.getLength(); j++) {
org.w3c.dom.Node node = nodelist.item(j);
if(node.getNodeType() == 1)
{
org.w3c.dom.Element element = (org.w3c.dom.Element)node;
java.lang.String s = ((org.w3c.dom.Element)element.getElementsByTagName("Key").item(0)).getChildNodes().item(0).getNodeValue();
long l = java.lang.Long.parseLong(((org.w3c.dom.Element)element.getElementsByTagName("Size").item(0)).getChildNodes().item(0).getNodeValue());
if(l > 0L)
{
a(url, s, l, i);
if(c)
return;
}
}
}
}
catch (java.lang.Exception exception)
{
a(a, "");
exception.printStackTrace();
}
}
public void a()
{
a(a, "");
}
private void a(java.io.File file, java.lang.String s)
{
java.io.File afile[] = file.listFiles();
for(int i = 0; i < afile.length; i++)
{
if(afile[i].isDirectory())
{
a(afile[i], (new StringBuilder()).append(s).append(afile[i].getName()).append("/").toString());
continue;
}
try
{
b.a((new StringBuilder()).append(s).append(afile[i].getName()).toString(), afile[i]);
}
catch(java.lang.Exception exception)
{
java.lang.System.out.println((new StringBuilder()).append("Failed to add ").append(s).append(afile[i].getName()).toString());
}
}
}
private void a(java.net.URL url, java.lang.String s, long l, int i)
{
try
{
int j = s.indexOf("/");
java.lang.String s1 = s.substring(0, j);
if(s1.equals("sound") || s1.equals("newsound"))
{
if(i != 0)
return;
}
if(i != 1)
return;
java.io.File file;
file = new File(a, s);
if(!file.exists() || file.length() != l)
{
file.getParentFile().mkdirs();
java.lang.String s2 = s.replaceAll(" ", "%20");
a(new URL(url, s2), file, l);
if(c)
return;
}
b.a(s, file);
}
catch(java.lang.Exception exception)
{
exception.printStackTrace();
}
}
private void a(java.net.URL url, java.io.File file, long l) throws IOException
{
byte abyte0[] = new byte[4096];
java.io.DataInputStream datainputstream = new DataInputStream(url.openStream());
java.io.DataOutputStream dataoutputstream = new DataOutputStream(((java.io.OutputStream) (new FileOutputStream(file))));
for(int i = 0; (i = datainputstream.read(abyte0)) >= 0;)
{
dataoutputstream.write(abyte0, 0, i);
if(c)
return;
}
datainputstream.close();
dataoutputstream.close();
}
public void b()
{
c = true;
}
}

View File

@@ -0,0 +1,184 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.ArrayList;
public class bg extends mj
{
private boolean a;
private static java.util.List b = new ArrayList();
public int a(int i, int j)
{
if(i == 1)
return ly.aw.a(i, j);
else
return super.a(i, j);
}
private boolean a(cn cn1, int i, int j, int k, boolean flag)
{
if(flag)
b.add(((java.lang.Object) (new np(i, j, k, cn1.c))));
int l = 0;
for(int i1 = 0; i1 < b.size(); i1++)
{
np np1 = (np)b.get(i1);
if(np1.a == i && np1.b == j && np1.c == k && ++l >= 8)
return true;
}
return false;
}
protected bg(int i, int j, boolean flag)
{
super(i, j);
a = false;
a = flag;
b(true);
}
public int a()
{
return 2;
}
public void e(cn cn1, int i, int j, int k)
{
if(cn1.e(i, j, k) == 0)
super.e(cn1, i, j, k);
if(a)
{
cn1.g(i, j - 1, k, bc);
cn1.g(i, j + 1, k, bc);
cn1.g(i - 1, j, k, bc);
cn1.g(i + 1, j, k, bc);
cn1.g(i, j, k - 1, bc);
cn1.g(i, j, k + 1, bc);
}
}
public void b(cn cn1, int i, int j, int k)
{
if(a)
{
cn1.g(i, j - 1, k, bc);
cn1.g(i, j + 1, k, bc);
cn1.g(i - 1, j, k, bc);
cn1.g(i + 1, j, k, bc);
cn1.g(i, j, k - 1, bc);
cn1.g(i, j, k + 1, bc);
}
}
public boolean b(nm nm1, int i, int j, int k, int l)
{
if(!a)
return false;
int i1 = nm1.e(i, j, k);
if(i1 == 5 && l == 1)
return false;
if(i1 == 3 && l == 3)
return false;
if(i1 == 4 && l == 2)
return false;
if(i1 == 1 && l == 5)
return false;
return i1 != 2 || l != 4;
}
private boolean h(cn cn1, int i, int j, int k)
{
int l = cn1.e(i, j, k);
if(l == 5 && cn1.k(i, j - 1, k, 0))
return true;
if(l == 3 && cn1.k(i, j, k - 1, 2))
return true;
if(l == 4 && cn1.k(i, j, k + 1, 3))
return true;
if(l == 1 && cn1.k(i - 1, j, k, 4))
return true;
return l == 2 && cn1.k(i + 1, j, k, 5);
}
public void a(cn cn1, int i, int j, int k, java.util.Random random)
{
boolean flag = h(cn1, i, j, k);
for(; b.size() > 0 && cn1.c - ((np)b.get(0)).d > 100L; b.remove(0));
if(a)
{
if(flag)
{
cn1.b(i, j, k, ly.aQ.bc, cn1.e(i, j, k));
if(a(cn1, i, j, k, true))
{
cn1.a((float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, "random.fizz", 0.5F, 2.6F + (cn1.n.nextFloat() - cn1.n.nextFloat()) * 0.8F);
for(int l = 0; l < 5; l++)
{
double d1 = (double)i + random.nextDouble() * 0.59999999999999998D + 0.20000000000000001D;
double d2 = (double)j + random.nextDouble() * 0.59999999999999998D + 0.20000000000000001D;
double d3 = (double)k + random.nextDouble() * 0.59999999999999998D + 0.20000000000000001D;
cn1.a("smoke", d1, d2, d3, 0.0D, 0.0D, 0.0D);
}
}
}
} else
if(!flag && !a(cn1, i, j, k, false))
cn1.b(i, j, k, ly.aR.bc, cn1.e(i, j, k));
}
public void a(cn cn1, int i, int j, int k, int l)
{
super.a(cn1, i, j, k, l);
cn1.h(i, j, k, bc);
}
public boolean c(cn cn1, int i, int j, int k, int l)
{
if(l == 0)
return b(((nm) (cn1)), i, j, k, l);
else
return false;
}
public int a(int i, java.util.Random random)
{
return ly.aR.bc;
}
public boolean d()
{
return true;
}
public void b(cn cn1, int i, int j, int k, java.util.Random random)
{
if(!a)
return;
int l = cn1.e(i, j, k);
double d1 = (double)((float)i + 0.5F) + (double)(random.nextFloat() - 0.5F) * 0.20000000000000001D;
double d2 = (double)((float)j + 0.7F) + (double)(random.nextFloat() - 0.5F) * 0.20000000000000001D;
double d3 = (double)((float)k + 0.5F) + (double)(random.nextFloat() - 0.5F) * 0.20000000000000001D;
double d4 = 0.2199999988079071D;
double d5 = 0.27000001072883606D;
if(l == 1)
cn1.a("reddust", d1 - d5, d2 + d4, d3, 0.0D, 0.0D, 0.0D);
else
if(l == 2)
cn1.a("reddust", d1 + d5, d2 + d4, d3, 0.0D, 0.0D, 0.0D);
else
if(l == 3)
cn1.a("reddust", d1, d2 + d4, d3 - d5, 0.0D, 0.0D, 0.0D);
else
if(l == 4)
cn1.a("reddust", d1, d2 + d4, d3 + d5, 0.0D, 0.0D, 0.0D);
else
cn1.a("reddust", d1, d2, d3, 0.0D, 0.0D, 0.0D);
}
}

View File

@@ -0,0 +1,188 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.ArrayList;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
public class bh extends lm
{
protected net.minecraft.client.Minecraft b;
public int c;
public int d;
protected java.util.List e;
public boolean f;
protected kd g;
private fk a;
public bh()
{
e = ((java.util.List) (new ArrayList()));
f = false;
a = null;
}
public void a(int j, int k, float f1)
{
for(int l = 0; l < e.size(); l++)
{
fk fk1 = (fk)e.get(l);
fk1.a(b, j, k);
}
}
protected void a(char c1, int j)
{
if(j == 1)
{
b.a(((bh) (null)));
b.e();
}
}
public static java.lang.String c()
{
try
{
java.awt.datatransfer.Transferable transferable = java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().getContents(((java.lang.Object) (null)));
if(transferable != null && transferable.isDataFlavorSupported(java.awt.datatransfer.DataFlavor.stringFlavor))
{
java.lang.String s = (java.lang.String)transferable.getTransferData(java.awt.datatransfer.DataFlavor.stringFlavor);
return s;
}
}
catch(java.lang.Exception exception) { }
return null;
}
protected void a(int j, int k, int l)
{
if(l == 0)
{
for(int i1 = 0; i1 < e.size(); i1++)
{
fk fk1 = (fk)e.get(i1);
if(fk1.c(b, j, k))
{
a = fk1;
b.A.a("random.click", 1.0F, 1.0F);
a(fk1);
}
}
}
}
protected void b(int j, int k, int l)
{
if(a != null && l == 0)
{
a.a(j, k);
a = null;
}
}
protected void a(fk fk1)
{
}
public void a(net.minecraft.client.Minecraft minecraft, int j, int k)
{
b = minecraft;
g = minecraft.o;
c = j;
d = k;
a();
}
public void a()
{
}
public void d()
{
for(; org.lwjgl.input.Mouse.next(); e());
for(; org.lwjgl.input.Keyboard.next(); f());
}
public void e()
{
if(org.lwjgl.input.Mouse.getEventButtonState())
{
int j = (org.lwjgl.input.Mouse.getEventX() * c) / b.c;
int l = d - (org.lwjgl.input.Mouse.getEventY() * d) / b.d - 1;
a(j, l, org.lwjgl.input.Mouse.getEventButton());
} else
{
int k = (org.lwjgl.input.Mouse.getEventX() * c) / b.c;
int i1 = d - (org.lwjgl.input.Mouse.getEventY() * d) / b.d - 1;
b(k, i1, org.lwjgl.input.Mouse.getEventButton());
}
}
public void f()
{
if(org.lwjgl.input.Keyboard.getEventKeyState())
{
if(org.lwjgl.input.Keyboard.getEventKey() == 87)
{
b.h();
return;
}
a(org.lwjgl.input.Keyboard.getEventCharacter(), org.lwjgl.input.Keyboard.getEventKey());
}
}
public void g()
{
}
public void h()
{
}
public void i()
{
a(0);
}
public void a(int j)
{
if(b.e != null)
a(0, 0, c, d, 0xc0101010, 0xd0101010);
else
b(j);
}
public void b(int j)
{
org.lwjgl.opengl.GL11.glDisable(2896);
org.lwjgl.opengl.GL11.glDisable(2912);
ho ho1 = ho.a;
org.lwjgl.opengl.GL11.glBindTexture(3553, b.n.a("/dirt.png"));
org.lwjgl.opengl.GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
float f1 = 32F;
ho1.b();
ho1.b(0x404040);
ho1.a(0.0D, d, 0.0D, 0.0D, (float)d / f1 + (float)j);
ho1.a(c, d, 0.0D, (float)c / f1, (float)d / f1 + (float)j);
ho1.a(c, 0.0D, 0.0D, (float)c / f1, 0 + j);
ho1.a(0.0D, 0.0D, 0.0D, 0.0D, 0 + j);
ho1.a();
}
public boolean b()
{
return true;
}
public void a(boolean flag, int j)
{
}
}

View File

@@ -0,0 +1,139 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bi extends dm
{
public lv a;
private net.minecraft.client.Minecraft bg;
public bi(net.minecraft.client.Minecraft minecraft, cn cn, dl dl1)
{
super(cn);
bg = minecraft;
if(dl1 != null && dl1.b != null && dl1.b.length() > 0)
{
aY = (new StringBuilder()).append("http://www.minecraft.net/skin/").append(dl1.b).append(".png").toString();
java.lang.System.out.println((new StringBuilder()).append("Loading texture ").append(aY).toString());
}
i = dl1.b;
}
public void b_()
{
super.b_();
V = a.a;
W = a.b;
Y = a.d;
}
public void j()
{
a.a(((dm) (this)));
if(a.e && aL < 0.2F)
aL = 0.2F;
super.j();
}
public void k()
{
a.a();
}
public void a(int i, boolean flag)
{
a.a(i, flag);
}
public void a(hm hm1)
{
super.a(hm1);
hm1.a("Score", d);
}
public void b(hm hm1)
{
super.b(hm1);
d = hm1.e("Score");
}
public void a(gh gh)
{
bg.a(((bh) (new ea(((gh) (b)), gh))));
}
public void a(ob ob)
{
bg.a(((bh) (new nv(ob))));
}
public void l()
{
bg.a(((bh) (new hx(b))));
}
public void a(ke ke)
{
bg.a(((bh) (new id(b, ke))));
}
public void a(kh kh1)
{
int i = b.a(kh1);
if(i > 0)
{
kh1.a(((kh) (this)), i);
ev ev1 = t();
if(ev1 != null && (kh1 instanceof ge))
{
ev1.a((ge)kh1);
if(ev1.a <= 0)
{
ev1.a(((dm) (this)));
u();
}
}
}
}
public void a_(kh kh1, int i)
{
bg.h.a(((nq) (new cd(bg.e, kh1, ((kh) (this)), -0.5F))));
}
public int m()
{
return b.f();
}
public void a_(kh kh1)
{
if(kh1.a(((dm) (this))))
return;
ev ev1 = t();
if(ev1 != null && (kh1 instanceof ge))
{
ev1.b((ge)kh1);
if(ev1.a <= 0)
{
ev1.a(((dm) (this)));
u();
}
}
}
public void a(java.lang.String s)
{
}
public void n()
{
}
public boolean o()
{
return a.e;
}
}

View File

@@ -0,0 +1,33 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bj extends jt
{
protected bj(int i, int j)
{
super(i, j, gb.d);
}
protected ic a_()
{
return ((ic) (new bd()));
}
public int a(int i, java.util.Random random)
{
return 0;
}
public int a(java.util.Random random)
{
return 0;
}
public boolean b()
{
return false;
}
}

View File

@@ -0,0 +1,13 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public abstract class bk
{
public bk()
{
}
}

View File

@@ -0,0 +1,37 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bl
{
private final a b[];
public final int a;
private int c;
public bl(a aa[])
{
b = aa;
a = aa.length;
}
public void a()
{
c++;
}
public boolean b()
{
return c >= b.length;
}
public aj a(kh kh1)
{
double d = (double)b[c].a + (double)(int)(kh1.aC + 1.0F) * 0.5D;
double d1 = b[c].b;
double d2 = (double)b[c].c + (double)(int)(kh1.aC + 1.0F) * 0.5D;
return aj.b(d, d1, d2);
}
}

View File

@@ -0,0 +1,39 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.io.IOException;
public class bm extends fn
{
public int a;
public int b;
public bm()
{
}
public void a(java.io.DataInputStream datainputstream) throws IOException
{
a = datainputstream.readInt();
b = datainputstream.readInt();
}
public void a(java.io.DataOutputStream dataoutputstream) throws IOException
{
dataoutputstream.writeInt(a);
dataoutputstream.writeInt(b);
}
public void a(lb lb1)
{
lb1.a(this);
}
public int a()
{
return 8;
}
}

View File

@@ -0,0 +1,258 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.ArrayList;
import java.util.HashSet;
import org.lwjgl.opengl.GL11;
public class bn
{
public cn a;
private int C;
private static ho D;
public static int b = 0;
public int c;
public int d;
public int e;
public int f;
public int g;
public int h;
public int i;
public int j;
public int k;
public int l;
public int m;
public int n;
public boolean o;
public boolean p[];
public int q;
public int r;
public int s;
public float t;
public boolean u;
public cf v;
public int w;
public boolean x;
public boolean y;
public int z;
public boolean A;
private boolean E;
public java.util.List B;
private java.util.List F;
public bn(cn cn, java.util.List list, int i1, int j1, int k1, int l1, int i2)
{
C = -1;
o = false;
p = new boolean[2];
x = true;
E = false;
B = ((java.util.List) (new ArrayList()));
a = cn;
F = list;
f = g = h = l1;
t = eo.c(f * f + g * g + h * h) / 2.0F;
C = i2;
c = -999;
a(i1, j1, k1);
u = false;
}
public void a(int i1, int j1, int k1)
{
if(i1 == c && j1 == d && k1 == e)
{
return;
} else
{
b();
c = i1;
d = j1;
e = k1;
q = i1 + f / 2;
r = j1 + g / 2;
s = k1 + h / 2;
l = i1 & 0x3ff;
m = j1;
n = k1 & 0x3ff;
i = i1 - l;
j = j1 - m;
k = k1 - n;
float f1 = 2.0F;
v = cf.a((float)i1 - f1, (float)j1 - f1, (float)k1 - f1, (float)(i1 + f) + f1, (float)(j1 + g) + f1, (float)(k1 + h) + f1);
org.lwjgl.opengl.GL11.glNewList(C + 2, 4864);
ab.a(cf.b((float)l - f1, (float)m - f1, (float)n - f1, (float)(l + f) + f1, (float)(m + g) + f1, (float)(n + h) + f1));
org.lwjgl.opengl.GL11.glEndList();
f();
return;
}
}
private void g()
{
org.lwjgl.opengl.GL11.glTranslatef(l, m, n);
}
public void a()
{
if(!u)
return;
b++;
int i1 = c;
int j1 = d;
int k1 = e;
int l1 = c + f;
int i2 = d + g;
int j2 = e + h;
for(int k2 = 0; k2 < 2; k2++)
p[k2] = true;
ga.a = false;
java.util.HashSet hashset = new HashSet();
((java.util.Set) (hashset)).addAll(((java.util.Collection) (B)));
B.clear();
int l2 = 1;
ci ci1 = new ci(a, i1 - l2, j1 - l2, k1 - l2, l1 + l2, i2 + l2, j2 + l2);
bc bc1 = new bc(((nm) (ci1)));
int i3 = 0;
do
{
if(i3 >= 2)
break;
boolean flag = false;
boolean flag1 = false;
boolean flag2 = false;
for(int j3 = j1; j3 < i2; j3++)
{
for(int k3 = k1; k3 < j2; k3++)
{
for(int l3 = i1; l3 < l1; l3++)
{
int i4 = ((nm) (ci1)).a(l3, j3, k3);
if(i4 <= 0)
continue;
if(!flag2)
{
flag2 = true;
org.lwjgl.opengl.GL11.glNewList(C + i3, 4864);
org.lwjgl.opengl.GL11.glPushMatrix();
g();
float f1 = 1.000001F;
org.lwjgl.opengl.GL11.glTranslatef((float)(-h) / 2.0F, (float)(-g) / 2.0F, (float)(-h) / 2.0F);
org.lwjgl.opengl.GL11.glScalef(f1, f1, f1);
org.lwjgl.opengl.GL11.glTranslatef((float)h / 2.0F, (float)g / 2.0F, (float)h / 2.0F);
D.b();
D.b((double)-c, (double)-d, (double)-e);
}
if(i3 == 0 && ly.q[i4])
{
ic ic = ((nm) (ci1)).b(l3, j3, k3);
if(fz.a.a(ic))
B.add(((java.lang.Object) (ic)));
}
ly ly1 = ly.n[i4];
int j4 = ly1.g();
if(j4 != i3)
{
flag = true;
continue;
}
if(j4 == i3)
flag1 |= bc1.a(ly1, l3, j3, k3);
}
}
}
if(flag2)
{
D.a();
org.lwjgl.opengl.GL11.glPopMatrix();
org.lwjgl.opengl.GL11.glEndList();
D.b(0.0D, 0.0D, 0.0D);
} else
{
flag1 = false;
}
if(flag1)
p[i3] = false;
if(!flag)
break;
i3++;
} while(true);
java.util.HashSet hashset1 = new HashSet();
((java.util.Set) (hashset1)).addAll(((java.util.Collection) (B)));
((java.util.Set) (hashset1)).removeAll(((java.util.Collection) (hashset)));
F.addAll(((java.util.Collection) (hashset1)));
((java.util.Set) (hashset)).removeAll(((java.util.Collection) (B)));
F.removeAll(((java.util.Collection) (hashset)));
A = ga.a;
E = true;
}
public float a(kh kh1)
{
float f1 = (float)(kh1.ak - (double)q);
float f2 = (float)(kh1.al - (double)r);
float f3 = (float)(kh1.am - (double)s);
return f1 * f1 + f2 * f2 + f3 * f3;
}
public void b()
{
for(int i1 = 0; i1 < 2; i1++)
p[i1] = true;
o = false;
E = false;
}
public void c()
{
b();
a = null;
}
public int a(int i1)
{
if(!o)
return -1;
if(!p[i1])
return C + i1;
else
return -1;
}
public void a(oe oe1)
{
o = oe1.a(v);
}
public void d()
{
org.lwjgl.opengl.GL11.glCallList(C + 2);
}
public boolean e()
{
if(!E)
return false;
else
return p[0] && p[1];
}
public void f()
{
u = true;
}
static
{
D = ho.a;
}
}

View File

@@ -0,0 +1,63 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bo extends ag
{
public boolean a;
public bo(cn cn)
{
super(cn);
a = false;
u = "/mob/sheep.png";
a(0.9F, 1.3F);
}
public boolean a(kh kh, int i)
{
if(!a && (kh instanceof ge))
{
a = true;
int j = 1 + aQ.nextInt(3);
for(int k = 0; k < j; k++)
{
dx dx1 = a(ly.ac.bc, 1, 1.0F);
dx1.ao += aQ.nextFloat() * 0.05F;
dx1.an += (aQ.nextFloat() - aQ.nextFloat()) * 0.1F;
dx1.ap += (aQ.nextFloat() - aQ.nextFloat()) * 0.1F;
}
}
return super.a(kh, i);
}
public void a(hm hm1)
{
super.a(hm1);
hm1.a("Sheared", a);
}
public void b(hm hm1)
{
super.b(hm1);
a = hm1.m("Sheared");
}
protected java.lang.String c()
{
return "mob.sheep";
}
protected java.lang.String d()
{
return "mob.sheep";
}
protected java.lang.String e()
{
return "mob.sheep";
}
}

View File

@@ -0,0 +1,22 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bp extends di
{
public bp(int i)
{
super(i);
aT = 16;
}
public ev a(ev ev1, cn cn1, dm dm)
{
ev1.a--;
cn1.a(((kh) (dm)), "random.bow", 0.5F, 0.4F / (b.nextFloat() * 0.4F + 0.8F));
cn1.a(((kh) (new ao(cn1, ((ge) (dm))))));
return ev1;
}
}

View File

@@ -0,0 +1,163 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.ArrayList;
import java.util.Random;
import org.lwjgl.opengl.GL11;
public class bq
{
protected cn a;
private java.util.List b[];
private ey c;
private java.util.Random d;
public bq(cn cn1, ey ey1)
{
b = new java.util.List[4];
d = new Random();
if(cn1 != null)
a = cn1;
c = ey1;
for(int i = 0; i < 4; i++)
b[i] = ((java.util.List) (new ArrayList()));
}
public void a(nq nq1)
{
int i = nq1.c();
b[i].add(((java.lang.Object) (nq1)));
}
public void a()
{
for(int i = 0; i < 4; i++)
{
for(int j = 0; j < b[i].size(); j++)
{
nq nq1 = (nq)b[i].get(j);
nq1.e_();
if(nq1.aA)
b[i].remove(j--);
}
}
}
public void a(kh kh1, float f)
{
float f1 = eo.b((kh1.aq * 3.141593F) / 180F);
float f2 = eo.a((kh1.aq * 3.141593F) / 180F);
float f3 = -f2 * eo.a((kh1.ar * 3.141593F) / 180F);
float f4 = f1 * eo.a((kh1.ar * 3.141593F) / 180F);
float f5 = eo.b((kh1.ar * 3.141593F) / 180F);
nq.l = kh1.aI + (kh1.ak - kh1.aI) * (double)f;
nq.m = kh1.aJ + (kh1.al - kh1.aJ) * (double)f;
nq.n = kh1.aK + (kh1.am - kh1.aK) * (double)f;
for(int i = 0; i < 3; i++)
{
if(b[i].size() == 0)
continue;
int j = 0;
if(i == 0)
j = c.a("/particles.png");
if(i == 1)
j = c.a("/terrain.png");
if(i == 2)
j = c.a("/gui/items.png");
org.lwjgl.opengl.GL11.glBindTexture(3553, j);
ho ho1 = ho.a;
ho1.b();
for(int k = 0; k < b[i].size(); k++)
{
nq nq1 = (nq)b[i].get(k);
nq1.a(ho1, f, f1, f5, f2, f3, f4);
}
ho1.a();
}
}
public void b(kh kh1, float f)
{
byte byte0 = 3;
if(b[byte0].size() == 0)
return;
ho ho1 = ho.a;
for(int i = 0; i < b[byte0].size(); i++)
{
nq nq1 = (nq)b[byte0].get(i);
nq1.a(ho1, f, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F);
}
}
public void a(cn cn1)
{
a = cn1;
for(int i = 0; i < 4; i++)
b[i].clear();
}
public void a(int i, int j, int k)
{
int l = a.a(i, j, k);
if(l == 0)
return;
ly ly1 = ly.n[l];
int i1 = 4;
for(int j1 = 0; j1 < i1; j1++)
{
for(int k1 = 0; k1 < i1; k1++)
{
for(int l1 = 0; l1 < i1; l1++)
{
double d1 = (double)i + ((double)j1 + 0.5D) / (double)i1;
double d2 = (double)j + ((double)k1 + 0.5D) / (double)i1;
double d3 = (double)k + ((double)l1 + 0.5D) / (double)i1;
a(((nq) (new iw(a, d1, d2, d3, d1 - (double)i - 0.5D, d2 - (double)j - 0.5D, d3 - (double)k - 0.5D, ly1))));
}
}
}
}
public void a(int i, int j, int k, int l)
{
int i1 = a.a(i, j, k);
if(i1 == 0)
return;
ly ly1 = ly.n[i1];
float f = 0.1F;
double d1 = (double)i + d.nextDouble() * (ly1.bi - ly1.bf - (double)(f * 2.0F)) + (double)f + ly1.bf;
double d2 = (double)j + d.nextDouble() * (ly1.bj - ly1.bg - (double)(f * 2.0F)) + (double)f + ly1.bg;
double d3 = (double)k + d.nextDouble() * (ly1.bk - ly1.bh - (double)(f * 2.0F)) + (double)f + ly1.bh;
if(l == 0)
d2 = ((double)j + ly1.bg) - (double)f;
if(l == 1)
d2 = (double)j + ly1.bj + (double)f;
if(l == 2)
d3 = ((double)k + ly1.bh) - (double)f;
if(l == 3)
d3 = (double)k + ly1.bk + (double)f;
if(l == 4)
d1 = ((double)i + ly1.bf) - (double)f;
if(l == 5)
d1 = (double)i + ly1.bi + (double)f;
a((new iw(a, d1, d2, d3, 0.0D, 0.0D, 0.0D, ly1)).b(0.2F).d(0.6F));
}
public java.lang.String b()
{
return (new StringBuilder()).append("").append(b[0].size() + b[1].size() + b[2].size()).toString();
}
}

View File

@@ -0,0 +1,108 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class br extends ly
{
protected br(int i, int j)
{
super(i, j, gb.n);
}
public cf d(cn cn1, int i, int j, int k)
{
int l = cn1.e(i, j, k);
float f1 = 0.125F;
if(l == 2)
a(0.0F, 0.0F, 1.0F - f1, 1.0F, 1.0F, 1.0F);
if(l == 3)
a(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, f1);
if(l == 4)
a(1.0F - f1, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
if(l == 5)
a(0.0F, 0.0F, 0.0F, f1, 1.0F, 1.0F);
return super.d(cn1, i, j, k);
}
public cf f(cn cn1, int i, int j, int k)
{
int l = cn1.e(i, j, k);
float f1 = 0.125F;
if(l == 2)
a(0.0F, 0.0F, 1.0F - f1, 1.0F, 1.0F, 1.0F);
if(l == 3)
a(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, f1);
if(l == 4)
a(1.0F - f1, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
if(l == 5)
a(0.0F, 0.0F, 0.0F, f1, 1.0F, 1.0F);
return super.f(cn1, i, j, k);
}
public boolean b()
{
return false;
}
public boolean c()
{
return false;
}
public int f()
{
return 8;
}
public boolean a(cn cn1, int i, int j, int k)
{
if(cn1.g(i - 1, j, k))
return true;
if(cn1.g(i + 1, j, k))
return true;
if(cn1.g(i, j, k - 1))
return true;
return cn1.g(i, j, k + 1);
}
public void d(cn cn1, int i, int j, int k, int l)
{
int i1 = cn1.e(i, j, k);
if((i1 == 0 || l == 2) && cn1.g(i, j, k + 1))
i1 = 2;
if((i1 == 0 || l == 3) && cn1.g(i, j, k - 1))
i1 = 3;
if((i1 == 0 || l == 4) && cn1.g(i + 1, j, k))
i1 = 4;
if((i1 == 0 || l == 5) && cn1.g(i - 1, j, k))
i1 = 5;
cn1.b(i, j, k, i1);
}
public void a(cn cn1, int i, int j, int k, int l)
{
int i1 = cn1.e(i, j, k);
boolean flag = false;
if(i1 == 2 && cn1.g(i, j, k + 1))
flag = true;
if(i1 == 3 && cn1.g(i, j, k - 1))
flag = true;
if(i1 == 4 && cn1.g(i + 1, j, k))
flag = true;
if(i1 == 5 && cn1.g(i - 1, j, k))
flag = true;
if(!flag)
{
b_(cn1, i, j, k, i1);
cn1.d(i, j, k, 0);
}
super.a(cn1, i, j, k, l);
}
public int a(java.util.Random random)
{
return 1;
}
}

View File

@@ -0,0 +1,57 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bs extends di
{
private ly aX[];
private float aY;
private int aZ;
protected int a;
public bs(int i, int j, int k, ly aly[])
{
super(i);
aY = 4F;
a = k;
aX = aly;
aT = 1;
aU = 32 << k;
if(k == 3)
aU *= 4;
aY = (k + 1) * 2;
aZ = j + k;
}
public float a(ev ev1, ly ly)
{
for(int i = 0; i < aX.length; i++)
if(aX[i] == ly)
return aY;
return 1.0F;
}
public void a(ev ev1, ge ge)
{
ev1.b(2);
}
public void a(ev ev1, int i, int j, int k, int l)
{
ev1.b(1);
}
public int a(kh kh)
{
return aZ;
}
public boolean a()
{
return true;
}
}

View File

@@ -0,0 +1,31 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bt
{
public float a[][];
public float b[];
public float c[];
public float d[];
public bt()
{
a = new float[16][16];
b = new float[16];
c = new float[16];
d = new float[16];
}
public boolean a(double d1, double d2, double d3, double d4, double d5, double d6)
{
for(int i = 0; i < 6; i++)
if((double)a[i][0] * d1 + (double)a[i][1] * d2 + (double)a[i][2] * d3 + (double)a[i][3] <= 0.0D && (double)a[i][0] * d4 + (double)a[i][1] * d2 + (double)a[i][2] * d3 + (double)a[i][3] <= 0.0D && (double)a[i][0] * d1 + (double)a[i][1] * d5 + (double)a[i][2] * d3 + (double)a[i][3] <= 0.0D && (double)a[i][0] * d4 + (double)a[i][1] * d5 + (double)a[i][2] * d3 + (double)a[i][3] <= 0.0D && (double)a[i][0] * d1 + (double)a[i][1] * d2 + (double)a[i][2] * d6 + (double)a[i][3] <= 0.0D && (double)a[i][0] * d4 + (double)a[i][1] * d2 + (double)a[i][2] * d6 + (double)a[i][3] <= 0.0D && (double)a[i][0] * d1 + (double)a[i][1] * d5 + (double)a[i][2] * d6 + (double)a[i][3] <= 0.0D && (double)a[i][0] * d4 + (double)a[i][1] * d5 + (double)a[i][2] * d6 + (double)a[i][3] <= 0.0D)
return false;
return true;
}
}

View File

@@ -0,0 +1,174 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import org.lwjgl.opengl.GL11;
public class bu extends dn
{
private cr f;
private cr g;
private cr h;
private static final java.lang.String i[] = {
"cloth", "chain", "iron", "diamond", "gold"
};
public bu()
{
super(((fo) (new cr(0.0F))), 0.5F);
f = (cr)d;
g = new cr(1.0F);
h = new cr(0.5F);
}
protected boolean a(dm dm1, int j)
{
ev ev1 = dm1.b.d(3 - j);
if(ev1 != null)
{
di di1 = ev1.a();
if(di1 instanceof mr)
{
mr mr1 = (mr)di1;
a((new StringBuilder()).append("/armor/").append(i[mr1.aZ]).append("_").append(j != 2 ? 1 : 2).append(".png").toString());
cr cr1 = j != 2 ? g : h;
cr1.a.h = j == 0;
cr1.b.h = j == 0;
cr1.c.h = j == 1 || j == 2;
cr1.d.h = j == 1;
cr1.e.h = j == 1;
cr1.f.h = j == 2 || j == 3;
cr1.g.h = j == 2 || j == 3;
a(((fo) (cr1)));
return true;
}
}
return false;
}
public void a(dm dm1, double d, double d1, double d2,
float f1, float f2)
{
ev ev1 = dm1.b.a();
g.i = h.i = f.i = ev1 != null;
g.j = h.j = f.j = dm1.o();
super.a(((ge) (dm1)), d, d1 - (double)dm1.aB, d2, f1, f2);
g.j = h.j = f.j = false;
g.i = h.i = f.i = false;
kd kd1 = a();
float f3 = 1.6F;
float f4 = 0.01666667F * f3;
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glTranslatef((float)d + 0.0F, (float)d1 + 2.3F, (float)d2);
org.lwjgl.opengl.GL11.glNormal3f(0.0F, 1.0F, 0.0F);
org.lwjgl.opengl.GL11.glRotatef(-a.i, 0.0F, 1.0F, 0.0F);
org.lwjgl.opengl.GL11.glRotatef(a.j, 1.0F, 0.0F, 0.0F);
float f5 = dm1.d(((kh) (a.h)));
f4 = (float)((double)f4 * (java.lang.Math.sqrt(f5) / 2D));
org.lwjgl.opengl.GL11.glScalef(-f4, -f4, f4);
java.lang.String s = dm1.i;
org.lwjgl.opengl.GL11.glDisable(2896);
org.lwjgl.opengl.GL11.glDepthMask(false);
org.lwjgl.opengl.GL11.glDisable(2929);
org.lwjgl.opengl.GL11.glEnable(3042);
org.lwjgl.opengl.GL11.glBlendFunc(770, 771);
ho ho1 = ho.a;
org.lwjgl.opengl.GL11.glDisable(3553);
ho1.b();
int j = kd1.a(s) / 2;
ho1.a(0.0F, 0.0F, 0.0F, 0.25F);
ho1.a(-j - 1, -1D, 0.0D);
ho1.a(-j - 1, 8D, 0.0D);
ho1.a(j + 1, 8D, 0.0D);
ho1.a(j + 1, -1D, 0.0D);
ho1.a();
org.lwjgl.opengl.GL11.glEnable(3553);
kd1.b(s, -kd1.a(s) / 2, 0, 0x20ffffff);
org.lwjgl.opengl.GL11.glEnable(2929);
org.lwjgl.opengl.GL11.glDepthMask(true);
kd1.b(s, -kd1.a(s) / 2, 0, -1);
org.lwjgl.opengl.GL11.glEnable(2896);
org.lwjgl.opengl.GL11.glDisable(3042);
org.lwjgl.opengl.GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
org.lwjgl.opengl.GL11.glPopMatrix();
}
protected void a(dm dm1, float f1)
{
ev ev1 = dm1.b.a();
if(ev1 != null)
{
org.lwjgl.opengl.GL11.glPushMatrix();
f.d.b(0.0625F);
org.lwjgl.opengl.GL11.glTranslatef(-0.0625F, 0.4375F, 0.0625F);
if(ev1.c < 256 && bc.a(ly.n[ev1.c].f()))
{
float f2 = 0.5F;
org.lwjgl.opengl.GL11.glTranslatef(0.0F, 0.1875F, -0.3125F);
f2 *= 0.75F;
org.lwjgl.opengl.GL11.glRotatef(20F, 1.0F, 0.0F, 0.0F);
org.lwjgl.opengl.GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F);
org.lwjgl.opengl.GL11.glScalef(f2, -f2, f2);
} else
if(di.c[ev1.c].a())
{
float f3 = 0.625F;
org.lwjgl.opengl.GL11.glTranslatef(0.0F, 0.1875F, 0.0F);
org.lwjgl.opengl.GL11.glScalef(f3, -f3, f3);
org.lwjgl.opengl.GL11.glRotatef(-100F, 1.0F, 0.0F, 0.0F);
org.lwjgl.opengl.GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F);
} else
{
float f4 = 0.375F;
org.lwjgl.opengl.GL11.glTranslatef(0.25F, 0.1875F, -0.1875F);
org.lwjgl.opengl.GL11.glScalef(f4, f4, f4);
org.lwjgl.opengl.GL11.glRotatef(60F, 0.0F, 0.0F, 1.0F);
org.lwjgl.opengl.GL11.glRotatef(-90F, 1.0F, 0.0F, 0.0F);
org.lwjgl.opengl.GL11.glRotatef(20F, 0.0F, 0.0F, 1.0F);
}
a.f.a(ev1);
org.lwjgl.opengl.GL11.glPopMatrix();
}
}
protected void b(dm dm1, float f1)
{
float f2 = 0.9375F;
org.lwjgl.opengl.GL11.glScalef(f2, f2, f2);
}
public void b()
{
f.k = 0.0F;
f.a(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
f.d.a(0.0625F);
}
protected void a(ge ge, float f1)
{
b((dm)ge, f1);
}
protected boolean a(ge ge, int j)
{
return a((dm)ge, j);
}
protected void b(ge ge, float f1)
{
a((dm)ge, f1);
}
public void a(ge ge, double d, double d1, double d2, float f1, float f2)
{
a((dm)ge, d, d1, d2, f1, f2);
}
public void a(kh kh, double d, double d1, double d2, float f1, float f2)
{
a((dm)kh, d, d1, d2, f1, f2);
}
}

View File

@@ -0,0 +1,74 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bv
{
private int b;
private int c;
private int d[];
private ev e;
public final int a;
public bv(int i, int j, int ai[], ev ev1)
{
a = ev1.c;
b = i;
c = j;
d = ai;
e = ev1;
}
public boolean a(int ai[])
{
for(int i = 0; i <= 3 - b; i++)
{
for(int j = 0; j <= 3 - c; j++)
{
if(a(ai, i, j, true))
return true;
if(a(ai, i, j, false))
return true;
}
}
return false;
}
private boolean a(int ai[], int i, int j, boolean flag)
{
for(int k = 0; k < 3; k++)
{
for(int l = 0; l < 3; l++)
{
int i1 = k - i;
int j1 = l - j;
int k1 = -1;
if(i1 >= 0 && j1 >= 0 && i1 < b && j1 < c)
if(flag)
k1 = d[(b - i1 - 1) + j1 * b];
else
k1 = d[i1 + j1 * b];
if(ai[k + l * 3] != k1)
return false;
}
}
return true;
}
public ev b(int ai[])
{
return new ev(e.c, e.a);
}
public int a()
{
return b * c;
}
}

View File

@@ -0,0 +1,127 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.Random;
import org.lwjgl.opengl.GL11;
public class bw extends ak
{
private java.util.Random d;
public bw()
{
d = new Random();
}
public void a(jc jc1, double d1, double d2, double d3,
float f, float f1)
{
d.setSeed(187L);
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glTranslatef((float)d1, (float)d2, (float)d3);
org.lwjgl.opengl.GL11.glRotatef(f, 0.0F, 1.0F, 0.0F);
org.lwjgl.opengl.GL11.glEnable(32826);
a("/art/kz.png");
er er1 = jc1.b;
float f2 = 0.0625F;
org.lwjgl.opengl.GL11.glScalef(f2, f2, f2);
a(jc1, er1.z, er1.A, er1.B, er1.C);
org.lwjgl.opengl.GL11.glDisable(32826);
org.lwjgl.opengl.GL11.glPopMatrix();
}
private void a(jc jc1, int i, int j, int k, int l)
{
float f = (float)(-i) / 2.0F;
float f1 = (float)(-j) / 2.0F;
float f2 = -0.5F;
float f3 = 0.5F;
for(int i1 = 0; i1 < i / 16; i1++)
{
for(int j1 = 0; j1 < j / 16; j1++)
{
float f4 = f + (float)((i1 + 1) * 16);
float f5 = f + (float)(i1 * 16);
float f6 = f1 + (float)((j1 + 1) * 16);
float f7 = f1 + (float)(j1 * 16);
a(jc1, (f4 + f5) / 2.0F, (f6 + f7) / 2.0F);
float f8 = (float)((k + i) - i1 * 16) / 256F;
float f9 = (float)((k + i) - (i1 + 1) * 16) / 256F;
float f10 = (float)((l + j) - j1 * 16) / 256F;
float f11 = (float)((l + j) - (j1 + 1) * 16) / 256F;
float f12 = 0.75F;
float f13 = 0.8125F;
float f14 = 0.0F;
float f15 = 0.0625F;
float f16 = 0.75F;
float f17 = 0.8125F;
float f18 = 0.001953125F;
float f19 = 0.001953125F;
float f20 = 0.7519531F;
float f21 = 0.7519531F;
float f22 = 0.0F;
float f23 = 0.0625F;
ho ho1 = ho.a;
ho1.b();
ho1.b(0.0F, 0.0F, -1F);
ho1.a(f4, f7, f2, f9, f10);
ho1.a(f5, f7, f2, f8, f10);
ho1.a(f5, f6, f2, f8, f11);
ho1.a(f4, f6, f2, f9, f11);
ho1.b(0.0F, 0.0F, 1.0F);
ho1.a(f4, f6, f3, f12, f14);
ho1.a(f5, f6, f3, f13, f14);
ho1.a(f5, f7, f3, f13, f15);
ho1.a(f4, f7, f3, f12, f15);
ho1.b(0.0F, -1F, 0.0F);
ho1.a(f4, f6, f2, f16, f18);
ho1.a(f5, f6, f2, f17, f18);
ho1.a(f5, f6, f3, f17, f19);
ho1.a(f4, f6, f3, f16, f19);
ho1.b(0.0F, 1.0F, 0.0F);
ho1.a(f4, f7, f3, f16, f18);
ho1.a(f5, f7, f3, f17, f18);
ho1.a(f5, f7, f2, f17, f19);
ho1.a(f4, f7, f2, f16, f19);
ho1.b(-1F, 0.0F, 0.0F);
ho1.a(f4, f6, f3, f21, f22);
ho1.a(f4, f7, f3, f21, f23);
ho1.a(f4, f7, f2, f20, f23);
ho1.a(f4, f6, f2, f20, f22);
ho1.b(1.0F, 0.0F, 0.0F);
ho1.a(f5, f6, f2, f21, f22);
ho1.a(f5, f7, f2, f21, f23);
ho1.a(f5, f7, f3, f20, f23);
ho1.a(f5, f6, f3, f20, f22);
ho1.a();
}
}
}
private void a(jc jc1, float f, float f1)
{
int i = eo.b(jc1.ak);
int j = eo.b(jc1.al + (double)(f1 / 16F));
int k = eo.b(jc1.am);
if(jc1.a == 0)
i = eo.b(jc1.ak + (double)(f / 16F));
if(jc1.a == 1)
k = eo.b(jc1.am - (double)(f / 16F));
if(jc1.a == 2)
i = eo.b(jc1.ak - (double)(f / 16F));
if(jc1.a == 3)
k = eo.b(jc1.am + (double)(f / 16F));
float f2 = a.g.c(i, j, k);
org.lwjgl.opengl.GL11.glColor3f(f2, f2, f2);
}
public void a(kh kh, double d1, double d2, double d3, float f, float f1)
{
a((jc)kh, d1, d2, d3, f, f1);
}
}

View File

@@ -0,0 +1,33 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class bx extends hg
{
public bx()
{
super(12, 0.0F);
d = new ip(0, 0);
d.a(-3F, -4F, -4F, 6, 6, 6, 0.6F);
d.a(0.0F, 6F, -8F);
e = new ip(28, 8);
e.a(-4F, -10F, -7F, 8, 16, 6, 1.75F);
e.a(0.0F, 5F, 2.0F);
float f = 0.5F;
this.f = new ip(0, 16);
this.f.a(-2F, 0.0F, -2F, 4, 6, 4, f);
this.f.a(-3F, 12F, 7F);
g = new ip(0, 16);
g.a(-2F, 0.0F, -2F, 4, 6, 4, f);
g.a(3F, 12F, 7F);
h = new ip(0, 16);
h.a(-2F, 0.0F, -2F, 4, 6, 4, f);
h.a(-3F, 12F, -5F);
i = new ip(0, 16);
i.a(-2F, 0.0F, -2F, 4, 6, 4, f);
i.a(3F, 12F, -5F);
}
}

View File

@@ -0,0 +1,14 @@
package net.minecraft.client;
public enum by
{
a(15), // sky
b(0); // block
public final int c;
private by(int arg3)
{
this.c = arg3;
}
}

View File

@@ -0,0 +1,76 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.io.IOException;
import java.util.zip.Inflater;
public class bz extends fn
{
public int a;
public int b;
public int c;
public int d;
public int e;
public int f;
public byte g[];
private int h;
public bz()
{
j = true;
}
public void a(java.io.DataInputStream datainputstream) throws IOException
{
java.util.zip.Inflater inflater;
a = datainputstream.readInt();
b = ((int) (datainputstream.readShort()));
c = datainputstream.readInt();
d = datainputstream.read() + 1;
e = datainputstream.read() + 1;
f = datainputstream.read() + 1;
int i = datainputstream.readInt();
byte abyte0[] = new byte[i];
datainputstream.readFully(abyte0);
g = new byte[(d * e * f * 5) / 2];
inflater = new Inflater();
inflater.setInput(abyte0);
try
{
inflater.inflate(g);
}
catch(java.util.zip.DataFormatException dataformatexception)
{
throw new IOException("Bad compressed data format");
}
finally
{
inflater.end();
}
}
public void a(java.io.DataOutputStream dataoutputstream) throws IOException
{
dataoutputstream.writeInt(a);
dataoutputstream.writeShort(b);
dataoutputstream.writeInt(c);
dataoutputstream.write(d - 1);
dataoutputstream.write(e - 1);
dataoutputstream.write(f - 1);
dataoutputstream.writeInt(h);
dataoutputstream.write(g, 0, h);
}
public void a(lb lb1)
{
lb1.a(this);
}
public int a()
{
return 17 + h;
}
}

View File

@@ -0,0 +1,25 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class c extends ly
{
public c(int i, int j)
{
super(i, gb.e);
bb = j;
}
public int a(int i)
{
if(i == 1)
return bb - 16;
if(i == 0)
return bb + 16;
else
return bb;
}
}

View File

@@ -0,0 +1,19 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ca extends hg
{
public ca()
{
super(6, 0.0F);
}
public ca(float f)
{
super(6, f);
}
}

View File

@@ -0,0 +1,32 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cb extends cr
{
public cb()
{
}
public void a(float f, float f1, float f2, float f3, float f4, float f5)
{
super.a(f, f1, f2, f3, f4, f5);
float f6 = eo.a(k * 3.141593F);
float f7 = eo.a((1.0F - (1.0F - k) * (1.0F - k)) * 3.141593F);
d.f = 0.0F;
e.f = 0.0F;
d.e = -(0.1F - f6 * 0.6F);
e.e = 0.1F - f6 * 0.6F;
d.d = -1.570796F;
e.d = -1.570796F;
d.d -= f6 * 1.2F - f7 * 0.4F;
e.d -= f6 * 1.2F - f7 * 0.4F;
d.f += eo.b(f2 * 0.09F) * 0.05F + 0.05F;
e.f -= eo.b(f2 * 0.09F) * 0.05F + 0.05F;
d.d += eo.a(f2 * 0.067F) * 0.05F;
e.d -= eo.a(f2 * 0.067F) * 0.05F;
}
}

View File

@@ -0,0 +1,21 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cc
{
public java.awt.image.BufferedImage a;
public int b;
public int c;
public boolean d;
public cc(java.lang.String s, hb hb)
{
b = 1;
c = -1;
d = false;
(new kz(this, s, hb)).start();
}
}

View File

@@ -0,0 +1,63 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import org.lwjgl.opengl.GL11;
public class cd extends nq
{
private kh a;
private kh o;
private int p;
private int q;
private float r;
public cd(cn cn1, kh kh1, kh kh2, float f)
{
super(cn1, kh1.ak, kh1.al, kh1.am, kh1.an, kh1.ao, kh1.ap);
p = 0;
q = 0;
a = kh1;
o = kh2;
q = 3;
r = f;
}
public void a(ho ho, float f, float f1, float f2, float f3, float f4, float f5)
{
float f6 = ((float)p + f) / (float)q;
f6 *= f6;
double d = a.ak;
double d1 = a.al;
double d2 = a.am;
double d3 = o.aI + (o.ak - o.aI) * (double)f;
double d4 = o.aJ + (o.al - o.aJ) * (double)f + (double)r;
double d5 = o.aK + (o.am - o.aK) * (double)f;
double d6 = d + (d3 - d) * (double)f6;
double d7 = d1 + (d4 - d1) * (double)f6;
double d8 = d2 + (d5 - d2) * (double)f6;
int i = eo.b(d6);
int j = eo.b(d7 + (double)(aB / 2.0F));
int k = eo.b(d8);
float f7 = ag.c(i, j, k);
d6 -= l;
d7 -= m;
d8 -= n;
org.lwjgl.opengl.GL11.glColor4f(f7, f7, f7, 1.0F);
kx.a.a(a, (float)d6, (float)d7, (float)d8, a.aq, f);
}
public void e_()
{
p++;
if(p == q)
F();
}
public int c()
{
return 3;
}
}

View File

@@ -0,0 +1,18 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ce extends ly
{
public ce(int i, int j)
{
super(i, j, gb.d);
}
public int a(int i, java.util.Random random)
{
return ly.x.bc;
}
}

View File

@@ -0,0 +1,280 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.ArrayList;
public class cf
{
private static java.util.List g = new ArrayList();
private static int h = 0;
public double a;
public double b;
public double c;
public double d;
public double e;
public double f;
public static cf a(double d1, double d2, double d3, double d4,
double d5, double d6)
{
return new cf(d1, d2, d3, d4, d5, d6);
}
public static void a()
{
h = 0;
}
public static cf b(double d1, double d2, double d3, double d4,
double d5, double d6)
{
if(h >= g.size())
g.add(((java.lang.Object) (cf.a(0.0D, 0.0D, 0.0D, 0.0D, 0.0D, 0.0D))));
return ((cf)g.get(h++)).c(d1, d2, d3, d4, d5, d6);
}
private cf(double d1, double d2, double d3, double d4, double d5, double d6)
{
a = d1;
b = d2;
c = d3;
d = d4;
e = d5;
f = d6;
}
public cf c(double d1, double d2, double d3, double d4, double d5, double d6)
{
a = d1;
b = d2;
c = d3;
d = d4;
e = d5;
f = d6;
return this;
}
public cf a(double d1, double d2, double d3)
{
double d4 = a;
double d5 = b;
double d6 = c;
double d7 = d;
double d8 = e;
double d9 = f;
if(d1 < 0.0D)
d4 += d1;
if(d1 > 0.0D)
d7 += d1;
if(d2 < 0.0D)
d5 += d2;
if(d2 > 0.0D)
d8 += d2;
if(d3 < 0.0D)
d6 += d3;
if(d3 > 0.0D)
d9 += d3;
return cf.b(d4, d5, d6, d7, d8, d9);
}
public cf b(double d1, double d2, double d3)
{
double d4 = a - d1;
double d5 = b - d2;
double d6 = c - d3;
double d7 = d + d1;
double d8 = e + d2;
double d9 = f + d3;
return cf.b(d4, d5, d6, d7, d8, d9);
}
public cf c(double d1, double d2, double d3)
{
return cf.b(a + d1, b + d2, c + d3, d + d1, e + d2, f + d3);
}
public double a(cf cf1, double d1)
{
if(cf1.e <= b || cf1.b >= e)
return d1;
if(cf1.f <= c || cf1.c >= f)
return d1;
if(d1 > 0.0D && cf1.d <= a)
{
double d2 = a - cf1.d;
if(d2 < d1)
d1 = d2;
}
if(d1 < 0.0D && cf1.a >= d)
{
double d3 = d - cf1.a;
if(d3 > d1)
d1 = d3;
}
return d1;
}
public double b(cf cf1, double d1)
{
if(cf1.d <= a || cf1.a >= d)
return d1;
if(cf1.f <= c || cf1.c >= f)
return d1;
if(d1 > 0.0D && cf1.e <= b)
{
double d2 = b - cf1.e;
if(d2 < d1)
d1 = d2;
}
if(d1 < 0.0D && cf1.b >= e)
{
double d3 = e - cf1.b;
if(d3 > d1)
d1 = d3;
}
return d1;
}
public double c(cf cf1, double d1)
{
if(cf1.d <= a || cf1.a >= d)
return d1;
if(cf1.e <= b || cf1.b >= e)
return d1;
if(d1 > 0.0D && cf1.f <= c)
{
double d2 = c - cf1.f;
if(d2 < d1)
d1 = d2;
}
if(d1 < 0.0D && cf1.c >= f)
{
double d3 = f - cf1.c;
if(d3 > d1)
d1 = d3;
}
return d1;
}
public boolean a(cf cf1)
{
if(cf1.d <= a || cf1.a >= d)
return false;
if(cf1.e <= b || cf1.b >= e)
return false;
return cf1.f > c && cf1.c < f;
}
public cf d(double d1, double d2, double d3)
{
a += d1;
b += d2;
c += d3;
d += d1;
e += d2;
f += d3;
return this;
}
public double b()
{
double d1 = d - a;
double d2 = e - b;
double d3 = f - c;
return (d1 + d2 + d3) / 3D;
}
public cf c()
{
return cf.b(a, b, c, d, e, f);
}
public mf a(aj aj1, aj aj2)
{
aj aj3 = aj1.a(aj2, a);
aj aj4 = aj1.a(aj2, d);
aj aj5 = aj1.b(aj2, b);
aj aj6 = aj1.b(aj2, e);
aj aj7 = aj1.c(aj2, c);
aj aj8 = aj1.c(aj2, f);
if(!a(aj3))
aj3 = null;
if(!a(aj4))
aj4 = null;
if(!b(aj5))
aj5 = null;
if(!b(aj6))
aj6 = null;
if(!c(aj7))
aj7 = null;
if(!c(aj8))
aj8 = null;
aj aj9 = null;
if(aj3 != null && (aj9 == null || aj1.d(aj3) < aj1.d(aj9)))
aj9 = aj3;
if(aj4 != null && (aj9 == null || aj1.d(aj4) < aj1.d(aj9)))
aj9 = aj4;
if(aj5 != null && (aj9 == null || aj1.d(aj5) < aj1.d(aj9)))
aj9 = aj5;
if(aj6 != null && (aj9 == null || aj1.d(aj6) < aj1.d(aj9)))
aj9 = aj6;
if(aj7 != null && (aj9 == null || aj1.d(aj7) < aj1.d(aj9)))
aj9 = aj7;
if(aj8 != null && (aj9 == null || aj1.d(aj8) < aj1.d(aj9)))
aj9 = aj8;
if(aj9 == null)
return null;
byte byte0 = -1;
if(aj9 == aj3)
byte0 = 4;
if(aj9 == aj4)
byte0 = 5;
if(aj9 == aj5)
byte0 = 0;
if(aj9 == aj6)
byte0 = 1;
if(aj9 == aj7)
byte0 = 2;
if(aj9 == aj8)
byte0 = 3;
return new mf(0, 0, 0, ((int) (byte0)), aj9);
}
private boolean a(aj aj1)
{
if(aj1 == null)
return false;
else
return aj1.b >= b && aj1.b <= e && aj1.c >= c && aj1.c <= f;
}
private boolean b(aj aj1)
{
if(aj1 == null)
return false;
else
return aj1.a >= a && aj1.a <= d && aj1.c >= c && aj1.c <= f;
}
private boolean c(aj aj1)
{
if(aj1 == null)
return false;
else
return aj1.a >= a && aj1.a <= d && aj1.b >= b && aj1.b <= e;
}
public void b(cf cf1)
{
a = cf1.a;
b = cf1.b;
c = cf1.c;
d = cf1.d;
e = cf1.e;
f = cf1.f;
}
}

View File

@@ -0,0 +1,151 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cg extends ik
{
public cg()
{
}
public boolean a(cn cn1, java.util.Random random, int i, int j, int k)
{
byte byte0 = 3;
int l = random.nextInt(2) + 2;
int i1 = random.nextInt(2) + 2;
int j1 = 0;
for(int k1 = i - l - 1; k1 <= i + l + 1; k1++)
{
for(int j2 = j - 1; j2 <= j + byte0 + 1; j2++)
{
for(int i3 = k - i1 - 1; i3 <= k + i1 + 1; i3++)
{
gb gb1 = cn1.f(k1, j2, i3);
if(j2 == j - 1 && !gb1.a())
return false;
if(j2 == j + byte0 + 1 && !gb1.a())
return false;
if((k1 == i - l - 1 || k1 == i + l + 1 || i3 == k - i1 - 1 || i3 == k + i1 + 1) && j2 == j && cn1.a(k1, j2, i3) == 0 && cn1.a(k1, j2 + 1, i3) == 0)
j1++;
}
}
}
if(j1 < 1 || j1 > 5)
return false;
for(int l1 = i - l - 1; l1 <= i + l + 1; l1++)
{
for(int k2 = j + byte0; k2 >= j - 1; k2--)
{
for(int j3 = k - i1 - 1; j3 <= k + i1 + 1; j3++)
if(l1 == i - l - 1 || k2 == j - 1 || j3 == k - i1 - 1 || l1 == i + l + 1 || k2 == j + byte0 + 1 || j3 == k + i1 + 1)
{
if(k2 >= 0 && !cn1.f(l1, k2 - 1, j3).a())
{
cn1.d(l1, k2, j3, 0);
continue;
}
if(!cn1.f(l1, k2, j3).a())
continue;
if(k2 == j - 1 && random.nextInt(4) != 0)
cn1.d(l1, k2, j3, ly.ap.bc);
else
cn1.d(l1, k2, j3, ly.x.bc);
} else
{
cn1.d(l1, k2, j3, 0);
}
}
}
for(int i2 = 0; i2 < 2; i2++)
{
label0:
for(int l2 = 0; l2 < 3; l2++)
{
int k3 = (i + random.nextInt(l * 2 + 1)) - l;
int l3 = j;
int i4 = (k + random.nextInt(i1 * 2 + 1)) - i1;
if(cn1.a(k3, l3, i4) != 0)
continue;
int j4 = 0;
if(cn1.f(k3 - 1, l3, i4).a())
j4++;
if(cn1.f(k3 + 1, l3, i4).a())
j4++;
if(cn1.f(k3, l3, i4 - 1).a())
j4++;
if(cn1.f(k3, l3, i4 + 1).a())
j4++;
if(j4 != 1)
continue;
cn1.d(k3, l3, i4, ly.av.bc);
fe fe1 = (fe)cn1.b(k3, l3, i4);
int k4 = 0;
do
{
if(k4 >= 8)
break label0;
ev ev1 = a(random);
if(ev1 != null)
fe1.a(random.nextInt(fe1.c()), ev1);
k4++;
} while(true);
}
}
cn1.d(i, j, k, ly.at.bc);
bd bd1 = (bd)cn1.b(i, j, k);
bd1.b = b(random);
return true;
}
private ev a(java.util.Random random)
{
int i = random.nextInt(11);
if(i == 0)
return new ev(di.ay);
if(i == 1)
return new ev(di.m, random.nextInt(4) + 1);
if(i == 2)
return new ev(di.S);
if(i == 3)
return new ev(di.R, random.nextInt(4) + 1);
if(i == 4)
return new ev(di.K, random.nextInt(4) + 1);
if(i == 5)
return new ev(di.I, random.nextInt(4) + 1);
if(i == 6)
return new ev(di.au);
if(i == 7 && random.nextInt(100) == 0)
return new ev(di.ar);
if(i == 8 && random.nextInt(2) == 0)
return new ev(di.aA, random.nextInt(4) + 1);
if(i == 9 && random.nextInt(10) == 0)
return new ev(di.c[di.aQ.aS + random.nextInt(2)]);
else
return null;
}
private java.lang.String b(java.util.Random random)
{
int i = random.nextInt(4);
if(i == 0)
return "Skeleton";
if(i == 1)
return "Zombie";
if(i == 2)
return "Zombie";
if(i == 3)
return "Spider";
else
return "";
}
}

View File

@@ -0,0 +1,56 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.io.IOException;
public class ch extends eh
{
public ch()
{
i = true;
h = true;
}
public ch(double d, double d1, double d2, double d3, float f, float f1, boolean flag)
{
a = d;
b = d1;
this.d = d2;
c = d3;
e = f;
this.f = f1;
g = flag;
i = true;
h = true;
}
public void a(java.io.DataInputStream datainputstream) throws IOException
{
a = datainputstream.readDouble();
b = datainputstream.readDouble();
d = datainputstream.readDouble();
c = datainputstream.readDouble();
e = datainputstream.readFloat();
f = datainputstream.readFloat();
super.a(datainputstream);
}
public void a(java.io.DataOutputStream dataoutputstream) throws IOException
{
dataoutputstream.writeDouble(a);
dataoutputstream.writeDouble(b);
dataoutputstream.writeDouble(d);
dataoutputstream.writeDouble(c);
dataoutputstream.writeFloat(e);
dataoutputstream.writeFloat(f);
super.a(dataoutputstream);
}
public int a()
{
return 41;
}
}

View File

@@ -0,0 +1,138 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ci
implements nm
{
private int a;
private int b;
private ga c[][];
private cn d;
public ci(cn cn1, int i, int j, int k, int l, int i1, int j1)
{
d = cn1;
a = i >> 4;
b = k >> 4;
int k1 = l >> 4;
int l1 = j1 >> 4;
c = new ga[(k1 - a) + 1][(l1 - b) + 1];
for(int i2 = a; i2 <= k1; i2++)
{
for(int j2 = b; j2 <= l1; j2++)
c[i2 - a][j2 - b] = cn1.b(i2, j2);
}
}
public int a(int i, int j, int k)
{
if(j < 0)
return 0;
if(j >= 128)
{
return 0;
} else
{
int l = (i >> 4) - a;
int i1 = (k >> 4) - b;
return c[l][i1].a(i & 0xf, j, k & 0xf);
}
}
public ic b(int i, int j, int k)
{
int l = (i >> 4) - a;
int i1 = (k >> 4) - b;
return c[l][i1].d(i & 0xf, j, k & 0xf);
}
public float c(int i, int j, int k)
{
return cn.i[d(i, j, k)];
}
public int d(int i, int j, int k)
{
return a(i, j, k, true);
}
public int a(int i, int j, int k, boolean flag)
{
if(i < 0xfe17b800 || k < 0xfe17b800 || i >= 0x1e84800 || k > 0x1e84800)
return 15;
if(flag)
{
int l = a(i, j, k);
if(l == ly.al.bc || l == ly.aB.bc)
{
int k1 = a(i, j + 1, k, false);
int i2 = a(i + 1, j, k, false);
int j2 = a(i - 1, j, k, false);
int k2 = a(i, j, k + 1, false);
int l2 = a(i, j, k - 1, false);
if(i2 > k1)
k1 = i2;
if(j2 > k1)
k1 = j2;
if(k2 > k1)
k1 = k2;
if(l2 > k1)
k1 = l2;
return k1;
}
}
if(j < 0)
return 0;
if(j >= 128)
{
int i1 = 15 - d.e;
if(i1 < 0)
i1 = 0;
return i1;
} else
{
int j1 = (i >> 4) - a;
int l1 = (k >> 4) - b;
return c[j1][l1].c(i & 0xf, j, k & 0xf, d.e);
}
}
public int e(int i, int j, int k)
{
if(j < 0)
return 0;
if(j >= 128)
{
return 0;
} else
{
int l = (i >> 4) - a;
int i1 = (k >> 4) - b;
return c[l][i1].b(i & 0xf, j, k & 0xf);
}
}
public gb f(int i, int j, int k)
{
int l = a(i, j, k);
if(l == 0)
return gb.a;
else
return ly.n[l].bn;
}
public boolean g(int i, int j, int k)
{
ly ly1 = ly.n[a(i, j, k)];
if(ly1 == null)
return false;
else
return ly1.b();
}
}

View File

@@ -0,0 +1,45 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cj extends bh
{
private java.lang.String a;
private java.lang.String h;
public cj(java.lang.String s, java.lang.String s1)
{
a = s;
h = s1;
}
public void g()
{
}
protected void a(char c, int i)
{
}
public void a()
{
e.clear();
e.add(((java.lang.Object) (new fk(0, c / 2 - 100, d / 4 + 120 + 12, "Back to title screen"))));
}
protected void a(fk fk1)
{
if(fk1.f == 0)
b.a(((bh) (new cx())));
}
public void a(int i, int j, float f)
{
i();
a(g, a, c / 2, d / 2 - 50, 0xffffff);
a(g, h, c / 2, d / 2 - 10, 0xffffff);
super.a(i, j, f);
}
}

View File

@@ -0,0 +1,85 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ck
implements aw
{
private ga b[];
private cn c;
private af d;
byte a[];
public ck(cn cn, af af1)
{
b = new ga[256];
a = new byte[32768];
c = cn;
d = af1;
}
public boolean a(int i, int j)
{
int k = i & 0xf | (j & 0xf) * 16;
return b[k] != null && b[k].a(i, j);
}
public ga b(int i, int j)
{
int k = i & 0xf | (j & 0xf) * 16;
try
{
if(!a(i, j))
{
ga ga1 = c(i, j);
if(ga1 == null)
{
ga1 = new ga(c, a, i, j);
ga1.q = true;
ga1.p = true;
}
b[k] = ga1;
}
return b[k];
}
catch(java.lang.Exception exception)
{
exception.printStackTrace();
}
return null;
}
private synchronized ga c(int i, int j)
{
try
{
return d.a(c, i, j);
}
catch(java.io.IOException ioexception)
{
ioexception.printStackTrace();
}
return null;
}
public void a(aw aw1, int i, int j)
{
}
public boolean a(boolean flag, nu nu)
{
return true;
}
public boolean a()
{
return false;
}
public boolean b()
{
return false;
}
}

View File

@@ -0,0 +1,50 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cl extends fo
{
public ip a[];
public cl()
{
a = new ip[5];
a[0] = new ip(0, 8);
a[1] = new ip(0, 0);
a[2] = new ip(0, 0);
a[3] = new ip(0, 0);
a[4] = new ip(0, 0);
byte byte0 = 24;
byte byte1 = 6;
byte byte2 = 20;
byte byte3 = 4;
a[0].a(-byte0 / 2, -byte2 / 2 + 2, -3F, ((int) (byte0)), byte2 - 4, 4, 0.0F);
a[0].a(0.0F, 0 + byte3, 0.0F);
a[1].a(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, ((int) (byte1)), 2, 0.0F);
a[1].a(-byte0 / 2 + 1, 0 + byte3, 0.0F);
a[2].a(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, ((int) (byte1)), 2, 0.0F);
a[2].a(byte0 / 2 - 1, 0 + byte3, 0.0F);
a[3].a(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, ((int) (byte1)), 2, 0.0F);
a[3].a(0.0F, 0 + byte3, -byte2 / 2 + 1);
a[4].a(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, ((int) (byte1)), 2, 0.0F);
a[4].a(0.0F, 0 + byte3, byte2 / 2 - 1);
a[0].d = 1.570796F;
a[1].e = 4.712389F;
a[2].e = 1.570796F;
a[3].e = 3.141593F;
}
public void b(float f, float f1, float f2, float f3, float f4, float f5)
{
for(int i = 0; i < 5; i++)
a[i].a(f5);
}
public void a(float f, float f1, float f2, float f3, float f4, float f5)
{
}
}

View File

@@ -0,0 +1,23 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cm extends ce
{
public cm(int i, int j)
{
super(i, j);
}
public int a(java.util.Random random)
{
return 1;
}
public int a(int i, java.util.Random random)
{
return ly.aq.bc;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public interface co
{
}

View File

@@ -0,0 +1,45 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import org.lwjgl.opengl.GL11;
public class cp extends ak
{
protected fo d;
public cp()
{
b = 0.5F;
d = ((fo) (new cl()));
}
public void a(dc dc1, double d1, double d2, double d3,
float f, float f1)
{
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glTranslatef((float)d1, (float)d2, (float)d3);
org.lwjgl.opengl.GL11.glRotatef(180F - f, 0.0F, 1.0F, 0.0F);
float f2 = (float)dc1.b - f1;
float f3 = (float)dc1.a - f1;
if(f3 < 0.0F)
f3 = 0.0F;
if(f2 > 0.0F)
org.lwjgl.opengl.GL11.glRotatef(((eo.a(f2) * f2 * f3) / 10F) * (float)dc1.c, 1.0F, 0.0F, 0.0F);
a("/terrain.png");
float f4 = 0.75F;
org.lwjgl.opengl.GL11.glScalef(f4, f4, f4);
org.lwjgl.opengl.GL11.glScalef(1.0F / f4, 1.0F / f4, 1.0F / f4);
a("/item/boat.png");
org.lwjgl.opengl.GL11.glScalef(-1F, -1F, 1.0F);
d.b(0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
org.lwjgl.opengl.GL11.glPopMatrix();
}
public void a(kh kh, double d1, double d2, double d3, float f, float f1)
{
a((dc)kh, d1, d2, d3, f, f1);
}
}

View File

@@ -0,0 +1,59 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cq extends nq
{
private float a;
public cq(cn cn1, double d, double d1, double d2)
{
super(cn1, d, d1, d2, 0.0D, 0.0D, 0.0D);
an *= 0.80000001192092896D;
ao *= 0.80000001192092896D;
ap *= 0.80000001192092896D;
ao = aQ.nextFloat() * 0.4F + 0.05F;
i = j = k = 1.0F;
g *= aQ.nextFloat() * 2.0F + 0.2F;
a = g;
f = (int)(16D / (java.lang.Math.random() * 0.80000000000000004D + 0.20000000000000001D));
aN = false;
b = 49;
}
public float a(float f)
{
return 1.0F;
}
public void a(ho ho, float f, float f1, float f2, float f3, float f4, float f5)
{
float f6 = ((float)e + f) / (float)this.f;
g = a * (1.0F - f6 * f6);
super.a(ho, f, f1, f2, f3, f4, f5);
}
public void e_()
{
ah = ak;
ai = al;
aj = am;
if(e++ >= this.f)
F();
float f = (float)e / (float)this.f;
if(aQ.nextFloat() > f)
ag.a("smoke", ak, al, am, an, ao, ap);
ao -= 0.029999999999999999D;
c(an, ao, ap);
an *= 0.99900001287460327D;
ao *= 0.99900001287460327D;
ap *= 0.99900001287460327D;
if(av)
{
an *= 0.69999998807907104D;
ap *= 0.69999998807907104D;
}
}
}

View File

@@ -0,0 +1,149 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cr extends fo
{
public ip a;
public ip b;
public ip c;
public ip d;
public ip e;
public ip f;
public ip g;
public boolean h;
public boolean i;
public boolean j;
public cr()
{
this(0.0F);
}
public cr(float f1)
{
this(f1, 0.0F);
}
public cr(float f1, float f2)
{
h = false;
i = false;
j = false;
a = new ip(0, 0);
a.a(-4F, -8F, -4F, 8, 8, 8, f1);
a.a(0.0F, 0.0F + f2, 0.0F);
b = new ip(32, 0);
b.a(-4F, -8F, -4F, 8, 8, 8, f1 + 0.5F);
b.a(0.0F, 0.0F + f2, 0.0F);
c = new ip(16, 16);
c.a(-4F, 0.0F, -2F, 8, 12, 4, f1);
c.a(0.0F, 0.0F + f2, 0.0F);
d = new ip(40, 16);
d.a(-3F, -2F, -2F, 4, 12, 4, f1);
d.a(-5F, 2.0F + f2, 0.0F);
e = new ip(40, 16);
e.g = true;
e.a(-1F, -2F, -2F, 4, 12, 4, f1);
e.a(5F, 2.0F + f2, 0.0F);
f = new ip(0, 16);
f.a(-2F, 0.0F, -2F, 4, 12, 4, f1);
f.a(-2F, 12F + f2, 0.0F);
g = new ip(0, 16);
g.g = true;
g.a(-2F, 0.0F, -2F, 4, 12, 4, f1);
g.a(2.0F, 12F + f2, 0.0F);
}
public void b(float f1, float f2, float f3, float f4, float f5, float f6)
{
a(f1, f2, f3, f4, f5, f6);
a.a(f6);
c.a(f6);
d.a(f6);
e.a(f6);
f.a(f6);
g.a(f6);
b.a(f6);
}
public void a(float f1, float f2, float f3, float f4, float f5, float f6)
{
a.e = f4 / 57.29578F;
a.d = f5 / 57.29578F;
b.e = a.e;
b.d = a.d;
d.d = eo.b(f1 * 0.6662F + 3.141593F) * 2.0F * f2 * 0.5F;
e.d = eo.b(f1 * 0.6662F) * 2.0F * f2 * 0.5F;
d.f = 0.0F;
e.f = 0.0F;
f.d = eo.b(f1 * 0.6662F) * 1.4F * f2;
g.d = eo.b(f1 * 0.6662F + 3.141593F) * 1.4F * f2;
f.e = 0.0F;
g.e = 0.0F;
if(l)
{
d.d += -0.6283185F;
e.d += -0.6283185F;
f.d = -1.256637F;
g.d = -1.256637F;
f.e = 0.3141593F;
g.e = -0.3141593F;
}
if(h)
e.d = e.d * 0.5F - 0.3141593F;
if(i)
d.d = d.d * 0.5F - 0.3141593F;
d.e = 0.0F;
e.e = 0.0F;
if(k > -9990F)
{
float f7 = k;
c.e = eo.a(eo.c(f7) * 3.141593F * 2.0F) * 0.2F;
d.c = eo.a(c.e) * 5F;
d.a = -eo.b(c.e) * 5F;
e.c = -eo.a(c.e) * 5F;
e.a = eo.b(c.e) * 5F;
d.e += c.e;
e.e += c.e;
e.d += c.e;
f7 = 1.0F - k;
f7 *= f7;
f7 *= f7;
f7 = 1.0F - f7;
float f8 = eo.a(f7 * 3.141593F);
float f9 = eo.a(k * 3.141593F) * -(a.d - 0.7F) * 0.75F;
d.d -= ((float) ((double)f8 * 1.2D + (double)f9));
d.e += c.e * 2.0F;
d.f = eo.a(k * 3.141593F) * -0.4F;
}
if(j)
{
c.d = 0.5F;
f.d -= 0.0F;
g.d -= 0.0F;
d.d += 0.4F;
e.d += 0.4F;
f.c = 4F;
g.c = 4F;
f.b = 9F;
g.b = 9F;
a.b = 1.0F;
} else
{
c.d = 0.0F;
f.c = 0.0F;
g.c = 0.0F;
f.b = 12F;
g.b = 12F;
a.b = 0.0F;
}
d.f += eo.b(f3 * 0.09F) * 0.05F + 0.05F;
e.f -= eo.b(f3 * 0.09F) * 0.05F + 0.05F;
d.d += eo.a(f3 * 0.067F) * 0.05F;
e.d -= eo.a(f3 * 0.067F) * 0.05F;
}
}

View File

@@ -0,0 +1,33 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cs extends ly
{
protected cs(int i)
{
super(i, gb.c);
bb = 59;
}
public int a(int i)
{
if(i == 1)
return bb - 16;
if(i == 0)
return ly.y.a(0);
if(i == 2 || i == 4)
return bb + 1;
else
return bb;
}
public boolean a(cn cn, int i, int j, int k, dm dm1)
{
dm1.l();
return true;
}
}

View File

@@ -0,0 +1,18 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class ct extends fc
{
public ct(int i, int j, gb gb, boolean flag)
{
super(i, j, gb, flag);
}
public int a(java.util.Random random)
{
return 0;
}
}

View File

@@ -0,0 +1,56 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cu extends ik
{
private int a;
private int b;
public cu(int i, int j)
{
a = i;
b = j;
}
public boolean a(cn cn1, java.util.Random random, int i, int j, int k)
{
float f = random.nextFloat() * 3.141593F;
double d = (float)(i + 8) + (eo.a(f) * (float)b) / 8F;
double d1 = (float)(i + 8) - (eo.a(f) * (float)b) / 8F;
double d2 = (float)(k + 8) + (eo.b(f) * (float)b) / 8F;
double d3 = (float)(k + 8) - (eo.b(f) * (float)b) / 8F;
double d4 = j + random.nextInt(3) + 2;
double d5 = j + random.nextInt(3) + 2;
for(int l = 0; l <= b; l++)
{
double d6 = d + ((d1 - d) * (double)l) / (double)b;
double d7 = d4 + ((d5 - d4) * (double)l) / (double)b;
double d8 = d2 + ((d3 - d2) * (double)l) / (double)b;
double d9 = (random.nextDouble() * (double)b) / 16D;
double d10 = (double)(eo.a(((float)l * 3.141593F) / (float)b) + 1.0F) * d9 + 1.0D;
double d11 = (double)(eo.a(((float)l * 3.141593F) / (float)b) + 1.0F) * d9 + 1.0D;
for(int i1 = (int)(d6 - d10 / 2D); i1 <= (int)(d6 + d10 / 2D); i1++)
{
for(int j1 = (int)(d7 - d11 / 2D); j1 <= (int)(d7 + d11 / 2D); j1++)
{
for(int k1 = (int)(d8 - d10 / 2D); k1 <= (int)(d8 + d10 / 2D); k1++)
{
double d12 = (((double)i1 + 0.5D) - d6) / (d10 / 2D);
double d13 = (((double)j1 + 0.5D) - d7) / (d11 / 2D);
double d14 = (((double)k1 + 0.5D) - d8) / (d10 / 2D);
if(d12 * d12 + d13 * d13 + d14 * d14 < 1.0D && cn1.a(i1, j1, k1) == ly.u.bc)
cn1.a(i1, j1, k1, a);
}
}
}
}
return true;
}
}

View File

@@ -0,0 +1,54 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cv extends ly
{
protected cv(int i, int j)
{
super(i, j, gb.c);
}
public int a(int i)
{
return bb + (i != 1 ? 0 : 1);
}
public boolean a(cn cn1, int i, int j, int k, dm dm)
{
int l = cn1.e(i, j, k);
if(l > 0)
{
e(cn1, i, j, k, l);
return true;
} else
{
return false;
}
}
public void e(cn cn1, int i, int j, int k, int l)
{
cn1.a(((java.lang.String) (null)), i, j, k);
cn1.b(i, j, k, 0);
int i1 = (di.aQ.aS + l) - 1;
float f = 0.7F;
double d = (double)(cn1.n.nextFloat() * f) + (double)(1.0F - f) * 0.5D;
double d1 = (double)(cn1.n.nextFloat() * f) + (double)(1.0F - f) * 0.20000000000000001D + 0.59999999999999998D;
double d2 = (double)(cn1.n.nextFloat() * f) + (double)(1.0F - f) * 0.5D;
dx dx1 = new dx(cn1, (double)i + d, (double)j + d1, (double)k + d2, new ev(i1));
dx1.c = 10;
cn1.a(((kh) (dx1)));
}
public void a(cn cn1, int i, int j, int k, int l, float f)
{
if(cn1.y)
return;
if(l > 0)
e(cn1, i, j, k, l);
super.a(cn1, i, j, k, l, f);
}
}

View File

@@ -0,0 +1,77 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cw extends dq
{
public cw(cn cn1)
{
super(cn1);
u = "/mob/skeleton.png";
}
protected java.lang.String c()
{
return "mob.skeleton";
}
protected java.lang.String d()
{
return "mob.skeletonhurt";
}
protected java.lang.String e()
{
return "mob.skeletonhurt";
}
public void j()
{
if(ag.b())
{
float f = a(1.0F);
if(f > 0.5F && ag.i(eo.b(ak), eo.b(al), eo.b(am)) && aQ.nextFloat() * 30F < (f - 0.4F) * 2.0F)
aT = 300;
}
super.j();
}
protected void a(kh kh1, float f)
{
if(f < 10F)
{
double d1 = kh1.ak - ak;
double d2 = kh1.am - am;
if(K == 0)
{
kg kg1 = new kg(ag, ((ge) (this)));
kg1.al += 1.3999999761581421D;
double d3 = kh1.al - 0.20000000298023224D - kg1.al;
float f1 = eo.a(d1 * d1 + d2 * d2) * 0.2F;
ag.a(((kh) (this)), "random.bow", 1.0F, 1.0F / (aQ.nextFloat() * 0.4F + 0.8F));
ag.a(((kh) (kg1)));
kg1.a(d1, d3 + (double)f1, d2, 0.6F, 12F);
K = 30;
}
aq = (float)((java.lang.Math.atan2(d2, d1) * 180D) / 3.1415927410125732D) - 90F;
g = true;
}
}
public void a(hm hm)
{
super.a(hm);
}
public void b(hm hm)
{
super.b(hm);
}
protected int g()
{
return di.j.aS;
}
}

View File

@@ -0,0 +1,233 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Date;
import java.util.Random;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.glu.GLU;
public class cx extends bh
{
private static final java.util.Random h = new Random();
java.lang.String a[] = {
" * * * * * *** *** *** *** *** ***", " ** ** * ** * * * * * * * * * ", " * * * * * * * ** * ** *** ** * ", " * * * * ** * * * * * * * * ", " * * * * * *** *** * * * * * * "
};
private kc i[][];
private float j;
private java.lang.String l;
public cx()
{
j = 0.0F;
l = "missingno";
try
{
java.util.ArrayList arraylist = new ArrayList();
java.io.BufferedReader bufferedreader = new BufferedReader(((java.io.Reader) (new InputStreamReader(cx.class.getResourceAsStream("/title/splashes.txt")))));
java.lang.String s = "";
do
{
java.lang.String s1;
if((s1 = bufferedreader.readLine()) == null)
break;
s1 = s1.trim();
if(s1.length() > 0)
((java.util.List) (arraylist)).add(((java.lang.Object) (s1)));
} while(true);
l = (java.lang.String)((java.util.List) (arraylist)).get(h.nextInt(((java.util.List) (arraylist)).size()));
}
catch(java.lang.Exception exception) { }
}
public void g()
{
j++;
if(i != null)
{
for(int k = 0; k < i.length; k++)
{
for(int i1 = 0; i1 < i[k].length; i1++)
i[k][i1].a();
}
}
}
protected void a(char c, int k)
{
}
public void a()
{
java.util.Calendar calendar = java.util.Calendar.getInstance();
calendar.setTime(new Date());
if(calendar.get(2) + 1 == 11 && calendar.get(5) == 9)
l = "Happy birthday, ez!";
else
if(calendar.get(2) + 1 == 6 && calendar.get(5) == 1)
l = "Happy birthday, Notch!";
else
if(calendar.get(2) + 1 == 12 && calendar.get(5) == 24)
l = "Merry X-mas!";
else
if(calendar.get(2) + 1 == 1 && calendar.get(5) == 1)
l = "Happy new year!";
e.clear();
e.add(((java.lang.Object) (new fk(1, c / 2 - 100, d / 4 + 48, "Singleplayer"))));
e.add(((java.lang.Object) (new fk(2, c / 2 - 100, d / 4 + 72, "Multiplayer"))));
e.add(((java.lang.Object) (new fk(3, c / 2 - 100, d / 4 + 96, "Play tutorial level"))));
e.add(((java.lang.Object) (new fk(0, c / 2 - 100, d / 4 + 120 + 12, "Options..."))));
((fk)e.get(2)).g = false;
if(b.i == null)
((fk)e.get(1)).g = false;
}
protected void a(fk fk1)
{
if(fk1.f == 0)
b.a(((bh) (new ay(((bh) (this)), b.y))));
if(fk1.f == 1)
b.a(((bh) (new jq(((bh) (this))))));
if(fk1.f == 2)
b.a(((bh) (new gc(((bh) (this))))));
}
public void a(int k, int i1, float f)
{
i();
ho ho1 = ho.a;
a(f);
org.lwjgl.opengl.GL11.glBindTexture(3553, b.n.a("/gui/logo.png"));
org.lwjgl.opengl.GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
ho1.b(0xffffff);
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glTranslatef(c / 2 + 90, 70F, 0.0F);
org.lwjgl.opengl.GL11.glRotatef(-20F, 0.0F, 0.0F, 1.0F);
float f1 = 1.8F - eo.e(eo.a(((float)(java.lang.System.currentTimeMillis() % 1000L) / 1000F) * 3.141593F * 2.0F) * 0.1F);
f1 = (f1 * 100F) / (float)(g.a(l) + 32);
org.lwjgl.opengl.GL11.glScalef(f1, f1, f1);
a(g, l, 0, -8, 0xffff00);
org.lwjgl.opengl.GL11.glPopMatrix();
java.lang.String s = "Copyright Mojang Specifications. Do not distribute.";
b(g, s, c - g.a(s) - 2, d - 10, 0xffffff);
long l1 = java.lang.Runtime.getRuntime().maxMemory();
long l2 = java.lang.Runtime.getRuntime().totalMemory();
long l3 = java.lang.Runtime.getRuntime().freeMemory();
long l4 = l1 - l3;
s = (new StringBuilder()).append("Free memory: ").append((l4 * 100L) / l1).append("% of ").append(l1 / 1024L / 1024L).append("MB").toString();
b(g, s, c - g.a(s) - 2, 2, 0x808080);
s = (new StringBuilder()).append("Allocated memory: ").append((l2 * 100L) / l1).append("% (").append(l2 / 1024L / 1024L).append("MB)").toString();
b(g, s, c - g.a(s) - 2, 12, 0x808080);
super.a(k, i1, f);
}
private void a(float f)
{
if(i == null)
{
i = new kc[a[0].length()][a.length];
for(int k = 0; k < i.length; k++)
{
for(int i1 = 0; i1 < i[k].length; i1++)
i[k][i1] = new kc(this, k, i1);
}
}
org.lwjgl.opengl.GL11.glMatrixMode(5889);
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glLoadIdentity();
iy iy1 = new iy(b.c, b.d);
int j1 = 120 * iy1.a;
org.lwjgl.util.glu.GLU.gluPerspective(70F, (float)b.c / (float)j1, 0.05F, 100F);
org.lwjgl.opengl.GL11.glViewport(0, b.d - j1, b.c, j1);
org.lwjgl.opengl.GL11.glMatrixMode(5888);
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glLoadIdentity();
org.lwjgl.opengl.GL11.glDisable(2884);
org.lwjgl.opengl.GL11.glCullFace(1029);
org.lwjgl.opengl.GL11.glDepthMask(true);
for(int k1 = 0; k1 < 3; k1++)
{
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glTranslatef(0.4F, 0.6F, -12F);
if(k1 == 0)
{
org.lwjgl.opengl.GL11.glClear(256);
org.lwjgl.opengl.GL11.glTranslatef(0.0F, -0.4F, 0.0F);
org.lwjgl.opengl.GL11.glScalef(0.98F, 1.0F, 1.0F);
org.lwjgl.opengl.GL11.glEnable(3042);
org.lwjgl.opengl.GL11.glBlendFunc(770, 771);
}
if(k1 == 1)
{
org.lwjgl.opengl.GL11.glDisable(3042);
org.lwjgl.opengl.GL11.glClear(256);
}
if(k1 == 2)
{
org.lwjgl.opengl.GL11.glEnable(3042);
org.lwjgl.opengl.GL11.glBlendFunc(768, 1);
}
org.lwjgl.opengl.GL11.glScalef(1.0F, -1F, 1.0F);
org.lwjgl.opengl.GL11.glRotatef(15F, 1.0F, 0.0F, 0.0F);
org.lwjgl.opengl.GL11.glScalef(0.89F, 1.0F, 0.4F);
org.lwjgl.opengl.GL11.glTranslatef((float)(-a[0].length()) * 0.5F, (float)(-a.length) * 0.5F, 0.0F);
org.lwjgl.opengl.GL11.glBindTexture(3553, b.n.a("/terrain.png"));
if(k1 == 0)
org.lwjgl.opengl.GL11.glBindTexture(3553, b.n.a("/title/black.png"));
bc bc1 = new bc();
for(int l1 = 0; l1 < a.length; l1++)
{
for(int i2 = 0; i2 < a[l1].length(); i2++)
{
char c = a[l1].charAt(i2);
if(c == ' ')
continue;
org.lwjgl.opengl.GL11.glPushMatrix();
kc kc1 = i[i2][l1];
float f1 = (float)(kc1.b + (kc1.a - kc1.b) * (double)f);
float f2 = 1.0F;
float f3 = 1.0F;
float f4 = 0.0F;
if(k1 == 0)
{
f2 = f1 * 0.04F + 1.0F;
f3 = 1.0F / f2;
f1 = 0.0F;
}
org.lwjgl.opengl.GL11.glTranslatef(i2, l1, f1);
org.lwjgl.opengl.GL11.glScalef(f2, f2, f2);
org.lwjgl.opengl.GL11.glRotatef(f4, 0.0F, 1.0F, 0.0F);
bc1.a(ly.u, f3);
org.lwjgl.opengl.GL11.glPopMatrix();
}
}
org.lwjgl.opengl.GL11.glPopMatrix();
}
org.lwjgl.opengl.GL11.glDisable(3042);
org.lwjgl.opengl.GL11.glMatrixMode(5889);
org.lwjgl.opengl.GL11.glPopMatrix();
org.lwjgl.opengl.GL11.glMatrixMode(5888);
org.lwjgl.opengl.GL11.glPopMatrix();
org.lwjgl.opengl.GL11.glViewport(0, 0, b.c, b.d);
org.lwjgl.opengl.GL11.glEnable(2884);
}
static java.util.Random j()
{
return h;
}
}

View File

@@ -0,0 +1,41 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.Random;
public class cy
{
protected int a;
protected java.util.Random b;
public cy()
{
a = 8;
b = new Random();
}
public void a(nw nw, cn cn1, int i, int j, byte abyte0[])
{
int k = a;
b.setSeed(cn1.u);
long l = (b.nextLong() / 2L) * 2L + 1L;
long l1 = (b.nextLong() / 2L) * 2L + 1L;
for(int i1 = i - k; i1 <= i + k; i1++)
{
for(int j1 = j - k; j1 <= j + k; j1++)
{
b.setSeed((long)i1 * l + (long)j1 * l1 ^ cn1.u);
a(cn1, i1, j1, i, j, abyte0);
}
}
}
protected void a(cn cn1, int i, int j, int k, int l, byte abyte0[])
{
}
}

View File

@@ -0,0 +1,185 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class cz
{
private nm a;
private fx b;
private fi c;
private a d[];
public cz(nm nm1)
{
b = new fx();
c = new fi();
d = new a[32];
a = nm1;
}
public bl a(kh kh1, kh kh2, float f)
{
return a(kh1, kh2.ak, kh2.au.b, kh2.am, f);
}
public bl a(kh kh1, int i, int j, int k, float f)
{
return a(kh1, (float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, f);
}
private bl a(kh kh1, double d1, double d2, double d3,
float f)
{
b.a();
c.a();
a a1 = a(eo.b(kh1.au.a), eo.b(kh1.au.b), eo.b(kh1.au.c));
a a2 = a(eo.b(d1 - (double)(kh1.aC / 2.0F)), eo.b(d2), eo.b(d3 - (double)(kh1.aC / 2.0F)));
a a3 = new a(eo.d(kh1.aC + 1.0F), eo.d(kh1.aD + 1.0F), eo.d(kh1.aC + 1.0F));
bl bl1 = a(kh1, a1, a2, a3, f);
return bl1;
}
private bl a(kh kh1, a a1, a a2, a a3, float f)
{
a1.f = 0.0F;
a1.g = a1.a(a2);
a1.h = a1.g;
b.a();
b.a(a1);
a a4 = a1;
while(!b.c())
{
a a5 = b.b();
if(a5.d == a2.d)
return a(a1, a2);
if(a5.a(a2) < a4.a(a2))
a4 = a5;
a5.j = true;
int i = b(kh1, a5, a3, a2, f);
int j = 0;
while(j < i)
{
a a6 = d[j];
float f1 = a5.f + a5.a(a6);
if(!a6.a() || f1 < a6.f)
{
a6.i = a5;
a6.f = f1;
a6.g = a6.a(a2);
if(a6.a())
{
b.a(a6, a6.f + a6.g);
} else
{
a6.h = a6.f + a6.g;
b.a(a6);
}
}
j++;
}
}
if(a4 == a1)
return null;
else
return a(a1, a4);
}
private int b(kh kh1, a a1, a a2, a a3, float f)
{
int i = 0;
int j = 0;
if(a(kh1, a1.a, a1.b + 1, a1.c, a2) > 0)
j = 1;
a a4 = a(kh1, a1.a, a1.b, a1.c + 1, a2, j);
a a5 = a(kh1, a1.a - 1, a1.b, a1.c, a2, j);
a a6 = a(kh1, a1.a + 1, a1.b, a1.c, a2, j);
a a7 = a(kh1, a1.a, a1.b, a1.c - 1, a2, j);
if(a4 != null && !a4.j && a4.a(a3) < f)
d[i++] = a4;
if(a5 != null && !a5.j && a5.a(a3) < f)
d[i++] = a5;
if(a6 != null && !a6.j && a6.a(a3) < f)
d[i++] = a6;
if(a7 != null && !a7.j && a7.a(a3) < f)
d[i++] = a7;
return i;
}
private a a(kh kh1, int i, int j, int k, a a1, int l)
{
a a2 = null;
if(a(kh1, i, j, k, a1) > 0)
a2 = a(i, j, k);
if(a2 == null && a(kh1, i, j + l, k, a1) > 0)
{
a2 = a(i, j + l, k);
j += l;
}
if(a2 != null)
{
int i1 = 0;
for(int j1 = 0; j > 0 && (j1 = a(kh1, i, j - 1, k, a1)) > 0; j--)
{
if(j1 < 0)
return null;
if(++i1 >= 4)
return null;
}
if(j > 0)
a2 = a(i, j, k);
}
return a2;
}
private final a a(int i, int j, int k)
{
int l = i | j << 10 | k << 20;
a a1 = (a)c.a(l);
if(a1 == null)
{
a1 = new a(i, j, k);
c.a(l, ((java.lang.Object) (a1)));
}
return a1;
}
private int a(kh kh1, int i, int j, int k, a a1)
{
for(int l = i; l < i + a1.a; l++)
{
for(int i1 = j; i1 < j + a1.b; i1++)
{
for(int j1 = k; j1 < k + a1.c; j1++)
{
gb gb1 = a.f(i, j, k);
if(gb1.c())
return 0;
if(gb1 == gb.f || gb1 == gb.g)
return -1;
}
}
}
return 1;
}
private bl a(a a1, a a2)
{
int i = 1;
for(a a3 = a2; a3.i != null; a3 = a3.i)
i++;
a aa[] = new a[i];
a a4 = a2;
for(aa[--i] = a4; a4.i != null; aa[--i] = a4)
a4 = a4.i;
return new bl(aa);
}
}

View File

@@ -0,0 +1,58 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import org.lwjgl.opengl.GL11;
public class d extends dn
{
public d()
{
super(((fo) (new em())), 0.5F);
}
protected void a(dd dd1, float f)
{
dd dd2 = dd1;
float f1 = dd2.b(f);
float f2 = 1.0F + eo.a(f1 * 100F) * f1 * 0.01F;
if(f1 < 0.0F)
f1 = 0.0F;
if(f1 > 1.0F)
f1 = 1.0F;
f1 *= f1;
f1 *= f1;
float f3 = (1.0F + f1 * 0.4F) * f2;
float f4 = (1.0F + f1 * 0.1F) / f2;
org.lwjgl.opengl.GL11.glScalef(f3, f4, f3);
}
protected int a(dd dd1, float f, float f1)
{
dd dd2 = dd1;
float f2 = dd2.b(f1);
if((int)(f2 * 10F) % 2 == 0)
return 0;
int i = (int)(f2 * 0.2F * 255F);
if(i < 0)
i = 0;
if(i > 255)
i = 255;
char c = '\377';
char c1 = '\377';
char c2 = '\377';
return i << 24 | c << 16 | c1 << 8 | c2;
}
protected void a(ge ge, float f)
{
a((dd)ge, f);
}
protected int a(ge ge, float f, float f1)
{
return a((dd)ge, f, f1);
}
}

View File

@@ -0,0 +1,31 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class da extends ik
{
public da()
{
}
public boolean a(cn cn1, java.util.Random random, int i, int j, int k)
{
for(int l = 0; l < 10; l++)
{
int i1 = (i + random.nextInt(8)) - random.nextInt(8);
int j1 = (j + random.nextInt(4)) - random.nextInt(4);
int k1 = (k + random.nextInt(8)) - random.nextInt(8);
if(cn1.a(i1, j1, k1) != 0)
continue;
int l1 = 1 + random.nextInt(random.nextInt(3) + 1);
for(int i2 = 0; i2 < l1; i2++)
if(ly.aW.g(cn1, i1, j1 + i2, k1))
cn1.a(i1, j1 + i2, k1, ly.aW.bc);
}
return true;
}
}

View File

@@ -0,0 +1,30 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.awt.Dimension;
class db extends java.awt.Canvas
{
private java.awt.image.BufferedImage a;
public db()
{
try
{
a = javax.imageio.ImageIO.read(aq.class.getResource("/gui/logo.png"));
}
catch(java.io.IOException ioexception) { }
byte byte0 = 100;
setPreferredSize(new Dimension(((int) (byte0)), ((int) (byte0))));
setMinimumSize(new Dimension(((int) (byte0)), ((int) (byte0))));
}
public void paint(java.awt.Graphics g)
{
super.paint(g);
g.drawImage(((java.awt.Image) (a)), getWidth() / 2 - a.getWidth() / 2, 32, ((java.awt.image.ImageObserver) (null)));
}
}

View File

@@ -0,0 +1,217 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class dc extends kh
{
public int a;
public int b;
public int c;
public dc(cn cn1)
{
super(cn1);
a = 0;
b = 0;
c = 1;
ad = true;
a(1.5F, 0.6F);
aB = aD / 2.0F;
aG = false;
}
public cf b_(kh kh1)
{
return kh1.au;
}
public cf f_()
{
return au;
}
public boolean d_()
{
return true;
}
public dc(cn cn1, double d, double d1, double d2)
{
this(cn1);
a(d, d1 + (double)aB, d2);
an = 0.0D;
ao = 0.0D;
ap = 0.0D;
ah = d;
ai = d1;
aj = d2;
}
public double h()
{
return (double)aD * 0.0D - 0.30000001192092896D;
}
public boolean a(kh kh1, int i)
{
c = -c;
b = 10;
a += i * 10;
if(a > 40)
{
for(int j = 0; j < 3; j++)
a(ly.y.bc, 1, 0.0F);
for(int k = 0; k < 2; k++)
a(di.B.aS, 1, 0.0F);
F();
}
return true;
}
public boolean c_()
{
return !aA;
}
public void e_()
{
super.e_();
if(b > 0)
b--;
if(a > 0)
a--;
ah = ak;
ai = al;
aj = am;
int i = 5;
double d = 0.0D;
for(int j = 0; j < i; j++)
{
double d2 = (au.b + ((au.e - au.b) * (double)(j + 0)) / (double)i) - 0.125D;
double d4 = (au.b + ((au.e - au.b) * (double)(j + 1)) / (double)i) - 0.125D;
cf cf1 = cf.b(au.a, d2, au.c, au.d, d4, au.f);
if(ag.b(cf1, gb.f))
d += 1.0D / (double)i;
}
double d1 = d * 2D - 1.0D;
ao += 0.039999999105930328D * d1;
if(ae != null)
{
an += ae.an * 0.20000000000000001D;
ap += ae.ap * 0.20000000000000001D;
}
double d3 = 0.40000000000000002D;
if(an < -d3)
an = -d3;
if(an > d3)
an = d3;
if(ap < -d3)
ap = -d3;
if(ap > d3)
ap = d3;
if(av)
{
an *= 0.5D;
ao *= 0.5D;
ap *= 0.5D;
}
c(an, ao, ap);
double d5 = java.lang.Math.sqrt(an * an + ap * ap);
if(d5 > 0.14999999999999999D)
{
double d6 = java.lang.Math.cos(((double)aq * 3.1415926535897931D) / 180D);
double d8 = java.lang.Math.sin(((double)aq * 3.1415926535897931D) / 180D);
for(int i1 = 0; (double)i1 < 1.0D + d5 * 60D; i1++)
{
double d11 = aQ.nextFloat() * 2.0F - 1.0F;
double d13 = (double)(aQ.nextInt(2) * 2 - 1) * 0.69999999999999996D;
if(aQ.nextBoolean())
{
double d14 = (ak - d6 * d11 * 0.80000000000000004D) + d8 * d13;
double d16 = am - d8 * d11 * 0.80000000000000004D - d6 * d13;
ag.a("splash", d14, al - 0.125D, d16, an, ao, ap);
} else
{
double d15 = ak + d6 + d8 * d11 * 0.69999999999999996D;
double d17 = (am + d8) - d6 * d11 * 0.69999999999999996D;
ag.a("splash", d15, al - 0.125D, d17, an, ao, ap);
}
}
}
if(aw && d5 > 0.14999999999999999D)
{
F();
for(int k = 0; k < 3; k++)
a(ly.y.bc, 1, 0.0F);
for(int l = 0; l < 2; l++)
a(di.B.aS, 1, 0.0F);
} else
{
an *= 0.99000000953674316D;
ao *= 0.94999998807907104D;
ap *= 0.99000000953674316D;
}
ar = 0.0F;
double d7 = aq;
double d9 = ah - ak;
double d10 = aj - am;
if(d9 * d9 + d10 * d10 > 0.001D)
d7 = (float)((java.lang.Math.atan2(d10, d9) * 180D) / 3.1415926535897931D);
double d12;
for(d12 = d7 - (double)aq; d12 >= 180D; d12 -= 360D);
for(; d12 < -180D; d12 += 360D);
if(d12 > 20D)
d12 = 20D;
if(d12 < -20D)
d12 = -20D;
aq += ((float) (d12));
c(aq, ar);
java.util.List list = ag.b(((kh) (this)), au.b(0.20000000298023224D, 0.0D, 0.20000000298023224D));
if(list != null && list.size() > 0)
{
for(int j1 = 0; j1 < list.size(); j1++)
{
kh kh1 = (kh)list.get(j1);
if(kh1 != ae && kh1.d_() && (kh1 instanceof dc))
kh1.f(((kh) (this)));
}
}
if(ae != null && ae.aA)
ae = null;
}
protected void i_()
{
double d = java.lang.Math.cos(((double)aq * 3.1415926535897931D) / 180D) * 0.40000000000000002D;
double d1 = java.lang.Math.sin(((double)aq * 3.1415926535897931D) / 180D) * 0.40000000000000002D;
ae.a(ak + d, al + h() + ae.v(), am + d1);
}
protected void a(hm hm)
{
}
protected void b(hm hm)
{
}
public float h_()
{
return 0.0F;
}
public boolean a(dm dm1)
{
dm1.g(((kh) (this)));
return true;
}
}

View File

@@ -0,0 +1,87 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class dd extends dq
{
int a;
int b;
int c;
int d;
public dd(cn cn1)
{
super(cn1);
c = 30;
d = -1;
u = "/mob/creeper.png";
}
public void a(hm hm)
{
super.a(hm);
}
public void b(hm hm)
{
super.b(hm);
}
protected void b_()
{
b = a;
if(a > 0 && d < 0)
a--;
if(d >= 0)
d = 2;
super.b_();
if(d != 1)
d = -1;
}
protected java.lang.String d()
{
return "mob.creeper";
}
protected java.lang.String e()
{
return "mob.creeperdeath";
}
public void b(kh kh)
{
super.b(kh);
if(kh instanceof cw)
b(di.aQ.aS + aQ.nextInt(2), 1);
}
protected void a(kh kh, float f)
{
if(d <= 0 && f < 3F || d > 0 && f < 7F)
{
if(a == 0)
ag.a(((kh) (this)), "random.fuse", 1.0F, 0.5F);
d = 1;
a++;
if(a == c)
{
ag.a(((kh) (this)), ak, al, am, 3F);
F();
}
g = true;
}
}
public float b(float f)
{
return ((float)b + (float)(a - b) * f) / (float)(c - 2);
}
protected int g()
{
return di.K.aS;
}
}

View File

@@ -0,0 +1,75 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import org.lwjgl.input.Keyboard;
public class de extends bh
{
private java.lang.String a;
private int h;
public de()
{
a = "";
h = 0;
}
public void a()
{
org.lwjgl.input.Keyboard.enableRepeatEvents(true);
}
public void h()
{
org.lwjgl.input.Keyboard.enableRepeatEvents(false);
}
public void g()
{
h++;
}
protected void a(char c, int i)
{
if(i == 1)
{
b.a(((bh) (null)));
return;
}
if(i == 28)
{
java.lang.String s = a.trim();
if(s.length() > 0)
b.g.a(a.trim());
b.a(((bh) (null)));
return;
}
if(i == 14 && a.length() > 0)
a = a.substring(0, a.length() - 1);
if ((" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_'abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»".indexOf(c) >= 0) && (this.a.length() < 100))
this.a += c;
}
public void a(int i, int j, float f)
{
a(2, d - 14, c - 2, d - 2, 0x80000000);
b(g, (new StringBuilder()).append("> ").append(a).append((h / 6) % 2 != 0 ? "" : "_").toString(), 4, d - 12, 0xe0e0e0);
}
protected void a(int iparm, int j, int k)
{
if ((k == 0) &&
(this.b.u.a != null)) {
if ((this.a.length() > 0) && (!this.a.endsWith(" "))) {
this.a += " ";
}
this.a += this.b.u.a;
int i = 100;
if (this.a.length() > i)
this.a = this.a.substring(0, i);
}
}
}

View File

@@ -0,0 +1,69 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.ArrayList;
import org.lwjgl.opengl.GL11;
public class df
{
private static java.util.List a = new ArrayList();
private static java.util.List b = new ArrayList();
public df()
{
}
public static synchronized int a(int i)
{
int j = org.lwjgl.opengl.GL11.glGenLists(i);
a.add(((java.lang.Object) (java.lang.Integer.valueOf(j))));
a.add(((java.lang.Object) (java.lang.Integer.valueOf(i))));
return j;
}
public static synchronized void a(java.nio.IntBuffer intbuffer)
{
org.lwjgl.opengl.GL11.glGenTextures(intbuffer);
for(int i = intbuffer.position(); i < intbuffer.limit(); i++)
b.add(((java.lang.Object) (java.lang.Integer.valueOf(intbuffer.get(i)))));
}
public static synchronized void a()
{
for(int i = 0; i < a.size(); i += 2)
org.lwjgl.opengl.GL11.glDeleteLists(((java.lang.Integer)a.get(i)).intValue(), ((java.lang.Integer)a.get(i + 1)).intValue());
java.nio.IntBuffer intbuffer = df.c(b.size());
intbuffer.flip();
org.lwjgl.opengl.GL11.glDeleteTextures(intbuffer);
for(int j = 0; j < b.size(); j++)
intbuffer.put(((java.lang.Integer)b.get(j)).intValue());
intbuffer.flip();
org.lwjgl.opengl.GL11.glDeleteTextures(intbuffer);
a.clear();
b.clear();
}
public static synchronized java.nio.ByteBuffer b(int i)
{
java.nio.ByteBuffer bytebuffer = java.nio.ByteBuffer.allocateDirect(i).order(java.nio.ByteOrder.nativeOrder());
return bytebuffer;
}
public static java.nio.IntBuffer c(int i)
{
return df.b(i << 2).asIntBuffer();
}
public static java.nio.FloatBuffer d(int i)
{
return df.b(i << 2).asFloatBuffer();
}
}

View File

@@ -0,0 +1,46 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class dg extends bh
{
private gy a;
private int h;
public dg(gy gy1)
{
h = 0;
a = gy1;
}
protected void a(char c, int i)
{
}
public void a()
{
e.clear();
}
public void g()
{
h++;
if(h % 20 == 0)
a.a(((fn) (new gi())));
if(a != null)
a.a();
}
protected void a(fk fk)
{
}
public void a(int i, int j, float f)
{
b(0);
a(g, "Downloading terrain", c / 2, d / 2 - 50, 0xffffff);
super.a(i, j, f);
}
}

View File

@@ -0,0 +1,65 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class dh extends ly
{
public static boolean a = false;
public dh(int i, int j)
{
super(i, j, gb.m);
}
public void e(cn cn1, int i, int j, int k)
{
cn1.h(i, j, k, bc);
}
public void a(cn cn1, int i, int j, int k, int l)
{
cn1.h(i, j, k, bc);
}
public void a(cn cn1, int i, int j, int k, java.util.Random random)
{
h(cn1, i, j, k);
}
private void h(cn cn1, int i, int j, int k)
{
int l = i;
int i1 = j;
int j1 = k;
if(dh.a_(cn1, l, i1 - 1, j1) && i1 >= 0)
{
ff ff1 = new ff(cn1, (float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, bc);
if(a)
while(!ff1.aA)
ff1.e_();
else
cn1.a(((kh) (ff1)));
}
}
public int a()
{
return 3;
}
public static boolean a_(cn cn1, int i, int j, int k)
{
int l = cn1.a(i, j, k);
if(l == 0)
return true;
if(l == ly.as.bc)
return true;
gb gb1 = ly.n[l].bn;
if(gb1 == gb.f)
return true;
return gb1 == gb.g;
}
}

View File

@@ -0,0 +1,201 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.Random;
public class di
{
protected static java.util.Random b = new Random();
public static di c[] = new di[32000];
public static di d = (new ms(0, 2)).a(82);
public static di e = (new y(1, 2)).a(98);
public static di f = (new ks(2, 2)).a(114);
public static di g = (new nx(3)).a(5);
public static di h = (new oj(4, 4)).a(10);
public static di i = (new jg(5)).a(21);
public static di j = (new di(6)).a(37);
public static di k = (new di(7)).a(7);
public static di l = (new di(8)).a(55);
public static di m = (new di(9)).a(23);
public static di n = (new di(10)).a(39);
public static di o = (new iu(11, 2)).a(66);
public static di p = (new iu(12, 0)).a(64);
public static di q = (new ms(13, 0)).a(80);
public static di r = (new y(14, 0)).a(96);
public static di s = (new ks(15, 0)).a(112);
public static di t = (new iu(16, 1)).a(65);
public static di u = (new ms(17, 1)).a(81);
public static di v = (new y(18, 1)).a(97);
public static di w = (new ks(19, 1)).a(113);
public static di x = (new iu(20, 3)).a(67);
public static di y = (new ms(21, 3)).a(83);
public static di z = (new y(22, 3)).a(99);
public static di A = (new ks(23, 3)).a(115);
public static di B = (new di(24)).a(53).d();
public static di C = (new di(25)).a(71);
public static di D = (new ap(26, 10)).a(72);
public static di E = (new iu(27, 0)).a(68);
public static di F = (new ms(28, 0)).a(84);
public static di G = (new y(29, 0)).a(100);
public static di H = (new ks(30, 0)).a(116);
public static di I = (new di(31)).a(8);
public static di J = (new di(32)).a(24);
public static di K = (new di(33)).a(40);
public static di L = (new fu(34, 0)).a(128);
public static di M = (new fu(35, 1)).a(129);
public static di N = (new fu(36, 2)).a(130);
public static di O = (new fu(37, 3)).a(131);
public static di P = (new fu(38, 1)).a(132);
public static di Q;
public static di R = (new di(40)).a(25);
public static di S = (new oj(41, 5)).a(41);
public static di T = (new mr(42, 0, 0, 0)).a(0);
public static di U = (new mr(43, 0, 0, 1)).a(16);
public static di V = (new mr(44, 0, 0, 2)).a(32);
public static di W = (new mr(45, 0, 0, 3)).a(48);
public static di X = (new mr(46, 1, 1, 0)).a(1);
public static di Y = (new mr(47, 1, 1, 1)).a(17);
public static di Z = (new mr(48, 1, 1, 2)).a(33);
public static di aa = (new mr(49, 1, 1, 3)).a(49);
public static di ab = (new mr(50, 2, 2, 0)).a(2);
public static di ac = (new mr(51, 2, 2, 1)).a(18);
public static di ad = (new mr(52, 2, 2, 2)).a(34);
public static di ae = (new mr(53, 2, 2, 3)).a(50);
public static di af = (new mr(54, 3, 3, 0)).a(3);
public static di ag = (new mr(55, 3, 3, 1)).a(19);
public static di ah = (new mr(56, 3, 3, 2)).a(35);
public static di ai = (new mr(57, 3, 3, 3)).a(51);
public static di aj = (new mr(58, 1, 4, 0)).a(4);
public static di ak = (new mr(59, 1, 4, 1)).a(20);
public static di al = (new mr(60, 1, 4, 2)).a(36);
public static di am = (new mr(61, 1, 4, 3)).a(52);
public static di an = (new di(62)).a(6);
public static di ao = (new oj(63, 3)).a(87);
public static di ap = (new oj(64, 8)).a(88);
public static di aq = (new od(65)).a(26);
public static di ar = (new oj(66, 42)).a(11);
public static di as = (new md(67)).a(42);
public static di at;
public static di au = (new ac(69, 0)).a(74);
public static di av;
public static di aw;
public static di ax = (new jo(72, 0)).a(135);
public static di ay = (new jw(73)).a(104);
public static di az;
public static di aA = (new ef(75)).a(56);
public static di aB = (new bp(76)).a(14);
public static di aC = (new me(77)).a(136);
public static di aD = (new di(78)).a(103);
public static di aE = (new ac(79, -1)).a(77);
public static di aF = (new di(80)).a(22);
public static di aG = (new di(81)).a(57);
public static di aH;
public static di aI = (new di(83)).a(58);
public static di aJ = (new di(84)).a(59);
public static di aK = (new di(85)).a(30);
public static di aL = (new jo(86, 1)).a(151);
public static di aM = (new jo(87, 2)).a(167);
public static di aN = (new di(88)).a(12);
public static di aO = (new di(89)).a(54);
public static di aP = (new di(90)).a(69);
public static di aQ = (new lg(2000, "13")).a(240);
public static di aR = (new lg(2001, "cat")).a(241);
public final int aS;
protected int aT;
protected int aU;
protected int aV;
protected boolean aW;
protected di(int i1)
{
aT = 64;
aU = 32;
aW = false;
aS = 256 + i1;
if(c[256 + i1] != null)
java.lang.System.out.println((new StringBuilder()).append("CONFLICT @ ").append(i1).toString());
c[256 + i1] = this;
}
public di a(int i1)
{
aV = i1;
return this;
}
public int a(ev ev)
{
return aV;
}
public boolean a(ev ev, dm dm, cn cn, int i1, int j1, int k1, int l1)
{
return false;
}
public float a(ev ev, ly ly1)
{
return 1.0F;
}
public ev a(ev ev, cn cn, dm dm)
{
return ev;
}
public int b()
{
return aT;
}
public int c()
{
return aU;
}
public void a(ev ev, ge ge)
{
}
public void a(ev ev, int i1, int j1, int k1, int l1)
{
}
public int a(kh kh)
{
return 1;
}
public boolean a(ly ly1)
{
return false;
}
public void b(ev ev, ge ge)
{
}
public di d()
{
aW = true;
return this;
}
public boolean a()
{
return aW;
}
static
{
Q = (new jn(39, ly.aA.bc)).a(9);
at = (new ec(68, gb.c)).a(43);
av = (new ac(70, ly.B.bc)).a(75);
aw = (new ac(71, ly.D.bc)).a(76);
az = (new ec(74, gb.e)).a(44);
aH = (new gf(82, ly.aY)).a(27);
}
}

View File

@@ -0,0 +1,37 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import org.lwjgl.opengl.GL11;
public class dj extends ak
{
private bc d;
public dj()
{
d = new bc();
b = 0.5F;
}
public void a(ff ff1, double d1, double d2, double d3,
float f, float f1)
{
org.lwjgl.opengl.GL11.glPushMatrix();
org.lwjgl.opengl.GL11.glTranslatef((float)d1, (float)d2, (float)d3);
a("/terrain.png");
ly ly1 = ly.n[ff1.a];
cn cn = ff1.i();
org.lwjgl.opengl.GL11.glDisable(2896);
d.a(ly1, cn, eo.b(ff1.ak), eo.b(ff1.al), eo.b(ff1.am));
org.lwjgl.opengl.GL11.glEnable(2896);
org.lwjgl.opengl.GL11.glPopMatrix();
}
public void a(kh kh, double d1, double d2, double d3, float f, float f1)
{
a((ff)kh, d1, d2, d3, f, f1);
}
}

View File

@@ -0,0 +1,49 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
public class dk
{
public final int a;
public final gh b;
public dk(gh gh1, int i)
{
b = gh1;
a = i;
}
public void a()
{
d();
}
public boolean a(ev ev)
{
return true;
}
public ev b()
{
return b.c(a);
}
public void b(ev ev)
{
b.a(a, ev);
d();
}
public int c()
{
return -1;
}
public void d()
{
b.j_();
}
}

View File

@@ -0,0 +1,55 @@
package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe
// Source File Name: SourceFile
import java.util.ArrayList;
public class dl
{
public static java.util.List a;
public java.lang.String b;
public java.lang.String c;
public java.lang.String d;
public dl(java.lang.String s, java.lang.String s1)
{
b = s;
c = s1;
}
static
{
a = ((java.util.List) (new ArrayList()));
a.add(((java.lang.Object) (ly.u)));
a.add(((java.lang.Object) (ly.x)));
a.add(((java.lang.Object) (ly.am)));
a.add(((java.lang.Object) (ly.w)));
a.add(((java.lang.Object) (ly.y)));
a.add(((java.lang.Object) (ly.K)));
a.add(((java.lang.Object) (ly.L)));
a.add(((java.lang.Object) (ly.ar)));
a.add(((java.lang.Object) (ly.al)));
a.add(((java.lang.Object) (ly.N)));
a.add(((java.lang.Object) (ly.ap)));
a.add(((java.lang.Object) (ly.z)));
a.add(((java.lang.Object) (ly.ae)));
a.add(((java.lang.Object) (ly.af)));
a.add(((java.lang.Object) (ly.ag)));
a.add(((java.lang.Object) (ly.ah)));
a.add(((java.lang.Object) (ly.F)));
a.add(((java.lang.Object) (ly.G)));
a.add(((java.lang.Object) (ly.M)));
a.add(((java.lang.Object) (ly.ac)));
a.add(((java.lang.Object) (ly.J)));
a.add(((java.lang.Object) (ly.I)));
a.add(((java.lang.Object) (ly.H)));
a.add(((java.lang.Object) (ly.aj)));
a.add(((java.lang.Object) (ly.ai)));
a.add(((java.lang.Object) (ly.ao)));
a.add(((java.lang.Object) (ly.an)));
a.add(((java.lang.Object) (ly.aq)));
java.lang.System.out.println(a.size());
}
}

Some files were not shown because too many files have changed in this diff Show More