Diff
checker
文本
文本
图像
文档
Excel
文件夹
Legal
Enterprise
桌面版
定价
登录
下载 Diffchecker 桌面版
比较文本
查找两个文本文件之间的差异
工具
历史
显示
视图
拆分
统一
实时编辑器
隐藏空白更改
折叠未更改行
关闭换行
比对精度
智能
语法
无
更改外观
处理
忽略
文本转换
转到第一个差异
编辑输入
Diffchecker Desktop
运行Diffchecker最安全的方式。获取Diffchecker桌面应用:您的差异永远不会离开您的电脑!
获取桌面版
正在加载此比较的其余部分。
Untitled diff
创建于
12年前
差异永不过期
清除
导出
分享
解释
951 删除
行
总计
删除
字符
总计
删除
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
972 行
全部复制
709 添加
行
总计
添加
字符
总计
添加
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
754 行
全部复制
import com.google.common.base.Charsets;
import com.google.common.base.Charsets;
复制
已复制
复制
已复制
import cpw.mods.fml.common.network.FMLNetworkHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.io.BufferedReader;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.math.BigInteger;
import java.net.InetAddress;
import java.net.InetAddress;
import java.net.Socket;
import java.net.Socket;
import java.net.URL;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.net.URLEncoder;
import java.security.PublicKey;
import java.security.PublicKey;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Iterator;
import java.util.List;
import java.util.List;
import java.util.Map;
import java.util.Map;
import java.util.Random;
import java.util.Random;
import javax.crypto.SecretKey;
import javax.crypto.SecretKey;
import net.minecraft.client.ClientBrandRetriever;
import net.minecraft.client.ClientBrandRetriever;
复制
已复制
复制
已复制
import net.minecraftforge.client.event.ClientChatReceivedEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.EventBus;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Keyboard;
复制
已复制
复制
已复制
@SideOnly(Side.CLIENT)
public class bcw
public class bcw
extends ez
extends ez
{
{
private boolean f;
private boolean f;
private cm g;
private cm g;
public String a;
public String a;
private atv h;
private atv h;
private bdd i;
private bdd i;
private boolean j;
private boolean j;
复制
已复制
复制
已复制
public amr b = new amr(
null);
public amr b = new amr(
(amc)
null);
private Map k = new HashMap();
private Map k = new HashMap();
public List c = new ArrayList();
public List c = new ArrayList();
public int d = 20;
public int d = 20;
private awe l;
private awe l;
复制
已复制
复制
已复制
Random e = new Random();
private static byte connectionCompatibilityLevel;
复制
已复制
复制
已复制
public bcw(atv
paramatv
, String par
am
Str
ing
, int
paramInt)
public bcw(atv
par1Minecraft
, String par
2
Str
, int
par3)
throws IOException
{
{
复制
已复制
复制
已复制
this.h =
paramatv
;
this.h =
par1Minecraft
;
Socket
localSocket
= new Socket(InetAddress.getByName(par
am
Str
ing
),
paramInt
);
Socket
socket
= new Socket(InetAddress.getByName(par
2
Str
),
par3
);
this.g = new co(
paramatv
.an(),
localSocket
, "Client", this);
this.g = new co(
par1Minecraft
.an(),
socket
, "Client", this);
FMLNetworkHandler.onClientConnectionToRemoteServer(this, par2Str, par3, this.g);
}
}
复制
已复制
复制
已复制
public bcw(atv
paramatv
, String par
am
Str
ing
, int
paramInt
, awe
paramawe)
public bcw(atv
par1Minecraft
, String par
2
Str
, int
par3
, awe
par4GuiScreen)
throws IOException
{
{
复制
已复制
复制
已复制
this.h =
paramatv
;
this.h =
par1Minecraft
;
this.l =
paramawe
;
this.l =
par4GuiScreen
;
Socket
localSocket
= new Socket(InetAddress.getByName(par
am
Str
ing
),
paramInt
);
Socket
socket
= new Socket(InetAddress.getByName(par
2
Str
),
par3
);
this.g = new co(
paramatv
.an(),
localSocket
, "Client", this);
this.g = new co(
par1Minecraft
.an(),
socket
, "Client", this);
FMLNetworkHandler.onClientConnectionToRemoteServer(this, par2Str, par3, this.g);
}
}
复制
已复制
复制
已复制
public bcw(atv
paramatv
, bkz
parambkz)
public bcw(atv
par1Minecraft
, bkz
par2IntegratedServer)
throws IOException
{
{
复制
已复制
复制
已复制
this.h =
paramatv
;
this.h =
par1Minecraft
;
this.g = new cn(
paramatv
.an(), this);
this.g = new cn(
par1Minecraft
.an(), this);
parambkz
.a().a((cn)this.g,
paramatv
.H().a());
par2IntegratedServer
.a().a((cn)this.g,
par1Minecraft
.H().a());
FMLNetworkHandler.onClientConnectionToIntegratedServer(this, par2IntegratedServer, this.g);
}
}
public void d()
public void d()
{
{
if (this.g != null) {
if (this.g != null) {
this.g.a();
this.g.a();
}
}
this.g = null;
this.g = null;
this.i = null;
this.i = null;
}
}
public void e()
public void e()
{
{
if ((!this.f) && (this.g != null)) {
if ((!this.f) && (this.g != null)) {
this.g.b();
this.g.b();
}
}
if (this.g != null) {
if (this.g != null) {
this.g.a();
this.g.a();
}
}
}
}
复制
已复制
复制
已复制
public void a(fj
paramfj
)
public void a(fj
par1Packet253ServerAuthData
)
{
{
复制
已复制
复制
已复制
String
str1
=
paramfj
.d().trim();
String
s
=
par1Packet253ServerAuthData
.d().trim();
已保存差异
原始文本
打开文件
import com.google.common.base.Charsets; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.math.BigInteger; import java.net.InetAddress; import java.net.Socket; import java.net.URL; import java.net.URLConnection; import java.net.URLEncoder; import java.security.PublicKey; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Random; import javax.crypto.SecretKey; import net.minecraft.client.ClientBrandRetriever; import org.lwjgl.input.Keyboard; public class bcw extends ez { private boolean f; private cm g; public String a; private atv h; private bdd i; private boolean j; public amr b = new amr(null); private Map k = new HashMap(); public List c = new ArrayList(); public int d = 20; private awe l; public bcw(atv paramatv, String paramString, int paramInt) { this.h = paramatv; Socket localSocket = new Socket(InetAddress.getByName(paramString), paramInt); this.g = new co(paramatv.an(), localSocket, "Client", this); } public bcw(atv paramatv, String paramString, int paramInt, awe paramawe) { this.h = paramatv; this.l = paramawe; Socket localSocket = new Socket(InetAddress.getByName(paramString), paramInt); this.g = new co(paramatv.an(), localSocket, "Client", this); } public bcw(atv paramatv, bkz parambkz) { this.h = paramatv; this.g = new cn(paramatv.an(), this); parambkz.a().a((cn)this.g, paramatv.H().a()); } public void d() { if (this.g != null) { this.g.a(); } this.g = null; this.i = null; } public void e() { if ((!this.f) && (this.g != null)) { this.g.b(); } if (this.g != null) { this.g.a(); } } public void a(fj paramfj) { String str1 = paramfj.d().trim(); PublicKey localPublicKey = paramfj.f(); SecretKey localSecretKey = lg.a(); if (!"-".equals(str1)) { String str2 = new BigInteger(lg.a(str1, localPublicKey, localSecretKey)).toString(16); String str3 = a(this.h.H().a(), this.h.H().b(), str2); if (!"ok".equalsIgnoreCase(str3)) { this.g.a("disconnect.loginFailedInfo", new Object[] { str3 }); return; } } c(new fy(localSecretKey, localPublicKey, paramfj.g())); } private String a(String paramString1, String paramString2, String paramString3) { try { URL localURL = new URL("http://session.minecraft.net/game/joinserver.jsp?user=" + a(paramString1) + "&sessionId=" + a(paramString2) + "&serverId=" + a(paramString3)); InputStream localInputStream = localURL.openConnection(this.h.I()).getInputStream(); BufferedReader localBufferedReader = new BufferedReader(new InputStreamReader(localInputStream)); String str = localBufferedReader.readLine(); localBufferedReader.close(); return str; } catch (IOException localIOException) { return localIOException.toString(); } } private static String a(String paramString) { return URLEncoder.encode(paramString, "UTF-8"); } public void a(fy paramfy) { c(new do(0)); } public void a(ep paramep) { this.h.c = new bdc(this.h, this); this.h.y.a(la.i, 1); this.i = new bdd(this, new acd(0L, paramep.d, false, paramep.c, paramep.b), paramep.e, paramep.f, this.h.C, this.h.an()); this.i.I = true; this.h.a(this.i); this.h.h.ar = paramep.e; this.h.a(new bdk(this)); this.h.h.k = paramep.a; this.d = paramep.h; this.h.c.a(paramep.d); this.h.u.c(); this.g.a(new ea("MC|Brand", ClientBrandRetriever.getClientModName().getBytes(Charsets.UTF_8))); } public void a(dd paramdd) { double d1 = paramdd.b / 32.0D; double d2 = paramdd.c / 32.0D; double d3 = paramdd.d / 32.0D; Object localObject1 = null; Object localObject2; if (paramdd.j == 10) { localObject1 = st.a(this.i, d1, d2, d3, paramdd.k); } else if (paramdd.j == 90) { localObject2 = a(paramdd.k); if ((localObject2 instanceof uf)) { localObject1 = new ul(this.i, d1, d2, d3, (uf)localObject2); } paramdd.k = 0; } else if (paramdd.j == 60) { localObject1 = new uh(this.i, d1, d2, d3); } else if (paramdd.j == 61) { localObject1 = new up(this.i, d1, d2, d3); } else if (paramdd.j == 71) { localObject1 = new od(this.i, (int)d1, (int)d2, (int)d3, paramdd.k); paramdd.k = 0; } else if (paramdd.j == 77) { localObject1 = new oe(this.i, (int)d1, (int)d2, (int)d3); paramdd.k = 0; } else if (paramdd.j == 65) { localObject1 = new us(this.i, d1, d2, d3); } else if (paramdd.j == 72) { localObject1 = new ui(this.i, d1, d2, d3); } else if (paramdd.j == 76) { localObject1 = new uk(this.i, d1, d2, d3, null); } else if (paramdd.j == 63) { localObject1 = new um(this.i, d1, d2, d3, paramdd.e / 8000.0D, paramdd.f / 8000.0D, paramdd.g / 8000.0D); paramdd.k = 0; } else if (paramdd.j == 64) { localObject1 = new uo(this.i, d1, d2, d3, paramdd.e / 8000.0D, paramdd.f / 8000.0D, paramdd.g / 8000.0D); paramdd.k = 0; } else if (paramdd.j == 66) { localObject1 = new uv(this.i, d1, d2, d3, paramdd.e / 8000.0D, paramdd.f / 8000.0D, paramdd.g / 8000.0D); paramdd.k = 0; } else if (paramdd.j == 62) { localObject1 = new ur(this.i, d1, d2, d3); } else if (paramdd.j == 73) { localObject1 = new uu(this.i, d1, d2, d3, paramdd.k); paramdd.k = 0; } else if (paramdd.j == 75) { localObject1 = new ut(this.i, d1, d2, d3); paramdd.k = 0; } else if (paramdd.j == 1) { localObject1 = new sq(this.i, d1, d2, d3); } else if (paramdd.j == 50) { localObject1 = new tc(this.i, d1, d2, d3, null); } else if (paramdd.j == 51) { localObject1 = new sj(this.i, d1, d2, d3); } else if (paramdd.j == 2) { localObject1 = new ss(this.i, d1, d2, d3); } else if (paramdd.j == 70) { localObject1 = new sr(this.i, d1, d2, d3, paramdd.k & 0xFFFF, paramdd.k >> 16); paramdd.k = 0; } if (localObject1 != null) { ((nn)localObject1).bZ = paramdd.b; ((nn)localObject1).ca = paramdd.c; ((nn)localObject1).cb = paramdd.d; ((nn)localObject1).B = (paramdd.h * 360 / 256.0F); ((nn)localObject1).A = (paramdd.i * 360 / 256.0F); localObject2 = ((nn)localObject1).ao(); if (localObject2 != null) { int m = paramdd.a - ((nn)localObject1).k; for (int n = 0; n < localObject2.length; n++) { localObject2[n].k += m; } } ((nn)localObject1).k = paramdd.a; this.i.a(paramdd.a, (nn)localObject1); if (paramdd.k > 0) { if (paramdd.j == 60) { nn localnn = a(paramdd.k); if ((localnn instanceof of)) { uh localuh = (uh)localObject1; localuh.c = localnn; } } ((nn)localObject1).h(paramdd.e / 8000.0D, paramdd.f / 8000.0D, paramdd.g / 8000.0D); } } } public void a(de paramde) { oa localoa = new oa(this.i, paramde.b, paramde.c, paramde.d, paramde.e); localoa.bZ = paramde.b; localoa.ca = paramde.c; localoa.cb = paramde.d; localoa.A = 0.0F; localoa.B = 0.0F; localoa.k = paramde.a; this.i.a(paramde.a, localoa); } public void a(df paramdf) { double d1 = paramdf.b / 32.0D; double d2 = paramdf.c / 32.0D; double d3 = paramdf.d / 32.0D; sp localsp = null; if (paramdf.e == 1) { localsp = new sp(this.i, d1, d2, d3); } if (localsp != null) { localsp.bZ = paramdf.b; localsp.ca = paramdf.c; localsp.cb = paramdf.d; localsp.A = 0.0F; localsp.B = 0.0F; localsp.k = paramdf.a; this.i.c(localsp); } } public void a(dh paramdh) { ol localol = new ol(this.i, paramdh.b, paramdh.c, paramdh.d, paramdh.e, paramdh.f); this.i.a(paramdh.a, localol); } public void a(fp paramfp) { nn localnn = a(paramfp.a); if (localnn == null) { return; } localnn.h(paramfp.b / 8000.0D, paramfp.c / 8000.0D, paramfp.d / 8000.0D); } public void a(fn paramfn) { nn localnn = a(paramfn.a); if ((localnn != null) && (paramfn.d() != null)) { localnn.v().a(paramfn.d()); } } public void a(di paramdi) { double d1 = paramdi.c / 32.0D; double d2 = paramdi.d / 32.0D; double d3 = paramdi.e / 32.0D; float f1 = paramdi.f * 360 / 256.0F; float f2 = paramdi.g * 360 / 256.0F; bey localbey = new bey(this.h.f, paramdi.b); localbey.r = (localbey.U = localbey.bZ = paramdi.c); localbey.s = (localbey.V = localbey.ca = paramdi.d); localbey.t = (localbey.W = localbey.cb = paramdi.e); int m = paramdi.h; if (m == 0) { localbey.bn.a[localbey.bn.c] = null; } else { localbey.bn.a[localbey.bn.c] = new ye(m, 1, 0); } localbey.a(d1, d2, d3, f1, f2); this.i.a(paramdi.a, localbey); List localList = paramdi.c(); if (localList != null) { localbey.v().a(localList); } } public void a(gb paramgb) { nn localnn = a(paramgb.a); if (localnn == null) { return; } localnn.bZ = paramgb.b; localnn.ca = paramgb.c; localnn.cb = paramgb.d; double d1 = localnn.bZ / 32.0D; double d2 = localnn.ca / 32.0D + 0.015625D; double d3 = localnn.cb / 32.0D; float f1 = paramgb.e * 360 / 256.0F; float f2 = paramgb.f * 360 / 256.0F; localnn.a(d1, d2, d3, f1, f2, 3); } public void a(fk paramfk) { if ((paramfk.a >= 0) && (paramfk.a < ud.i())) { this.h.h.bn.c = paramfk.a; } } public void a(eq parameq) { nn localnn = a(parameq.a); if (localnn == null) { return; } localnn.bZ += parameq.b; localnn.ca += parameq.c; localnn.cb += parameq.d; double d1 = localnn.bZ / 32.0D; double d2 = localnn.ca / 32.0D; double d3 = localnn.cb / 32.0D; float f1 = parameq.g ? parameq.e * 360 / 256.0F : localnn.A; float f2 = parameq.g ? parameq.f * 360 / 256.0F : localnn.B; localnn.a(d1, d2, d3, f1, f2, 3); } public void a(fi paramfi) { nn localnn = a(paramfi.a); if (localnn == null) { return; } float f1 = paramfi.b * 360 / 256.0F; localnn.e(f1); } public void a(ff paramff) { for (int m = 0; m < paramff.a.length; m++) { this.i.b(paramff.a[m]); } } public void a(eu parameu) { bdi localbdi = this.h.h; double d1 = localbdi.u; double d2 = localbdi.v; double d3 = localbdi.w; float f1 = localbdi.A; float f2 = localbdi.B; if (parameu.h) { d1 = parameu.a; d2 = parameu.b; d3 = parameu.c; } if (parameu.i) { f1 = parameu.e; f2 = parameu.f; } localbdi.X = 0.0F; localbdi.x = (localbdi.y = localbdi.z = 0.0D); localbdi.a(d1, d2, d3, f1, f2); parameu.a = localbdi.u; parameu.b = localbdi.E.b; parameu.c = localbdi.w; parameu.d = localbdi.v; this.g.a(parameu); if (!this.j) { this.h.h.r = this.h.h.u; this.h.h.s = this.h.h.v; this.h.h.t = this.h.h.w; this.j = true; this.h.a(null); } } Random e = new Random(); public void a(dn paramdn) { int m = paramdn.a * 16; int n = paramdn.b * 16; if (paramdn.c == null) { return; } DataInputStream localDataInputStream = new DataInputStream(new ByteArrayInputStream(paramdn.c)); try { for (int i1 = 0; i1 < paramdn.d; i1++) { int i2 = localDataInputStream.readShort(); int i3 = localDataInputStream.readShort(); int i4 = i3 >> 4 & 0xFFF; int i5 = i3 & 0xF; int i6 = i2 >> 12 & 0xF; int i7 = i2 >> 8 & 0xF; int i8 = i2 & 0xFF; this.i.g(i6 + m, i8, i7 + n, i4, i5); } } catch (IOException localIOException) {} } public void a(ej paramej) { if (paramej.e) { if (paramej.c != 0) { this.i.a(paramej.a, paramej.b, true); } else { this.i.a(paramej.a, paramej.b, false); return; } } this.i.c(paramej.a << 4, 0, paramej.b << 4, (paramej.a << 4) + 15, 256, (paramej.b << 4) + 15); adr localadr = this.i.e(paramej.a, paramej.b); if ((paramej.e) && (localadr == null)) { this.i.a(paramej.a, paramej.b, true); localadr = this.i.e(paramej.a, paramej.b); } if (localadr != null) { localadr.a(paramej.d(), paramej.c, paramej.d, paramej.e); this.i.g(paramej.a << 4, 0, paramej.b << 4, (paramej.a << 4) + 15, 256, (paramej.b << 4) + 15); if ((!paramej.e) || (!(this.i.t instanceof aek))) { localadr.n(); } } } public void a(gg paramgg) { this.i.g(paramgg.a, paramgg.b, paramgg.c, paramgg.d, paramgg.e); } public void a(eb parameb) { this.g.a("disconnect.kicked", new Object[0]); this.f = true; this.h.a(null); if (this.l != null) { this.h.a(new ayj(this.l, "disconnect.disconnected", "disconnect.genericReason", new Object[] { parameb.a })); } else { this.h.a(new bda(new avn(new blt()), "disconnect.disconnected", "disconnect.genericReason", new Object[] { parameb.a })); } } public void a(String paramString, Object[] paramArrayOfObject) { if (this.f) { return; } this.f = true; this.h.a(null); if (this.l != null) { this.h.a(new ayj(this.l, "disconnect.lost", paramString, paramArrayOfObject)); } else { this.h.a(new bda(new avn(new blt()), "disconnect.lost", paramString, paramArrayOfObject)); } } public void b(ey paramey) { if (this.f) { return; } this.g.a(paramey); this.g.d(); } public void c(ey paramey) { if (this.f) { return; } this.g.a(paramey); } public void a(ga paramga) { nn localnn = a(paramga.a); Object localObject = (of)a(paramga.b); if (localObject == null) { localObject = this.h.h; } if (localnn != null) { if ((localnn instanceof oa)) { this.i.a(localnn, "random.orb", 0.2F, ((this.e.nextFloat() - this.e.nextFloat()) * 0.7F + 1.0F) * 2.0F); } else { this.i.a(localnn, "random.pop", 0.2F, ((this.e.nextFloat() - this.e.nextFloat()) * 0.7F + 1.0F) * 2.0F); } this.h.k.a(new ber(this.h.f, localnn, (nn)localObject, -0.5F)); this.i.b(paramga.a); } } public void a(dm paramdm) { this.h.r.b().a(cv.c(paramdm.a).a(true)); } public void a(dj paramdj) { nn localnn = a(paramdj.a); if (localnn == null) { return; } Object localObject; if (paramdj.b == 1) { localObject = (of)localnn; ((of)localObject).aV(); } else if (paramdj.b == 2) { localnn.ad(); } else if (paramdj.b == 3) { localObject = (uf)localnn; ((uf)localObject).a(false, false, false); } else if (paramdj.b != 4) { if (paramdj.b == 6) { this.h.k.a(new bdq(this.h.f, localnn)); } else if (paramdj.b == 7) { localObject = new bdq(this.h.f, localnn, "magicCrit"); this.h.k.a((beg)localObject); } else if ((paramdj.b != 5) || (!(localnn instanceof bey))) {} } } public void a(ec paramec) { nn localnn = a(paramec.a); if (localnn == null) { return; } if (paramec.e == 0) { uf localuf = (uf)localnn; localuf.a(paramec.b, paramec.c, paramec.d); } } public void f() { this.f = true; this.g.a(); this.g.a("disconnect.closed", new Object[0]); } public void a(dg paramdg) { double d1 = paramdg.c / 32.0D; double d2 = paramdg.d / 32.0D; double d3 = paramdg.e / 32.0D; float f1 = paramdg.i * 360 / 256.0F; float f2 = paramdg.j * 360 / 256.0F; of localof = (of)nt.a(paramdg.b, this.h.f); localof.bZ = paramdg.c; localof.ca = paramdg.d; localof.cb = paramdg.e; localof.aP = (paramdg.k * 360 / 256.0F); nn[] arrayOfnn = localof.ao(); if (arrayOfnn != null) { int m = paramdg.a - localof.k; for (int n = 0; n < arrayOfnn.length; n++) { arrayOfnn[n].k += m; } } localof.k = paramdg.a; localof.a(d1, d2, d3, f1, f2); localof.x = (paramdg.f / 8000.0F); localof.y = (paramdg.g / 8000.0F); localof.z = (paramdg.h / 8000.0F); this.i.a(paramdg.a, localof); List localList = paramdg.c(); if (localList != null) { localof.v().a(localList); } } public void a(fx paramfx) { this.h.f.a(paramfx.a); this.h.f.b(paramfx.b); } public void a(fw paramfw) { this.h.h.a(new t(paramfw.a, paramfw.b, paramfw.c), true); this.h.f.N().a(paramfw.a, paramfw.b, paramfw.c); } public void a(fo paramfo) { Object localObject = a(paramfo.b); nn localnn = a(paramfo.c); if (paramfo.a == 0) { int m = 0; if (paramfo.b == this.h.h.k) { localObject = this.h.h; if ((localnn instanceof sq)) { ((sq)localnn).a(false); } m = (((nn)localObject).o == null) && (localnn != null) ? 1 : 0; } else if ((localnn instanceof sq)) { ((sq)localnn).a(true); } if (localObject == null) { return; } ((nn)localObject).a(localnn); if (m != 0) { aul localaul = this.h.u; this.h.r.a(bkb.a("mount.onboard", new Object[] { aul.c(localaul.Q.d) }), false); } } else if ((paramfo.a == 1) && (localObject != null) && ((localObject instanceof og))) { if (localnn != null) { ((og)localObject).b(localnn, false); } else { ((og)localObject).a(false, false); } } } public void a(ed paramed) { nn localnn = a(paramed.a); if (localnn != null) { localnn.a(paramed.b); } } private nn a(int paramInt) { if (paramInt == this.h.h.k) { return this.h.h; } return this.i.a(paramInt); } public void a(fs paramfs) { this.h.h.n(paramfs.a); this.h.h.bI().a(paramfs.b); this.h.h.bI().b(paramfs.c); } public void a(fr paramfr) { this.h.h.a(paramfr.a, paramfr.b, paramfr.c); } public void a(fh paramfh) { if (paramfh.a != this.h.h.ar) { this.j = false; atj localatj = this.i.X(); this.i = new bdd(this, new acd(0L, paramfh.d, false, this.h.f.N().t(), paramfh.e), paramfh.a, paramfh.b, this.h.C, this.h.an()); this.i.a(localatj); this.i.I = true; this.h.a(this.i); this.h.h.ar = paramfh.a; this.h.a(new bdk(this)); } this.h.a(paramfh.a); this.h.c.a(paramfh.d); } public void a(ee paramee) { abr localabr = new abr(this.h.f, null, paramee.a, paramee.b, paramee.c, paramee.d); localabr.h = paramee.e; localabr.a(true); this.h.h.x += paramee.d(); this.h.h.y += paramee.f(); this.h.h.z += paramee.g(); } public void a(dw paramdw) { bdi localbdi = this.h.h; switch (paramdw.b) { case 0: localbdi.a(new mu(paramdw.c, paramdw.e, paramdw.d)); localbdi.bp.d = paramdw.a; break; case 9: asi localasi = new asi(); if (paramdw.e) { localasi.a(paramdw.c); } localbdi.a(localasi); localbdi.bp.d = paramdw.a; break; case 2: asg localasg = new asg(); if (paramdw.e) { localasg.a(paramdw.c); } localbdi.a(localasg); localbdi.bp.d = paramdw.a; break; case 5: arx localarx = new arx(); if (paramdw.e) { localarx.a(paramdw.c); } localbdi.a(localarx); localbdi.bp.d = paramdw.a; break; case 10: asd localasd = new asd(); if (paramdw.e) { localasd.a(paramdw.c); } localbdi.a(localasd); localbdi.bp.d = paramdw.a; break; case 3: asc localasc = new asc(); if (paramdw.e) { localasc.a(paramdw.c); } localbdi.a(localasc); localbdi.bp.d = paramdw.a; break; case 1: localbdi.b(ls.c(localbdi.u), ls.c(localbdi.v), ls.c(localbdi.w)); localbdi.bp.d = paramdw.a; break; case 4: localbdi.a(ls.c(localbdi.u), ls.c(localbdi.v), ls.c(localbdi.w), paramdw.e ? paramdw.c : null); localbdi.bp.d = paramdw.a; break; case 6: localbdi.a(new tz(localbdi), paramdw.e ? paramdw.c : null); localbdi.bp.d = paramdw.a; break; case 7: arw localarw = new arw(); localbdi.a(localarw); if (paramdw.e) { localarw.a(paramdw.c); } localbdi.bp.d = paramdw.a; break; case 8: localbdi.c(ls.c(localbdi.u), ls.c(localbdi.v), ls.c(localbdi.w)); localbdi.bp.d = paramdw.a; break; case 11: nn localnn = a(paramdw.f); if ((localnn != null) && ((localnn instanceof rs))) { localbdi.a((rs)localnn, new uz(paramdw.c, paramdw.e, paramdw.d)); localbdi.bp.d = paramdw.a; } break; } } public void a(dz paramdz) { bdi localbdi = this.h.h; if (paramdz.a == -1) { localbdi.bn.b(paramdz.c); } else { int m = 0; Object localObject; if ((this.h.n instanceof axm)) { localObject = (axm)this.h.n; m = ((axm)localObject).g() != ww.m.a() ? 1 : 0; } if ((paramdz.a == 0) && (paramdz.b >= 36) && (paramdz.b < 45)) { localObject = localbdi.bo.a(paramdz.b).d(); if ((paramdz.c != null) && ( (localObject == null) || (((ye)localObject).b < paramdz.c.b))) { paramdz.c.c = 5; } localbdi.bo.a(paramdz.b, paramdz.c); } else if ((paramdz.a == localbdi.bp.d) && ((paramdz.a != 0) || (m == 0))) { localbdi.bp.a(paramdz.b, paramdz.c); } } } public void a(ds paramds) { uy localuy = null; bdi localbdi = this.h.h; if (paramds.a == 0) { localuy = localbdi.bo; } else if (paramds.a == localbdi.bp.d) { localuy = localbdi.bp; } if ((localuy != null) && (!paramds.c)) { c(new ds(paramds.a, paramds.b, true)); } } public void a(dx paramdx) { bdi localbdi = this.h.h; if (paramdx.a == 0) { localbdi.bo.a(paramdx.b); } else if (paramdx.a == localbdi.bp.d) { localbdi.bp.a(paramdx.b); } } public void a(gd paramgd) { asp localasp = this.i.r(paramgd.b, paramgd.c, paramgd.d); if (localasp != null) { this.h.h.a(localasp); } else if (paramgd.a == 0) { asm localasm = new asm(); localasm.b(this.i); localasm.l = paramgd.b; localasm.m = paramgd.c; localasm.n = paramgd.d; this.h.h.a(localasm); } } public void a(fz paramfz) { int m = 0; if (this.h.f.f(paramfz.a, paramfz.b, paramfz.c)) { asp localasp = this.h.f.r(paramfz.a, paramfz.b, paramfz.c); if ((localasp instanceof asm)) { asm localasm = (asm)localasp; if (localasm.a()) { for (int n = 0; n < 4; n++) { localasm.a[n] = paramfz.d[n]; } localasm.e(); } m = 1; } } if ((m == 0) && (this.h.h != null)) { this.h.h.a(cv.d("Unable to locate sign at " + paramfz.a + ", " + paramfz.b + ", " + paramfz.c)); } } public void a(ge paramge) { if (this.h.f.f(paramge.a, paramge.b, paramge.c)) { asp localasp = this.h.f.r(paramge.a, paramge.b, paramge.c); if (localasp != null) { if ((paramge.d == 1) && ((localasp instanceof asj))) { localasp.a(paramge.e); } else if ((paramge.d == 2) && ((localasp instanceof arz))) { localasp.a(paramge.e); } else if ((paramge.d == 3) && ((localasp instanceof arw))) { localasp.a(paramge.e); } else if ((paramge.d == 4) && ((localasp instanceof asn))) { localasp.a(paramge.e); } } } } public void a(dy paramdy) { bdi localbdi = this.h.h; a(paramdy); if ((localbdi.bp != null) && (localbdi.bp.d == paramdy.a)) { localbdi.bp.b(paramdy.b, paramdy.c); } } public void a(fq paramfq) { nn localnn = a(paramfq.a); if (localnn != null) { localnn.c(paramfq.b, paramfq.d()); } } public void a(dv paramdv) { this.h.h.g(); } public void a(gf paramgf) { this.h.f.d(paramgf.a, paramgf.b, paramgf.c, paramgf.f, paramgf.d, paramgf.e); } public void a(gc paramgc) { this.h.f.f(paramgc.d(), paramgc.f(), paramgc.g(), paramgc.h(), paramgc.i()); } public void a(el paramel) { for (int m = 0; m < paramel.d(); m++) { int n = paramel.a(m); int i1 = paramel.b(m); this.i.a(n, i1, true); this.i.c(n << 4, 0, i1 << 4, (n << 4) + 15, 256, (i1 << 4) + 15); adr localadr = this.i.e(n, i1); if (localadr == null) { this.i.a(n, i1, true); localadr = this.i.e(n, i1); } if (localadr != null) { localadr.a(paramel.c(m), paramel.a[m], paramel.b[m], true); this.i.g(n << 4, 0, i1 << 4, (n << 4) + 15, 256, (i1 << 4) + 15); if (!(this.i.t instanceof aek)) { localadr.n(); } } } } public boolean b() { return (this.h != null) && (this.h.f != null) && (this.h.h != null) && (this.i != null); } public void a(ef paramef) { bdi localbdi = this.h.h; int m = paramef.b; int n = paramef.c; if ((m >= 0) && (m < ef.a.length) && (ef.a[m] != null)) { localbdi.a(ef.a[m]); } if (m == 1) { this.i.N().b(true); this.i.j(0.0F); } else if (m == 2) { this.i.N().b(false); this.i.j(1.0F); } else if (m == 3) { this.h.c.a(ace.a(n)); } else if (m == 4) { this.h.a(new azr()); } else if (m == 5) { aul localaul = this.h.u; if (n == 0) { this.h.a(new avd()); } else if (n == 101) { this.h.r.b().a("demo.help.movement", new Object[] { Keyboard.getKeyName(localaul.I.d), Keyboard.getKeyName(localaul.J.d), Keyboard.getKeyName(localaul.K.d), Keyboard.getKeyName(localaul.L.d) }); } else if (n == 102) { this.h.r.b().a("demo.help.jump", new Object[] { Keyboard.getKeyName(localaul.M.d) }); } else if (n == 103) { this.h.r.b().a("demo.help.inventory", new Object[] { Keyboard.getKeyName(localaul.N.d) }); } } else if (m == 6) { this.i.a(localbdi.u, localbdi.v + localbdi.f(), localbdi.w, "random.successful_hit", 0.18F, 0.45F, false); } } public void a(dr paramdr) { if (paramdr.a == yc.bf.cv) { yh.a(paramdr.b, this.h.f).a(paramdr.c); } else { this.h.an().b("Unknown itemid: " + paramdr.b); } } public void a(em paramem) { if (paramem.d()) { this.h.f.d(paramem.a, paramem.c, paramem.d, paramem.e, paramem.b); } else { this.h.f.e(paramem.a, paramem.c, paramem.d, paramem.e, paramem.b); } } public void a(dk paramdk) { this.h.h.b(la.a(paramdk.a), paramdk.b); } public void a(gj paramgj) { nn localnn = a(paramgj.a); if (!(localnn instanceof of)) { return; } nj localnj = new nj(paramgj.b, paramgj.d, paramgj.c); localnj.b(paramgj.d()); ((of)localnn).c(localnj); } public void a(fg paramfg) { nn localnn = a(paramfg.a); if (!(localnn instanceof of)) { return; } ((of)localnn).j(paramfg.b); } public boolean a() { return false; } public void a(fd paramfd) { bdj localbdj = (bdj)this.k.get(paramfd.a); if ((localbdj == null) && (paramfd.b)) { localbdj = new bdj(paramfd.a); this.k.put(paramfd.a, localbdj); this.c.add(localbdj); } if ((localbdj != null) && (!paramfd.b)) { this.k.remove(paramfd.a); this.c.remove(localbdj); } if ((paramfd.b) && (localbdj != null)) { localbdj.b = paramfd.c; } } public void a(ei paramei) { c(new ei(paramei.a)); } public void a(fa paramfa) { bdi localbdi = this.h.h; localbdi.bG.b = paramfa.f(); localbdi.bG.d = paramfa.h(); localbdi.bG.a = paramfa.d(); localbdi.bG.c = paramfa.g(); localbdi.bG.a(paramfa.i()); localbdi.bG.b(paramfa.j()); } public void a(dl paramdl) { String[] arrayOfString = paramdl.d().split(""); if ((this.h.n instanceof auw)) { auw localauw = (auw)this.h.n; localauw.a(arrayOfString); } } public void a(eo parameo) { this.h.f.a(parameo.f(), parameo.g(), parameo.h(), parameo.d(), parameo.i(), parameo.j(), false); } public void a(ea paramea) { if ("MC|TrList".equals(paramea.a)) { DataInputStream localDataInputStream = new DataInputStream(new ByteArrayInputStream(paramea.c)); try { int m = localDataInputStream.readInt(); awe localawe = this.h.n; if ((localawe != null) && ((localawe instanceof axw)) && (m == this.h.h.bp.d)) { abk localabk = ((axw)localawe).g(); abm localabm = abm.a(localDataInputStream); localabk.a(localabm); } } catch (IOException localIOException) { localIOException.printStackTrace(); } } else if ("MC|Brand".equals(paramea.a)) { this.h.h.c(new String(paramea.c, Charsets.UTF_8)); } } public void a(ft paramft) { atj localatj = this.i.X(); ate localate; if (paramft.c == 0) { localate = localatj.a(paramft.a, ato.b); localate.a(paramft.b); } else { localate = localatj.b(paramft.a); if (paramft.c == 1) { localatj.k(localate); } else if (paramft.c == 2) { localate.a(paramft.b); } } } public void a(fv paramfv) { atj localatj = this.i.X(); ate localate = localatj.b(paramfv.b); if (paramfv.d == 0) { atg localatg = localatj.a(paramfv.a, localate); localatg.c(paramfv.c); } else if (paramfv.d == 1) { localatj.c(paramfv.a); } } public void a(fm paramfm) { atj localatj = this.i.X(); if (paramfm.b.length() == 0) { localatj.a(paramfm.a, null); } else { ate localate = localatj.b(paramfm.b); localatj.a(paramfm.a, localate); } } public void a(fu paramfu) { atj localatj = this.i.X(); atf localatf; if (paramfu.f == 0) { localatf = localatj.f(paramfu.a); } else { localatf = localatj.e(paramfu.a); } if ((paramfu.f == 0) || (paramfu.f == 2)) { localatf.a(paramfu.b); localatf.b(paramfu.c); localatf.c(paramfu.d); localatf.a(paramfu.g); } Iterator localIterator; if ((paramfu.f == 0) || (paramfu.f == 3)) { for (localIterator = paramfu.e.iterator(); localIterator.hasNext();) { str = (String)localIterator.next(); localatj.a(str, localatf); } } String str; if (paramfu.f == 4) { for (localIterator = paramfu.e.iterator(); localIterator.hasNext();) { str = (String)localIterator.next(); localatj.b(str, localatf); } } if (paramfu.f == 1) { localatj.d(localatf); } } public void a(en paramen) { for (int m = 0; m < paramen.m(); m++) { double d1 = this.e.nextGaussian() * paramen.i(); double d2 = this.e.nextGaussian() * paramen.j(); double d3 = this.e.nextGaussian() * paramen.k(); double d4 = this.e.nextGaussian() * paramen.l(); double d5 = this.e.nextGaussian() * paramen.l(); double d6 = this.e.nextGaussian() * paramen.l(); this.i.a(paramen.d(), paramen.f() + d1, paramen.g() + d2, paramen.h() + d3, d4, d5, d6); } } public void a(gh paramgh) { nn localnn = a(paramgh.d()); if (localnn == null) { return; } if (!(localnn instanceof of)) { throw new IllegalStateException("Server tried to update attributes of a non-living entity (actually: " + localnn + ")"); } ov localov = ((of)localnn).aX(); for (gi localgi : paramgh.f()) { localos = localov.a(localgi.a()); if (localos == null) { localos = localov.b(new oy(localgi.a(), 0.0D, 2.225073858507201E-308D, 1.7976931348623157E+308D)); } localos.a(localgi.b()); localos.d(); for (ot localot : localgi.c()) { localos.a(localot); } } os localos; } public cm g() { return this.g; } }
更改后文本
打开文件
import com.google.common.base.Charsets; import cpw.mods.fml.common.network.FMLNetworkHandler; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.math.BigInteger; import java.net.InetAddress; import java.net.Socket; import java.net.URL; import java.net.URLConnection; import java.net.URLEncoder; import java.security.PublicKey; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Random; import javax.crypto.SecretKey; import net.minecraft.client.ClientBrandRetriever; import net.minecraftforge.client.event.ClientChatReceivedEvent; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.EventBus; import org.lwjgl.input.Keyboard; @SideOnly(Side.CLIENT) public class bcw extends ez { private boolean f; private cm g; public String a; private atv h; private bdd i; private boolean j; public amr b = new amr((amc)null); private Map k = new HashMap(); public List c = new ArrayList(); public int d = 20; private awe l; Random e = new Random(); private static byte connectionCompatibilityLevel; public bcw(atv par1Minecraft, String par2Str, int par3) throws IOException { this.h = par1Minecraft; Socket socket = new Socket(InetAddress.getByName(par2Str), par3); this.g = new co(par1Minecraft.an(), socket, "Client", this); FMLNetworkHandler.onClientConnectionToRemoteServer(this, par2Str, par3, this.g); } public bcw(atv par1Minecraft, String par2Str, int par3, awe par4GuiScreen) throws IOException { this.h = par1Minecraft; this.l = par4GuiScreen; Socket socket = new Socket(InetAddress.getByName(par2Str), par3); this.g = new co(par1Minecraft.an(), socket, "Client", this); FMLNetworkHandler.onClientConnectionToRemoteServer(this, par2Str, par3, this.g); } public bcw(atv par1Minecraft, bkz par2IntegratedServer) throws IOException { this.h = par1Minecraft; this.g = new cn(par1Minecraft.an(), this); par2IntegratedServer.a().a((cn)this.g, par1Minecraft.H().a()); FMLNetworkHandler.onClientConnectionToIntegratedServer(this, par2IntegratedServer, this.g); } public void d() { if (this.g != null) { this.g.a(); } this.g = null; this.i = null; } public void e() { if ((!this.f) && (this.g != null)) { this.g.b(); } if (this.g != null) { this.g.a(); } } public void a(fj par1Packet253ServerAuthData) { String s = par1Packet253ServerAuthData.d().trim(); PublicKey publickey = par1Packet253ServerAuthData.f(); SecretKey secretkey = lg.a(); if (!"-".equals(s)) { String s1 = new BigInteger(lg.a(s, publickey, secretkey)).toString(16); String s2 = a(this.h.H().a(), this.h.H().b(), s1); if (!"ok".equalsIgnoreCase(s2)) { this.g.a("disconnect.loginFailedInfo", new Object[] { s2 }); return; } } c(new fy(secretkey, publickey, par1Packet253ServerAuthData.g())); } private String a(String par1Str, String par2Str, String par3Str) { try { URL url = new URL("http://alexandrage.dyndns.org/site/joinserver.php?user=" + a(par1Str) + "&sessionId=" + a(par2Str) + "&serverId=" + a(par3Str)); InputStream inputstream = url.openConnection(this.h.I()).getInputStream(); BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(inputstream)); String s3 = bufferedreader.readLine(); bufferedreader.close(); return s3; } catch (IOException ioexception) { return ioexception.toString(); } } private static String a(String par0Str) throws IOException { return URLEncoder.encode(par0Str, "UTF-8"); } public void a(fy par1Packet252SharedKey) { c(FMLNetworkHandler.getFMLFakeLoginPacket()); c(new do(0)); } public void a(ep par1Packet1Login) { this.h.c = new bdc(this.h, this); this.h.y.a(la.i, 1); this.i = new bdd(this, new acd(0L, par1Packet1Login.d, false, par1Packet1Login.c, par1Packet1Login.b), par1Packet1Login.e, par1Packet1Login.f, this.h.C, this.h.an()); this.i.I = true; this.h.a(this.i); this.h.h.ar = par1Packet1Login.e; this.h.a(new bdk(this)); this.h.h.k = par1Packet1Login.a; this.d = par1Packet1Login.h; this.h.c.a(par1Packet1Login.d); FMLNetworkHandler.onConnectionEstablishedToServer(this, this.g, par1Packet1Login); this.h.u.c(); this.g.a(new ea("MC|Brand", ClientBrandRetriever.getClientModName().getBytes(Charsets.UTF_8))); } public void a(dd par1Packet23VehicleSpawn) { double d0 = par1Packet23VehicleSpawn.b / 32.0D; double d1 = par1Packet23VehicleSpawn.c / 32.0D; double d2 = par1Packet23VehicleSpawn.d / 32.0D; Object object = null; if (par1Packet23VehicleSpawn.j == 10) { object = st.a(this.i, d0, d1, d2, par1Packet23VehicleSpawn.k); } else if (par1Packet23VehicleSpawn.j == 90) { nn entity = a(par1Packet23VehicleSpawn.k); if ((entity instanceof uf)) { object = new ul(this.i, d0, d1, d2, (uf)entity); } par1Packet23VehicleSpawn.k = 0; } else if (par1Packet23VehicleSpawn.j == 60) { object = new uh(this.i, d0, d1, d2); } else if (par1Packet23VehicleSpawn.j == 61) { object = new up(this.i, d0, d1, d2); } else if (par1Packet23VehicleSpawn.j == 71) { object = new od(this.i, (int)d0, (int)d1, (int)d2, par1Packet23VehicleSpawn.k); par1Packet23VehicleSpawn.k = 0; } else if (par1Packet23VehicleSpawn.j == 77) { object = new oe(this.i, (int)d0, (int)d1, (int)d2); par1Packet23VehicleSpawn.k = 0; } else if (par1Packet23VehicleSpawn.j == 65) { object = new us(this.i, d0, d1, d2); } else if (par1Packet23VehicleSpawn.j == 72) { object = new ui(this.i, d0, d1, d2); } else if (par1Packet23VehicleSpawn.j == 76) { object = new uk(this.i, d0, d1, d2, (ye)null); } else if (par1Packet23VehicleSpawn.j == 63) { object = new um(this.i, d0, d1, d2, par1Packet23VehicleSpawn.e / 8000.0D, par1Packet23VehicleSpawn.f / 8000.0D, par1Packet23VehicleSpawn.g / 8000.0D); par1Packet23VehicleSpawn.k = 0; } else if (par1Packet23VehicleSpawn.j == 64) { object = new uo(this.i, d0, d1, d2, par1Packet23VehicleSpawn.e / 8000.0D, par1Packet23VehicleSpawn.f / 8000.0D, par1Packet23VehicleSpawn.g / 8000.0D); par1Packet23VehicleSpawn.k = 0; } else if (par1Packet23VehicleSpawn.j == 66) { object = new uv(this.i, d0, d1, d2, par1Packet23VehicleSpawn.e / 8000.0D, par1Packet23VehicleSpawn.f / 8000.0D, par1Packet23VehicleSpawn.g / 8000.0D); par1Packet23VehicleSpawn.k = 0; } else if (par1Packet23VehicleSpawn.j == 62) { object = new ur(this.i, d0, d1, d2); } else if (par1Packet23VehicleSpawn.j == 73) { object = new uu(this.i, d0, d1, d2, par1Packet23VehicleSpawn.k); par1Packet23VehicleSpawn.k = 0; } else if (par1Packet23VehicleSpawn.j == 75) { object = new ut(this.i, d0, d1, d2); par1Packet23VehicleSpawn.k = 0; } else if (par1Packet23VehicleSpawn.j == 1) { object = new sq(this.i, d0, d1, d2); } else if (par1Packet23VehicleSpawn.j == 50) { object = new tc(this.i, d0, d1, d2, (of)null); } else if (par1Packet23VehicleSpawn.j == 51) { object = new sj(this.i, d0, d1, d2); } else if (par1Packet23VehicleSpawn.j == 2) { object = new ss(this.i, d0, d1, d2); } else if (par1Packet23VehicleSpawn.j == 70) { object = new sr(this.i, d0, d1, d2, par1Packet23VehicleSpawn.k & 0xFFFF, par1Packet23VehicleSpawn.k >> 16); par1Packet23VehicleSpawn.k = 0; } if (object != null) { ((nn)object).bZ = par1Packet23VehicleSpawn.b; ((nn)object).ca = par1Packet23VehicleSpawn.c; ((nn)object).cb = par1Packet23VehicleSpawn.d; ((nn)object).B = (par1Packet23VehicleSpawn.h * 360 / 256.0F); ((nn)object).A = (par1Packet23VehicleSpawn.i * 360 / 256.0F); nn[] aentity = ((nn)object).ao(); if (aentity != null) { int i = par1Packet23VehicleSpawn.a - ((nn)object).k; for (int j = 0; j < aentity.length; j++) { aentity[j].k += i; } } ((nn)object).k = par1Packet23VehicleSpawn.a; this.i.a(par1Packet23VehicleSpawn.a, (nn)object); if (par1Packet23VehicleSpawn.k > 0) { if (par1Packet23VehicleSpawn.j == 60) { nn entity1 = a(par1Packet23VehicleSpawn.k); if ((entity1 instanceof of)) { uh entityarrow = (uh)object; entityarrow.c = entity1; } } ((nn)object).h(par1Packet23VehicleSpawn.e / 8000.0D, par1Packet23VehicleSpawn.f / 8000.0D, par1Packet23VehicleSpawn.g / 8000.0D); } } } public void a(de par1Packet26EntityExpOrb) { oa entityxporb = new oa(this.i, par1Packet26EntityExpOrb.b, par1Packet26EntityExpOrb.c, par1Packet26EntityExpOrb.d, par1Packet26EntityExpOrb.e); entityxporb.bZ = par1Packet26EntityExpOrb.b; entityxporb.ca = par1Packet26EntityExpOrb.c; entityxporb.cb = par1Packet26EntityExpOrb.d; entityxporb.A = 0.0F; entityxporb.B = 0.0F; entityxporb.k = par1Packet26EntityExpOrb.a; this.i.a(par1Packet26EntityExpOrb.a, entityxporb); } public void a(df par1Packet71Weather) { double d0 = par1Packet71Weather.b / 32.0D; double d1 = par1Packet71Weather.c / 32.0D; double d2 = par1Packet71Weather.d / 32.0D; sp entitylightningbolt = null; if (par1Packet71Weather.e == 1) { entitylightningbolt = new sp(this.i, d0, d1, d2); } if (entitylightningbolt != null) { entitylightningbolt.bZ = par1Packet71Weather.b; entitylightningbolt.ca = par1Packet71Weather.c; entitylightningbolt.cb = par1Packet71Weather.d; entitylightningbolt.A = 0.0F; entitylightningbolt.B = 0.0F; entitylightningbolt.k = par1Packet71Weather.a; this.i.c(entitylightningbolt); } } public void a(dh par1Packet25EntityPainting) { ol entitypainting = new ol(this.i, par1Packet25EntityPainting.b, par1Packet25EntityPainting.c, par1Packet25EntityPainting.d, par1Packet25EntityPainting.e, par1Packet25EntityPainting.f); this.i.a(par1Packet25EntityPainting.a, entitypainting); } public void a(fp par1Packet28EntityVelocity) { nn entity = a(par1Packet28EntityVelocity.a); if (entity != null) { entity.h(par1Packet28EntityVelocity.b / 8000.0D, par1Packet28EntityVelocity.c / 8000.0D, par1Packet28EntityVelocity.d / 8000.0D); } } public void a(fn par1Packet40EntityMetadata) { nn entity = a(par1Packet40EntityMetadata.a); if ((entity != null) && (par1Packet40EntityMetadata.d() != null)) { entity.v().a(par1Packet40EntityMetadata.d()); } } public void a(di par1Packet20NamedEntitySpawn) { double d0 = par1Packet20NamedEntitySpawn.c / 32.0D; double d1 = par1Packet20NamedEntitySpawn.d / 32.0D; double d2 = par1Packet20NamedEntitySpawn.e / 32.0D; float f = par1Packet20NamedEntitySpawn.f * 360 / 256.0F; float f1 = par1Packet20NamedEntitySpawn.g * 360 / 256.0F; bey entityotherplayermp = new bey(this.h.f, par1Packet20NamedEntitySpawn.b); entityotherplayermp.r = (entityotherplayermp.U = entityotherplayermp.bZ = par1Packet20NamedEntitySpawn.c); entityotherplayermp.s = (entityotherplayermp.V = entityotherplayermp.ca = par1Packet20NamedEntitySpawn.d); entityotherplayermp.t = (entityotherplayermp.W = entityotherplayermp.cb = par1Packet20NamedEntitySpawn.e); int i = par1Packet20NamedEntitySpawn.h; if (i == 0) { entityotherplayermp.bn.a[entityotherplayermp.bn.c] = null; } else { entityotherplayermp.bn.a[entityotherplayermp.bn.c] = new ye(i, 1, 0); } entityotherplayermp.a(d0, d1, d2, f, f1); this.i.a(par1Packet20NamedEntitySpawn.a, entityotherplayermp); List list = par1Packet20NamedEntitySpawn.c(); if (list != null) { entityotherplayermp.v().a(list); } } public void a(gb par1Packet34EntityTeleport) { nn entity = a(par1Packet34EntityTeleport.a); if (entity != null) { entity.bZ = par1Packet34EntityTeleport.b; entity.ca = par1Packet34EntityTeleport.c; entity.cb = par1Packet34EntityTeleport.d; double d0 = entity.bZ / 32.0D; double d1 = entity.ca / 32.0D + 0.015625D; double d2 = entity.cb / 32.0D; float f = par1Packet34EntityTeleport.e * 360 / 256.0F; float f1 = par1Packet34EntityTeleport.f * 360 / 256.0F; entity.a(d0, d1, d2, f, f1, 3); } } public void a(fk par1Packet16BlockItemSwitch) { if ((par1Packet16BlockItemSwitch.a >= 0) && (par1Packet16BlockItemSwitch.a < ud.i())) { this.h.h.bn.c = par1Packet16BlockItemSwitch.a; } } public void a(eq par1Packet30Entity) { nn entity = a(par1Packet30Entity.a); if (entity != null) { entity.bZ += par1Packet30Entity.b; entity.ca += par1Packet30Entity.c; entity.cb += par1Packet30Entity.d; double d0 = entity.bZ / 32.0D; double d1 = entity.ca / 32.0D; double d2 = entity.cb / 32.0D; float f = par1Packet30Entity.g ? par1Packet30Entity.e * 360 / 256.0F : entity.A; float f1 = par1Packet30Entity.g ? par1Packet30Entity.f * 360 / 256.0F : entity.B; entity.a(d0, d1, d2, f, f1, 3); } } public void a(fi par1Packet35EntityHeadRotation) { nn entity = a(par1Packet35EntityHeadRotation.a); if (entity != null) { float f = par1Packet35EntityHeadRotation.b * 360 / 256.0F; entity.e(f); } } public void a(ff par1Packet29DestroyEntity) { for (int i = 0; i < par1Packet29DestroyEntity.a.length; i++) { this.i.b(par1Packet29DestroyEntity.a[i]); } } public void a(eu par1Packet10Flying) { bdi entityclientplayermp = this.h.h; double d0 = entityclientplayermp.u; double d1 = entityclientplayermp.v; double d2 = entityclientplayermp.w; float f = entityclientplayermp.A; float f1 = entityclientplayermp.B; if (par1Packet10Flying.h) { d0 = par1Packet10Flying.a; d1 = par1Packet10Flying.b; d2 = par1Packet10Flying.c; } if (par1Packet10Flying.i) { f = par1Packet10Flying.e; f1 = par1Packet10Flying.f; } entityclientplayermp.X = 0.0F; entityclientplayermp.x = (entityclientplayermp.y = entityclientplayermp.z = 0.0D); entityclientplayermp.a(d0, d1, d2, f, f1); par1Packet10Flying.a = entityclientplayermp.u; par1Packet10Flying.b = entityclientplayermp.E.b; par1Packet10Flying.c = entityclientplayermp.w; par1Packet10Flying.d = entityclientplayermp.v; this.g.a(par1Packet10Flying); if (!this.j) { this.h.h.r = this.h.h.u; this.h.h.s = this.h.h.v; this.h.h.t = this.h.h.w; this.j = true; this.h.a((awe)null); } } public void a(dn par1Packet52MultiBlockChange) { int i = par1Packet52MultiBlockChange.a * 16; int j = par1Packet52MultiBlockChange.b * 16; if (par1Packet52MultiBlockChange.c != null) { DataInputStream datainputstream = new DataInputStream(new ByteArrayInputStream(par1Packet52MultiBlockChange.c)); try { for (int k = 0; k < par1Packet52MultiBlockChange.d; k++) { short short1 = datainputstream.readShort(); short short2 = datainputstream.readShort(); int l = short2 >> 4 & 0xFFF; int i1 = short2 & 0xF; int j1 = short1 >> 12 & 0xF; int k1 = short1 >> 8 & 0xF; int l1 = short1 & 0xFF; this.i.g(j1 + i, l1, k1 + j, l, i1); } } catch (IOException ioexception) {} } } public void a(ej par1Packet51MapChunk) { if (par1Packet51MapChunk.e) { if (par1Packet51MapChunk.c == 0) { this.i.a(par1Packet51MapChunk.a, par1Packet51MapChunk.b, false); return; } this.i.a(par1Packet51MapChunk.a, par1Packet51MapChunk.b, true); } this.i.c(par1Packet51MapChunk.a << 4, 0, par1Packet51MapChunk.b << 4, (par1Packet51MapChunk.a << 4) + 15, 256, (par1Packet51MapChunk.b << 4) + 15); adr chunk = this.i.e(par1Packet51MapChunk.a, par1Packet51MapChunk.b); if ((par1Packet51MapChunk.e) && (chunk == null)) { this.i.a(par1Packet51MapChunk.a, par1Packet51MapChunk.b, true); chunk = this.i.e(par1Packet51MapChunk.a, par1Packet51MapChunk.b); } if (chunk != null) { chunk.a(par1Packet51MapChunk.d(), par1Packet51MapChunk.c, par1Packet51MapChunk.d, par1Packet51MapChunk.e); this.i.g(par1Packet51MapChunk.a << 4, 0, par1Packet51MapChunk.b << 4, (par1Packet51MapChunk.a << 4) + 15, 256, (par1Packet51MapChunk.b << 4) + 15); if ((!par1Packet51MapChunk.e) || (!(this.i.t instanceof aek))) { chunk.n(); } } } public void a(gg par1Packet53BlockChange) { this.i.g(par1Packet53BlockChange.a, par1Packet53BlockChange.b, par1Packet53BlockChange.c, par1Packet53BlockChange.d, par1Packet53BlockChange.e); } public void a(eb par1Packet255KickDisconnect) { this.g.a("disconnect.kicked", new Object[] { par1Packet255KickDisconnect.a }); this.f = true; this.h.a((bdd)null); if (this.l != null) { this.h.a(new ayj(this.l, "disconnect.disconnected", "disconnect.genericReason", new Object[] { par1Packet255KickDisconnect.a })); } else { this.h.a(new bda(new avn(new blt()), "disconnect.disconnected", "disconnect.genericReason", new Object[] { par1Packet255KickDisconnect.a })); } } public void a(String par1Str, Object[] par2ArrayOfObj) { if (!this.f) { this.f = true; this.h.a((bdd)null); if (this.l != null) { this.h.a(new ayj(this.l, "disconnect.lost", par1Str, par2ArrayOfObj)); } else { this.h.a(new bda(new avn(new blt()), "disconnect.lost", par1Str, par2ArrayOfObj)); } } } public void b(ey par1Packet) { if (!this.f) { this.g.a(par1Packet); this.g.d(); FMLNetworkHandler.onConnectionClosed(this.g, getPlayer()); } } public void c(ey par1Packet) { if (!this.f) { this.g.a(par1Packet); } } public void a(ga par1Packet22Collect) { nn entity = a(par1Packet22Collect.a); Object object = (of)a(par1Packet22Collect.b); if (object == null) { object = this.h.h; } if (entity != null) { if ((entity instanceof oa)) { this.i.a(entity, "random.orb", 0.2F, ((this.e.nextFloat() - this.e.nextFloat()) * 0.7F + 1.0F) * 2.0F); } else { this.i.a(entity, "random.pop", 0.2F, ((this.e.nextFloat() - this.e.nextFloat()) * 0.7F + 1.0F) * 2.0F); } this.h.k.a(new ber(this.h.f, entity, (nn)object, -0.5F)); this.i.b(par1Packet22Collect.a); } } public void a(dm par1Packet3Chat) { par1Packet3Chat = FMLNetworkHandler.handleChatMessage(this, par1Packet3Chat); ClientChatReceivedEvent event = new ClientChatReceivedEvent(par1Packet3Chat.a); if ((!MinecraftForge.EVENT_BUS.post(event)) && (event.message != null)) { this.h.r.b().a(cv.c(event.message).a(true)); } } public void a(dj par1Packet18Animation) { nn entity = a(par1Packet18Animation.a); if (entity != null) { if (par1Packet18Animation.b == 1) { of entitylivingbase = (of)entity; entitylivingbase.aV(); } else if (par1Packet18Animation.b == 2) { entity.ad(); } else if (par1Packet18Animation.b == 3) { uf entityplayer = (uf)entity; entityplayer.a(false, false, false); } else if (par1Packet18Animation.b != 4) { if (par1Packet18Animation.b == 6) { this.h.k.a(new bdq(this.h.f, entity)); } else if (par1Packet18Animation.b == 7) { bdq entitycrit2fx = new bdq(this.h.f, entity, "magicCrit"); this.h.k.a(entitycrit2fx); } else if ((par1Packet18Animation.b != 5) || (!(entity instanceof bey))) {} } } } public void a(ec par1Packet17Sleep) { nn entity = a(par1Packet17Sleep.a); if (entity != null) { if (par1Packet17Sleep.e == 0) { uf entityplayer = (uf)entity; entityplayer.a(par1Packet17Sleep.b, par1Packet17Sleep.c, par1Packet17Sleep.d); } } } public void f() { this.f = true; this.g.a(); this.g.a("disconnect.closed", new Object[0]); } public void a(dg par1Packet24MobSpawn) { double d0 = par1Packet24MobSpawn.c / 32.0D; double d1 = par1Packet24MobSpawn.d / 32.0D; double d2 = par1Packet24MobSpawn.e / 32.0D; float f = par1Packet24MobSpawn.i * 360 / 256.0F; float f1 = par1Packet24MobSpawn.j * 360 / 256.0F; of entitylivingbase = (of)nt.a(par1Packet24MobSpawn.b, this.h.f); entitylivingbase.bZ = par1Packet24MobSpawn.c; entitylivingbase.ca = par1Packet24MobSpawn.d; entitylivingbase.cb = par1Packet24MobSpawn.e; entitylivingbase.aP = (par1Packet24MobSpawn.k * 360 / 256.0F); nn[] aentity = entitylivingbase.ao(); if (aentity != null) { int i = par1Packet24MobSpawn.a - entitylivingbase.k; for (int j = 0; j < aentity.length; j++) { aentity[j].k += i; } } entitylivingbase.k = par1Packet24MobSpawn.a; entitylivingbase.a(d0, d1, d2, f, f1); entitylivingbase.x = (par1Packet24MobSpawn.f / 8000.0F); entitylivingbase.y = (par1Packet24MobSpawn.g / 8000.0F); entitylivingbase.z = (par1Packet24MobSpawn.h / 8000.0F); this.i.a(par1Packet24MobSpawn.a, entitylivingbase); List list = par1Packet24MobSpawn.c(); if (list != null) { entitylivingbase.v().a(list); } } public void a(fx par1Packet4UpdateTime) { this.h.f.a(par1Packet4UpdateTime.a); this.h.f.b(par1Packet4UpdateTime.b); } public void a(fw par1Packet6SpawnPosition) { this.h.h.a(new t(par1Packet6SpawnPosition.a, par1Packet6SpawnPosition.b, par1Packet6SpawnPosition.c), true); this.h.f.N().a(par1Packet6SpawnPosition.a, par1Packet6SpawnPosition.b, par1Packet6SpawnPosition.c); } public void a(fo par1Packet39AttachEntity) { Object object = a(par1Packet39AttachEntity.b); nn entity = a(par1Packet39AttachEntity.c); if (par1Packet39AttachEntity.a == 0) { boolean flag = false; if (par1Packet39AttachEntity.b == this.h.h.k) { object = this.h.h; if ((entity instanceof sq)) { ((sq)entity).a(false); } flag = (((nn)object).o == null) && (entity != null); } else if ((entity instanceof sq)) { ((sq)entity).a(true); } if (object == null) { return; } ((nn)object).a(entity); if (flag) { aul gamesettings = this.h.u; this.h.r.a(bkb.a("mount.onboard", new Object[] { aul.c(gamesettings.Q.d) }), false); } } else if ((par1Packet39AttachEntity.a == 1) && (object != null) && ((object instanceof og))) { if (entity != null) { ((og)object).b(entity, false); } else { ((og)object).a(false, false); } } } public void a(ed par1Packet38EntityStatus) { nn entity = a(par1Packet38EntityStatus.a); if (entity != null) { entity.a(par1Packet38EntityStatus.b); } } private nn a(int par1) { return par1 == this.h.h.k ? this.h.h : this.i.a(par1); } public void a(fs par1Packet8UpdateHealth) { this.h.h.n(par1Packet8UpdateHealth.a); this.h.h.bI().a(par1Packet8UpdateHealth.b); this.h.h.bI().b(par1Packet8UpdateHealth.c); } public void a(fr par1Packet43Experience) { this.h.h.a(par1Packet43Experience.a, par1Packet43Experience.b, par1Packet43Experience.c); } public void a(fh par1Packet9Respawn) { if (par1Packet9Respawn.a != this.h.h.ar) { this.j = false; atj scoreboard = this.i.X(); this.i = new bdd(this, new acd(0L, par1Packet9Respawn.d, false, this.h.f.N().t(), par1Packet9Respawn.e), par1Packet9Respawn.a, par1Packet9Respawn.b, this.h.C, this.h.an()); this.i.a(scoreboard); this.i.I = true; this.h.a(this.i); this.h.h.ar = par1Packet9Respawn.a; this.h.a(new bdk(this)); } this.h.a(par1Packet9Respawn.a); this.h.c.a(par1Packet9Respawn.d); } public void a(ee par1Packet60Explosion) { abr explosion = new abr(this.h.f, (nn)null, par1Packet60Explosion.a, par1Packet60Explosion.b, par1Packet60Explosion.c, par1Packet60Explosion.d); explosion.h = par1Packet60Explosion.e; explosion.a(true); this.h.h.x += par1Packet60Explosion.d(); this.h.h.y += par1Packet60Explosion.f(); this.h.h.z += par1Packet60Explosion.g(); } public void a(dw par1Packet100OpenWindow) { bdi entityclientplayermp = this.h.h; switch (par1Packet100OpenWindow.b) { case 0: entityclientplayermp.a(new mu(par1Packet100OpenWindow.c, par1Packet100OpenWindow.e, par1Packet100OpenWindow.d)); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 1: entityclientplayermp.b(ls.c(entityclientplayermp.u), ls.c(entityclientplayermp.v), ls.c(entityclientplayermp.w)); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 2: asg tileentityfurnace = new asg(); if (par1Packet100OpenWindow.e) { tileentityfurnace.a(par1Packet100OpenWindow.c); } entityclientplayermp.a(tileentityfurnace); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 3: asc tileentitydispenser = new asc(); if (par1Packet100OpenWindow.e) { tileentitydispenser.a(par1Packet100OpenWindow.c); } entityclientplayermp.a(tileentitydispenser); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 4: entityclientplayermp.a(ls.c(entityclientplayermp.u), ls.c(entityclientplayermp.v), ls.c(entityclientplayermp.w), par1Packet100OpenWindow.e ? par1Packet100OpenWindow.c : null); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 5: arx tileentitybrewingstand = new arx(); if (par1Packet100OpenWindow.e) { tileentitybrewingstand.a(par1Packet100OpenWindow.c); } entityclientplayermp.a(tileentitybrewingstand); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 6: entityclientplayermp.a(new tz(entityclientplayermp), par1Packet100OpenWindow.e ? par1Packet100OpenWindow.c : null); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 7: arw tileentitybeacon = new arw(); entityclientplayermp.a(tileentitybeacon); if (par1Packet100OpenWindow.e) { tileentitybeacon.a(par1Packet100OpenWindow.c); } entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 8: entityclientplayermp.c(ls.c(entityclientplayermp.u), ls.c(entityclientplayermp.v), ls.c(entityclientplayermp.w)); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 9: asi tileentityhopper = new asi(); if (par1Packet100OpenWindow.e) { tileentityhopper.a(par1Packet100OpenWindow.c); } entityclientplayermp.a(tileentityhopper); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 10: asd tileentitydropper = new asd(); if (par1Packet100OpenWindow.e) { tileentitydropper.a(par1Packet100OpenWindow.c); } entityclientplayermp.a(tileentitydropper); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; break; case 11: nn entity = a(par1Packet100OpenWindow.f); if ((entity != null) && ((entity instanceof rs))) { entityclientplayermp.a((rs)entity, new uz(par1Packet100OpenWindow.c, par1Packet100OpenWindow.e, par1Packet100OpenWindow.d)); entityclientplayermp.bp.d = par1Packet100OpenWindow.a; } break; } } public void a(dz par1Packet103SetSlot) { bdi entityclientplayermp = this.h.h; if (par1Packet103SetSlot.a == -1) { entityclientplayermp.bn.b(par1Packet103SetSlot.c); } else { boolean flag = false; if ((this.h.n instanceof axm)) { axm guicontainercreative = (axm)this.h.n; flag = guicontainercreative.g() != ww.m.a(); } if ((par1Packet103SetSlot.a == 0) && (par1Packet103SetSlot.b >= 36) && (par1Packet103SetSlot.b < 45)) { ye itemstack = entityclientplayermp.bo.a(par1Packet103SetSlot.b).d(); if ((par1Packet103SetSlot.c != null) && ((itemstack == null) || (itemstack.b < par1Packet103SetSlot.c.b))) { par1Packet103SetSlot.c.c = 5; } entityclientplayermp.bo.a(par1Packet103SetSlot.b, par1Packet103SetSlot.c); } else if ((par1Packet103SetSlot.a == entityclientplayermp.bp.d) && ((par1Packet103SetSlot.a != 0) || (!flag))) { entityclientplayermp.bp.a(par1Packet103SetSlot.b, par1Packet103SetSlot.c); } } } public void a(ds par1Packet106Transaction) { uy container = null; bdi entityclientplayermp = this.h.h; if (par1Packet106Transaction.a == 0) { container = entityclientplayermp.bo; } else if (par1Packet106Transaction.a == entityclientplayermp.bp.d) { container = entityclientplayermp.bp; } if ((container != null) && (!par1Packet106Transaction.c)) { c(new ds(par1Packet106Transaction.a, par1Packet106Transaction.b, true)); } } public void a(dx par1Packet104WindowItems) { bdi entityclientplayermp = this.h.h; if (par1Packet104WindowItems.a == 0) { entityclientplayermp.bo.a(par1Packet104WindowItems.b); } else if (par1Packet104WindowItems.a == entityclientplayermp.bp.d) { entityclientplayermp.bp.a(par1Packet104WindowItems.b); } } public void a(gd par1Packet133TileEditorOpen) { asp tileentity = this.i.r(par1Packet133TileEditorOpen.b, par1Packet133TileEditorOpen.c, par1Packet133TileEditorOpen.d); if (tileentity != null) { this.h.h.a(tileentity); } else if (par1Packet133TileEditorOpen.a == 0) { asm tileentitysign = new asm(); tileentitysign.b(this.i); tileentitysign.l = par1Packet133TileEditorOpen.b; tileentitysign.m = par1Packet133TileEditorOpen.c; tileentitysign.n = par1Packet133TileEditorOpen.d; this.h.h.a(tileentitysign); } } public void a(fz par1Packet130UpdateSign) { boolean flag = false; if (this.h.f.f(par1Packet130UpdateSign.a, par1Packet130UpdateSign.b, par1Packet130UpdateSign.c)) { asp tileentity = this.h.f.r(par1Packet130UpdateSign.a, par1Packet130UpdateSign.b, par1Packet130UpdateSign.c); if ((tileentity instanceof asm)) { asm tileentitysign = (asm)tileentity; if (tileentitysign.a()) { for (int i = 0; i < 4; i++) { tileentitysign.a[i] = par1Packet130UpdateSign.d[i]; } tileentitysign.e(); } flag = true; } } if ((!flag) && (this.h.h != null)) { this.h.h.a(cv.d("Unable to locate sign at " + par1Packet130UpdateSign.a + ", " + par1Packet130UpdateSign.b + ", " + par1Packet130UpdateSign.c)); } } public void a(ge par1Packet132TileEntityData) { if (this.h.f.f(par1Packet132TileEntityData.a, par1Packet132TileEntityData.b, par1Packet132TileEntityData.c)) { asp tileentity = this.h.f.r(par1Packet132TileEntityData.a, par1Packet132TileEntityData.b, par1Packet132TileEntityData.c); if (tileentity != null) { if ((par1Packet132TileEntityData.d == 1) && ((tileentity instanceof asj))) { tileentity.a(par1Packet132TileEntityData.e); } else if ((par1Packet132TileEntityData.d == 2) && ((tileentity instanceof arz))) { tileentity.a(par1Packet132TileEntityData.e); } else if ((par1Packet132TileEntityData.d == 3) && ((tileentity instanceof arw))) { tileentity.a(par1Packet132TileEntityData.e); } else if ((par1Packet132TileEntityData.d == 4) && ((tileentity instanceof asn))) { tileentity.a(par1Packet132TileEntityData.e); } else { tileentity.onDataPacket(this.g, par1Packet132TileEntityData); } } } } public void a(dy par1Packet105UpdateProgressbar) { bdi entityclientplayermp = this.h.h; a(par1Packet105UpdateProgressbar); if ((entityclientplayermp.bp != null) && (entityclientplayermp.bp.d == par1Packet105UpdateProgressbar.a)) { entityclientplayermp.bp.b(par1Packet105UpdateProgressbar.b, par1Packet105UpdateProgressbar.c); } } public void a(fq par1Packet5PlayerInventory) { nn entity = a(par1Packet5PlayerInventory.a); if (entity != null) { entity.c(par1Packet5PlayerInventory.b, par1Packet5PlayerInventory.d()); } } public void a(dv par1Packet101CloseWindow) { this.h.h.g(); } public void a(gf par1Packet54PlayNoteBlock) { this.h.f.d(par1Packet54PlayNoteBlock.a, par1Packet54PlayNoteBlock.b, par1Packet54PlayNoteBlock.c, par1Packet54PlayNoteBlock.f, par1Packet54PlayNoteBlock.d, par1Packet54PlayNoteBlock.e); } public void a(gc par1Packet55BlockDestroy) { this.h.f.f(par1Packet55BlockDestroy.d(), par1Packet55BlockDestroy.f(), par1Packet55BlockDestroy.g(), par1Packet55BlockDestroy.h(), par1Packet55BlockDestroy.i()); } public void a(el par1Packet56MapChunks) { for (int i = 0; i < par1Packet56MapChunks.d(); i++) { int j = par1Packet56MapChunks.a(i); int k = par1Packet56MapChunks.b(i); this.i.a(j, k, true); this.i.c(j << 4, 0, k << 4, (j << 4) + 15, 256, (k << 4) + 15); adr chunk = this.i.e(j, k); if (chunk == null) { this.i.a(j, k, true); chunk = this.i.e(j, k); } if (chunk != null) { chunk.a(par1Packet56MapChunks.c(i), par1Packet56MapChunks.a[i], par1Packet56MapChunks.b[i], true); this.i.g(j << 4, 0, k << 4, (j << 4) + 15, 256, (k << 4) + 15); if (!(this.i.t instanceof aek)) { chunk.n(); } } } } public boolean b() { return (this.h != null) && (this.h.f != null) && (this.h.h != null) && (this.i != null); } public void a(ef par1Packet70GameEvent) { bdi entityclientplayermp = this.h.h; int i = par1Packet70GameEvent.b; int j = par1Packet70GameEvent.c; if ((i >= 0) && (i < ef.a.length) && (ef.a[i] != null)) { entityclientplayermp.a(ef.a[i]); } if (i == 1) { this.i.N().b(true); this.i.j(0.0F); } else if (i == 2) { this.i.N().b(false); this.i.j(1.0F); } else if (i == 3) { this.h.c.a(ace.a(j)); } else if (i == 4) { this.h.a(new azr()); } else if (i == 5) { aul gamesettings = this.h.u; if (j == 0) { this.h.a(new avd()); } else if (j == 101) { this.h.r.b().a("demo.help.movement", new Object[] { Keyboard.getKeyName(gamesettings.I.d), Keyboard.getKeyName(gamesettings.J.d), Keyboard.getKeyName(gamesettings.K.d), Keyboard.getKeyName(gamesettings.L.d) }); } else if (j == 102) { this.h.r.b().a("demo.help.jump", new Object[] { Keyboard.getKeyName(gamesettings.M.d) }); } else if (j == 103) { this.h.r.b().a("demo.help.inventory", new Object[] { Keyboard.getKeyName(gamesettings.N.d) }); } } else if (i == 6) { this.i.a(entityclientplayermp.u, entityclientplayermp.v + entityclientplayermp.f(), entityclientplayermp.w, "random.successful_hit", 0.18F, 0.45F, false); } } public void a(dr par1Packet131MapData) { FMLNetworkHandler.handlePacket131Packet(this, par1Packet131MapData); } public void fmlPacket131Callback(dr par1Packet131MapData) { if (par1Packet131MapData.a == yc.bf.cv) { yh.a(par1Packet131MapData.b, this.h.f).a(par1Packet131MapData.c); } else { this.h.an().b("Unknown itemid: " + par1Packet131MapData.b); } } public void a(em par1Packet61DoorChange) { if (par1Packet61DoorChange.d()) { this.h.f.d(par1Packet61DoorChange.a, par1Packet61DoorChange.c, par1Packet61DoorChange.d, par1Packet61DoorChange.e, par1Packet61DoorChange.b); } else { this.h.f.e(par1Packet61DoorChange.a, par1Packet61DoorChange.c, par1Packet61DoorChange.d, par1Packet61DoorChange.e, par1Packet61DoorChange.b); } } public void a(dk par1Packet200Statistic) { this.h.h.b(la.a(par1Packet200Statistic.a), par1Packet200Statistic.b); } public void a(gj par1Packet41EntityEffect) { nn entity = a(par1Packet41EntityEffect.a); if ((entity instanceof of)) { nj potioneffect = new nj(par1Packet41EntityEffect.b, par1Packet41EntityEffect.d, par1Packet41EntityEffect.c); potioneffect.b(par1Packet41EntityEffect.d()); ((of)entity).c(potioneffect); } } public void a(fg par1Packet42RemoveEntityEffect) { nn entity = a(par1Packet42RemoveEntityEffect.a); if ((entity instanceof of)) { ((of)entity).j(par1Packet42RemoveEntityEffect.b); } } public boolean a() { return false; } public void a(fd par1Packet201PlayerInfo) { bdj guiplayerinfo = (bdj)this.k.get(par1Packet201PlayerInfo.a); if ((guiplayerinfo == null) && (par1Packet201PlayerInfo.b)) { guiplayerinfo = new bdj(par1Packet201PlayerInfo.a); this.k.put(par1Packet201PlayerInfo.a, guiplayerinfo); this.c.add(guiplayerinfo); } if ((guiplayerinfo != null) && (!par1Packet201PlayerInfo.b)) { this.k.remove(par1Packet201PlayerInfo.a); this.c.remove(guiplayerinfo); } if ((par1Packet201PlayerInfo.b) && (guiplayerinfo != null)) { guiplayerinfo.b = par1Packet201PlayerInfo.c; } } public void a(ei par1Packet0KeepAlive) { c(new ei(par1Packet0KeepAlive.a)); } public void a(fa par1Packet202PlayerAbilities) { bdi entityclientplayermp = this.h.h; entityclientplayermp.bG.b = par1Packet202PlayerAbilities.f(); entityclientplayermp.bG.d = par1Packet202PlayerAbilities.h(); entityclientplayermp.bG.a = par1Packet202PlayerAbilities.d(); entityclientplayermp.bG.c = par1Packet202PlayerAbilities.g(); entityclientplayermp.bG.a(par1Packet202PlayerAbilities.i()); entityclientplayermp.bG.b(par1Packet202PlayerAbilities.j()); } public void a(dl par1Packet203AutoComplete) { String[] astring = par1Packet203AutoComplete.d().split(""); if ((this.h.n instanceof auw)) { auw guichat = (auw)this.h.n; guichat.a(astring); } } public void a(eo par1Packet62LevelSound) { this.h.f.a(par1Packet62LevelSound.f(), par1Packet62LevelSound.g(), par1Packet62LevelSound.h(), par1Packet62LevelSound.d(), par1Packet62LevelSound.i(), par1Packet62LevelSound.j(), false); } public void a(ea par1Packet250CustomPayload) { FMLNetworkHandler.handlePacket250Packet(par1Packet250CustomPayload, this.g, this); } public void handleVanilla250Packet(ea par1Packet250CustomPayload) { if ("MC|TrList".equals(par1Packet250CustomPayload.a)) { DataInputStream datainputstream = new DataInputStream(new ByteArrayInputStream(par1Packet250CustomPayload.c)); try { int i = datainputstream.readInt(); awe guiscreen = this.h.n; if ((guiscreen != null) && ((guiscreen instanceof axw)) && (i == this.h.h.bp.d)) { abk imerchant = ((axw)guiscreen).g(); abm merchantrecipelist = abm.a(datainputstream); imerchant.a(merchantrecipelist); } } catch (IOException ioexception) { ioexception.printStackTrace(); } } else if ("MC|Brand".equals(par1Packet250CustomPayload.a)) { this.h.h.c(new String(par1Packet250CustomPayload.c, Charsets.UTF_8)); } } public void a(ft par1Packet206SetObjective) { atj scoreboard = this.i.X(); if (par1Packet206SetObjective.c == 0) { ate scoreobjective = scoreboard.a(par1Packet206SetObjective.a, ato.b); scoreobjective.a(par1Packet206SetObjective.b); } else { ate scoreobjective = scoreboard.b(par1Packet206SetObjective.a); if (par1Packet206SetObjective.c == 1) { scoreboard.k(scoreobjective); } else if (par1Packet206SetObjective.c == 2) { scoreobjective.a(par1Packet206SetObjective.b); } } } public void a(fv par1Packet207SetScore) { atj scoreboard = this.i.X(); ate scoreobjective = scoreboard.b(par1Packet207SetScore.b); if (par1Packet207SetScore.d == 0) { atg score = scoreboard.a(par1Packet207SetScore.a, scoreobjective); score.c(par1Packet207SetScore.c); } else if (par1Packet207SetScore.d == 1) { scoreboard.c(par1Packet207SetScore.a); } } public void a(fm par1Packet208SetDisplayObjective) { atj scoreboard = this.i.X(); if (par1Packet208SetDisplayObjective.b.length() == 0) { scoreboard.a(par1Packet208SetDisplayObjective.a, (ate)null); } else { ate scoreobjective = scoreboard.b(par1Packet208SetDisplayObjective.b); scoreboard.a(par1Packet208SetDisplayObjective.a, scoreobjective); } } public void a(fu par1Packet209SetPlayerTeam) { atj scoreboard = this.i.X(); atf scoreplayerteam; atf scoreplayerteam; if (par1Packet209SetPlayerTeam.f == 0) { scoreplayerteam = scoreboard.f(par1Packet209SetPlayerTeam.a); } else { scoreplayerteam = scoreboard.e(par1Packet209SetPlayerTeam.a); } if ((par1Packet209SetPlayerTeam.f == 0) || (par1Packet209SetPlayerTeam.f == 2)) { scoreplayerteam.a(par1Packet209SetPlayerTeam.b); scoreplayerteam.b(par1Packet209SetPlayerTeam.c); scoreplayerteam.c(par1Packet209SetPlayerTeam.d); scoreplayerteam.a(par1Packet209SetPlayerTeam.g); } if ((par1Packet209SetPlayerTeam.f == 0) || (par1Packet209SetPlayerTeam.f == 3)) { Iterator iterator = par1Packet209SetPlayerTeam.e.iterator(); while (iterator.hasNext()) { String s = (String)iterator.next(); scoreboard.a(s, scoreplayerteam); } } if (par1Packet209SetPlayerTeam.f == 4) { Iterator iterator = par1Packet209SetPlayerTeam.e.iterator(); while (iterator.hasNext()) { String s = (String)iterator.next(); scoreboard.b(s, scoreplayerteam); } } if (par1Packet209SetPlayerTeam.f == 1) { scoreboard.d(scoreplayerteam); } } public void a(en par1Packet63WorldParticles) { for (int i = 0; i < par1Packet63WorldParticles.m(); i++) { double d0 = this.e.nextGaussian() * par1Packet63WorldParticles.i(); double d1 = this.e.nextGaussian() * par1Packet63WorldParticles.j(); double d2 = this.e.nextGaussian() * par1Packet63WorldParticles.k(); double d3 = this.e.nextGaussian() * par1Packet63WorldParticles.l(); double d4 = this.e.nextGaussian() * par1Packet63WorldParticles.l(); double d5 = this.e.nextGaussian() * par1Packet63WorldParticles.l(); this.i.a(par1Packet63WorldParticles.d(), par1Packet63WorldParticles.f() + d0, par1Packet63WorldParticles.g() + d1, par1Packet63WorldParticles.h() + d2, d3, d4, d5); } } public void a(gh par1Packet44UpdateAttributes) { nn entity = a(par1Packet44UpdateAttributes.d()); if (entity != null) { if (!(entity instanceof of)) { throw new IllegalStateException("Server tried to update attributes of a non-living entity (actually: " + entity + ")"); } ov baseattributemap = ((of)entity).aX(); Iterator iterator = par1Packet44UpdateAttributes.f().iterator(); while (iterator.hasNext()) { gi packet44updateattributessnapshot = (gi)iterator.next(); os attributeinstance = baseattributemap.a(packet44updateattributessnapshot.a()); if (attributeinstance == null) { attributeinstance = baseattributemap.b(new oy(packet44updateattributessnapshot.a(), 0.0D, 2.225073858507201E-308D, 1.7976931348623157E+308D)); } attributeinstance.a(packet44updateattributessnapshot.b()); attributeinstance.d(); Iterator iterator1 = packet44updateattributessnapshot.c().iterator(); while (iterator1.hasNext()) { ot attributemodifier = (ot)iterator1.next(); attributeinstance.a(attributemodifier); } } } } public cm g() { return this.g; } public uf getPlayer() { return this.h.h; } public static void setConnectionCompatibilityLevel(byte connectionCompatibilityLevel) { connectionCompatibilityLevel = connectionCompatibilityLevel; } public static byte getConnectionCompatibilityLevel() { return connectionCompatibilityLevel; } }
查找差异