赞 | 0 |
VIP | 0 |
好人卡 | 2 |
积分 | 0 |
经验 | 8574 |
最后登录 | 2017-6-2 |
在线时间 | 157 小时 |
Lv1.梦旅人 静
- 梦石
- 0
- 星屑
- 49
- 在线时间
- 157 小时
- 注册时间
- 2007-12-16
- 帖子
- 3454
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 精灵使者 于 2012-7-20 23:37 编辑
- import java.util.Collection;
- import java.util.Collections;
- import java.util.HashMap;
- import java.util.Random;
- import java.util.Set;
- import net.minecraft.client.Minecraft;
- public class vq extends yw
- {
- public oy a;
- protected Minecraft b;
- protected int c;
- public int d;
- public float e;
- public float am;
- public float an;
- public float ao;
- private ch cl;
- private ch cm;
- private ch cn;
- protected final PlayerAPI playerAPI;
- public vq(Minecraft paramMinecraft, xd paramxd, fc paramfc, int paramInt)
- {
- super(paramxd);
- this.playerAPI = PlayerAPI.create(this);
- PlayerAPI.beforeLocalConstructing(this, paramMinecraft, paramxd, paramfc, paramInt);
- this.c = 0;
- this.d = 0;
- this.cl = new ch();
- this.cm = new ch();
- this.cn = new ch();
- this.b = paramMinecraft;
- this.aB = paramInt;
- if ((paramfc != null) && (paramfc.b != null) && (paramfc.b.length() > 0))
- this.Z = "http://s3.amazonaws.com/MinecraftSkins/" + paramfc.b + ".png";
- this.aA = paramfc.b;
- PlayerAPI.afterLocalConstructing(this, paramMinecraft, paramxd, paramfc, paramInt);
- }
- public final PlayerBase getPlayerBase(String paramString)
- {
- if (this.playerAPI != null)
- return this.playerAPI.getPlayerBase(paramString);
- return null;
- }
- public final Set<String> getPlayerBaseIds(String paramString)
- {
- if (this.playerAPI != null)
- return this.playerAPI.getPlayerBaseIds();
- return Collections.emptySet();
- }
- public void c(float paramFloat)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isAddExhaustionModded))
- PlayerAPI.addExhaustion(this, paramFloat);
- else
- super.c(paramFloat);
- }
- public final void superAddExhaustion(float paramFloat)
- {
- super.c(paramFloat);
- }
- public final void localAddExhaustion(float paramFloat)
- {
- super.c(paramFloat);
- }
- public boolean a(md parammd, int paramInt)
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isAttackEntityFromModded))
- bool = PlayerAPI.attackEntityFrom(this, parammd, paramInt);
- else
- bool = super.a(parammd, paramInt);
- return bool;
- }
- public final boolean superAttackEntityFrom(md parammd, int paramInt)
- {
- return super.a(parammd, paramInt);
- }
- public final boolean localAttackEntityFrom(md parammd, int paramInt)
- {
- return super.a(parammd, paramInt);
- }
- public void k(nn paramnn)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isAttackTargetEntityWithCurrentItemModded))
- PlayerAPI.attackTargetEntityWithCurrentItem(this, paramnn);
- else
- super.k(paramnn);
- }
- public final void superAttackTargetEntityWithCurrentItem(nn paramnn)
- {
- super.k(paramnn);
- }
- public final void localAttackTargetEntityWithCurrentItem(nn paramnn)
- {
- super.k(paramnn);
- }
- public boolean r_()
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isCanBreatheUnderwaterModded))
- bool = PlayerAPI.canBreatheUnderwater(this);
- else
- bool = super.r_();
- return bool;
- }
- public final boolean superCanBreatheUnderwater()
- {
- return super.r_();
- }
- public final boolean localCanBreatheUnderwater()
- {
- return super.r_();
- }
- public boolean b(pb parampb)
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isCanHarvestBlockModded))
- bool = PlayerAPI.canHarvestBlock(this, parampb);
- else
- bool = super.b(parampb);
- return bool;
- }
- public final boolean superCanHarvestBlock(pb parampb)
- {
- return super.b(parampb);
- }
- public final boolean localCanHarvestBlock(pb parampb)
- {
- return super.b(parampb);
- }
- public boolean e(int paramInt1, int paramInt2, int paramInt3)
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isCanPlayerEditModded))
- bool = PlayerAPI.canPlayerEdit(this, paramInt1, paramInt2, paramInt3);
- else
- bool = super.e(paramInt1, paramInt2, paramInt3);
- return bool;
- }
- public final boolean superCanPlayerEdit(int paramInt1, int paramInt2, int paramInt3)
- {
- return super.e(paramInt1, paramInt2, paramInt3);
- }
- public final boolean localCanPlayerEdit(int paramInt1, int paramInt2, int paramInt3)
- {
- return super.e(paramInt1, paramInt2, paramInt3);
- }
- protected boolean e_()
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isCanTriggerWalkingModded))
- bool = PlayerAPI.canTriggerWalking(this);
- else
- bool = super.e_();
- return bool;
- }
- public final boolean realCanTriggerWalking()
- {
- return e_();
- }
- public final boolean superCanTriggerWalking()
- {
- return super.e_();
- }
- public final boolean localCanTriggerWalking()
- {
- return super.e_();
- }
- public void af()
- {
- if ((this.playerAPI != null) && (this.playerAPI.isCloseScreenModded))
- PlayerAPI.closeScreen(this);
- else
- localCloseScreen();
- }
- public final void superCloseScreen()
- {
- super.af();
- }
- public final void localCloseScreen()
- {
- super.af();
- this.b.a((vp)null);
- }
- protected void c(md parammd, int paramInt)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isDamageEntityModded))
- PlayerAPI.damageEntity(this, parammd, paramInt);
- else
- super.c(parammd, paramInt);
- }
- public final void realDamageEntity(md parammd, int paramInt)
- {
- c(parammd, paramInt);
- }
- public final void superDamageEntity(md parammd, int paramInt)
- {
- super.c(parammd, paramInt);
- }
- public final void localDamageEntity(md parammd, int paramInt)
- {
- super.c(parammd, paramInt);
- }
- public void a(amc paramamc)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isDisplayGUIBrewingStandModded))
- PlayerAPI.displayGUIBrewingStand(this, paramamc);
- else
- localDisplayGUIBrewingStand(paramamc);
- }
- public final void superDisplayGUIBrewingStand(amc paramamc)
- {
- super.a(paramamc);
- }
- public final void localDisplayGUIBrewingStand(amc paramamc)
- {
- this.b.a(new hg(this.ap, paramamc));
- }
- public void a(io paramio)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isDisplayGUIChestModded))
- PlayerAPI.displayGUIChest(this, paramio);
- else
- localDisplayGUIChest(paramio);
- }
- public final void superDisplayGUIChest(io paramio)
- {
- super.a(paramio);
- }
- public final void localDisplayGUIChest(io paramio)
- {
- this.b.a(new zn(this.ap, paramio));
- }
- public void a(az paramaz)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isDisplayGUIDispenserModded))
- PlayerAPI.displayGUIDispenser(this, paramaz);
- else
- localDisplayGUIDispenser(paramaz);
- }
- public final void superDisplayGUIDispenser(az paramaz)
- {
- super.a(paramaz);
- }
- public final void localDisplayGUIDispenser(az paramaz)
- {
- this.b.a(new fb(this.ap, paramaz));
- }
- public void a(sc paramsc)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isDisplayGUIEditSignModded))
- PlayerAPI.displayGUIEditSign(this, paramsc);
- else
- localDisplayGUIEditSign(paramsc);
- }
- public final void superDisplayGUIEditSign(sc paramsc)
- {
- super.a(paramsc);
- }
- public final void localDisplayGUIEditSign(sc paramsc)
- {
- this.b.a(new alu(paramsc));
- }
- public void c(int paramInt1, int paramInt2, int paramInt3)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isDisplayGUIEnchantmentModded))
- PlayerAPI.displayGUIEnchantment(this, paramInt1, paramInt2, paramInt3);
- else
- localDisplayGUIEnchantment(paramInt1, paramInt2, paramInt3);
- }
- public final void superDisplayGUIEnchantment(int paramInt1, int paramInt2, int paramInt3)
- {
- super.c(paramInt1, paramInt2, paramInt3);
- }
- public final void localDisplayGUIEnchantment(int paramInt1, int paramInt2, int paramInt3)
- {
- this.b.a(new sm(this.ap, this.k, paramInt1, paramInt2, paramInt3));
- }
- public void a(ahg paramahg)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isDisplayGUIFurnaceModded))
- PlayerAPI.displayGUIFurnace(this, paramahg);
- else
- localDisplayGUIFurnace(paramahg);
- }
- public final void superDisplayGUIFurnace(ahg paramahg)
- {
- super.a(paramahg);
- }
- public final void localDisplayGUIFurnace(ahg paramahg)
- {
- this.b.a(new kv(this.ap, paramahg));
- }
- public void a(int paramInt1, int paramInt2, int paramInt3)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isDisplayWorkbenchGUIModded))
- PlayerAPI.displayWorkbenchGUI(this, paramInt1, paramInt2, paramInt3);
- else
- localDisplayWorkbenchGUI(paramInt1, paramInt2, paramInt3);
- }
- public final void superDisplayWorkbenchGUI(int paramInt1, int paramInt2, int paramInt3)
- {
- super.a(paramInt1, paramInt2, paramInt3);
- }
- public final void localDisplayWorkbenchGUI(int paramInt1, int paramInt2, int paramInt3)
- {
- this.b.a(new aen(this.ap, this.k, paramInt1, paramInt2, paramInt3));
- }
- public fq as()
- {
- fq localfq;
- if ((this.playerAPI != null) && (this.playerAPI.isDropOneItemModded))
- localfq = PlayerAPI.dropOneItem(this);
- else
- localfq = super.as();
- return localfq;
- }
- public final fq superDropOneItem()
- {
- return super.as();
- }
- public final fq localDropOneItem()
- {
- return super.as();
- }
- public fq a(aan paramaan)
- {
- fq localfq;
- if ((this.playerAPI != null) && (this.playerAPI.isDropPlayerItemModded))
- localfq = PlayerAPI.dropPlayerItem(this, paramaan);
- else
- localfq = super.a(paramaan);
- return localfq;
- }
- public final fq superDropPlayerItem(aan paramaan)
- {
- return super.a(paramaan);
- }
- public final fq localDropPlayerItem(aan paramaan)
- {
- return super.a(paramaan);
- }
- public fq a(aan paramaan, boolean paramBoolean)
- {
- fq localfq;
- if ((this.playerAPI != null) && (this.playerAPI.isDropPlayerItemWithRandomChoiceModded))
- localfq = PlayerAPI.dropPlayerItemWithRandomChoice(this, paramaan, paramBoolean);
- else
- localfq = super.a(paramaan, paramBoolean);
- return localfq;
- }
- public final fq superDropPlayerItemWithRandomChoice(aan paramaan, boolean paramBoolean)
- {
- return super.a(paramaan, paramBoolean);
- }
- public final fq localDropPlayerItemWithRandomChoice(aan paramaan, boolean paramBoolean)
- {
- return super.a(paramaan, paramBoolean);
- }
- protected void e(float paramFloat)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isFallModded))
- PlayerAPI.fall(this, paramFloat);
- else
- super.e(paramFloat);
- }
- public final void realFall(float paramFloat)
- {
- e(paramFloat);
- }
- public final void superFall(float paramFloat)
- {
- super.e(paramFloat);
- }
- public final void localFall(float paramFloat)
- {
- super.e(paramFloat);
- }
- public float a(float paramFloat)
- {
- float f;
- if ((this.playerAPI != null) && (this.playerAPI.isGetBrightnessModded))
- f = PlayerAPI.getBrightness(this, paramFloat);
- else
- f = super.a(paramFloat);
- return f;
- }
- public final float superGetBrightness(float paramFloat)
- {
- return super.a(paramFloat);
- }
- public final float localGetBrightness(float paramFloat)
- {
- return super.a(paramFloat);
- }
- public int b(float paramFloat)
- {
- int i;
- if ((this.playerAPI != null) && (this.playerAPI.isGetBrightnessForRenderModded))
- i = PlayerAPI.getBrightnessForRender(this, paramFloat);
- else
- i = super.b(paramFloat);
- return i;
- }
- public final int superGetBrightnessForRender(float paramFloat)
- {
- return super.b(paramFloat);
- }
- public final int localGetBrightnessForRender(float paramFloat)
- {
- return super.b(paramFloat);
- }
- public float a(pb parampb)
- {
- float f;
- if ((this.playerAPI != null) && (this.playerAPI.isGetCurrentPlayerStrVsBlockModded))
- f = PlayerAPI.getCurrentPlayerStrVsBlock(this, parampb);
- else
- f = super.a(parampb);
- return f;
- }
- public final float superGetCurrentPlayerStrVsBlock(pb parampb)
- {
- return super.a(parampb);
- }
- public final float localGetCurrentPlayerStrVsBlock(pb parampb)
- {
- return super.a(parampb);
- }
- public double f(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- double d1;
- if ((this.playerAPI != null) && (this.playerAPI.isGetDistanceSqModded))
- d1 = PlayerAPI.getDistanceSq(this, paramDouble1, paramDouble2, paramDouble3);
- else
- d1 = super.f(paramDouble1, paramDouble2, paramDouble3);
- return d1;
- }
- public final double superGetDistanceSq(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- return super.f(paramDouble1, paramDouble2, paramDouble3);
- }
- public final double localGetDistanceSq(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- return super.f(paramDouble1, paramDouble2, paramDouble3);
- }
- public double f(nn paramnn)
- {
- double d1;
- if ((this.playerAPI != null) && (this.playerAPI.isGetDistanceSqToEntityModded))
- d1 = PlayerAPI.getDistanceSqToEntity(this, paramnn);
- else
- d1 = super.f(paramnn);
- return d1;
- }
- public final double superGetDistanceSqToEntity(nn paramnn)
- {
- return super.f(paramnn);
- }
- public final double localGetDistanceSqToEntity(nn paramnn)
- {
- return super.f(paramnn);
- }
- public float I_()
- {
- float f;
- if ((this.playerAPI != null) && (this.playerAPI.isGetFOVMultiplierModded))
- f = PlayerAPI.getFOVMultiplier(this);
- else
- f = localGetFOVMultiplier();
- return f;
- }
- public final float localGetFOVMultiplier()
- {
- float f1 = 1.0F;
- if (this.aT.b) f1 *= 1.1F;
- f1 *= (this.bt * at() / this.aX + 1.0F) / 2.0F;
- if ((aj()) && (ah().c == yr.k.bQ)) {
- int i = al();
- float f2 = i / 20.0F;
- if (f2 > 1.0F)
- f2 = 1.0F;
- else
- f2 *= f2;
- f1 *= (1.0F - (f2 * 0.15F));
- }
- return f1;
- }
- protected String n()
- {
- String str;
- if ((this.playerAPI != null) && (this.playerAPI.isGetHurtSoundModded))
- str = PlayerAPI.getHurtSound(this);
- else
- str = super.n();
- return str;
- }
- public final String realGetHurtSound()
- {
- return n();
- }
- public final String superGetHurtSound()
- {
- return super.n();
- }
- public final String localGetHurtSound()
- {
- return super.n();
- }
- public int b(aan paramaan, int paramInt)
- {
- int i;
- if ((this.playerAPI != null) && (this.playerAPI.isGetItemIconModded))
- i = PlayerAPI.getItemIcon(this, paramaan, paramInt);
- else
- i = super.b(paramaan, paramInt);
- return i;
- }
- public final int superGetItemIcon(aan paramaan, int paramInt)
- {
- return super.b(paramaan, paramInt);
- }
- public final int localGetItemIcon(aan paramaan, int paramInt)
- {
- return super.b(paramaan, paramInt);
- }
- public int aB()
- {
- int i;
- if ((this.playerAPI != null) && (this.playerAPI.isGetSleepTimerModded))
- i = PlayerAPI.getSleepTimer(this);
- else
- i = super.aB();
- return i;
- }
- public final int superGetSleepTimer()
- {
- return super.aB();
- }
- public final int localGetSleepTimer()
- {
- return super.aB();
- }
- public boolean J()
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isHandleLavaMovementModded))
- bool = PlayerAPI.handleLavaMovement(this);
- else
- bool = super.J();
- return bool;
- }
- public final boolean superHandleLavaMovement()
- {
- return super.J();
- }
- public final boolean localHandleLavaMovement()
- {
- return super.J();
- }
- public boolean g_()
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isHandleWaterMovementModded))
- bool = PlayerAPI.handleWaterMovement(this);
- else
- bool = super.g_();
- return bool;
- }
- public final boolean superHandleWaterMovement()
- {
- return super.g_();
- }
- public final boolean localHandleWaterMovement()
- {
- return super.g_();
- }
- public void k(int paramInt)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isHealModded))
- PlayerAPI.heal(this, paramInt);
- else
- super.k(paramInt);
- }
- public final void superHeal(int paramInt)
- {
- super.k(paramInt);
- }
- public final void localHeal(int paramInt)
- {
- super.k(paramInt);
- }
- public boolean N()
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isIsEntityInsideOpaqueBlockModded))
- bool = PlayerAPI.isEntityInsideOpaqueBlock(this);
- else
- bool = super.N();
- return bool;
- }
- public final boolean superIsEntityInsideOpaqueBlock()
- {
- return super.N();
- }
- public final boolean localIsEntityInsideOpaqueBlock()
- {
- return super.N();
- }
- public boolean H()
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isIsInWaterModded))
- bool = PlayerAPI.isInWater(this);
- else
- bool = super.H();
- return bool;
- }
- public final boolean superIsInWater()
- {
- return super.H();
- }
- public final boolean localIsInWater()
- {
- return super.H();
- }
- public boolean a(acn paramacn)
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isIsInsideOfMaterialModded))
- bool = PlayerAPI.isInsideOfMaterial(this, paramacn);
- else
- bool = super.a(paramacn);
- return bool;
- }
- public final boolean superIsInsideOfMaterial(acn paramacn)
- {
- return super.a(paramacn);
- }
- public final boolean localIsInsideOfMaterial(acn paramacn)
- {
- return super.a(paramacn);
- }
- public boolean p()
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isIsOnLadderModded))
- bool = PlayerAPI.isOnLadder(this);
- else
- bool = super.p();
- return bool;
- }
- public final boolean superIsOnLadder()
- {
- return super.p();
- }
- public final boolean localIsOnLadder()
- {
- return super.p();
- }
- public boolean V()
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isIsSneakingModded))
- bool = PlayerAPI.isSneaking(this);
- else
- bool = localIsSneaking();
- return bool;
- }
- public final boolean superIsSneaking()
- {
- return super.V();
- }
- public final boolean localIsSneaking()
- {
- return ((this.a.e) && (!(this.aK)));
- }
- public boolean W()
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isIsSprintingModded))
- bool = PlayerAPI.isSprinting(this);
- else
- bool = super.W();
- return bool;
- }
- public final boolean superIsSprinting()
- {
- return super.W();
- }
- public final boolean localIsSprinting()
- {
- return super.W();
- }
- protected void aD()
- {
- if ((this.playerAPI != null) && (this.playerAPI.isJumpModded))
- PlayerAPI.jump(this);
- else
- super.aD();
- }
- public final void realJump()
- {
- aD();
- }
- public final void superJump()
- {
- super.aD();
- }
- public final void localJump()
- {
- super.aD();
- }
- public void b(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isMoveEntityModded))
- PlayerAPI.moveEntity(this, paramDouble1, paramDouble2, paramDouble3);
- else
- localMoveEntity(paramDouble1, paramDouble2, paramDouble3);
- }
- public final void superMoveEntity(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- super.b(paramDouble1, paramDouble2, paramDouble3);
- }
- public final void localMoveEntity(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- super.b(paramDouble1, paramDouble2, paramDouble3);
- }
- public void a_(float paramFloat1, float paramFloat2)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isMoveEntityWithHeadingModded))
- PlayerAPI.moveEntityWithHeading(this, paramFloat1, paramFloat2);
- else
- super.a_(paramFloat1, paramFloat2);
- }
- public final void superMoveEntityWithHeading(float paramFloat1, float paramFloat2)
- {
- super.a_(paramFloat1, paramFloat2);
- }
- public final void localMoveEntityWithHeading(float paramFloat1, float paramFloat2)
- {
- super.a_(paramFloat1, paramFloat2);
- }
- public void a(float paramFloat1, float paramFloat2, float paramFloat3)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isMoveFlyingModded))
- PlayerAPI.moveFlying(this, paramFloat1, paramFloat2, paramFloat3);
- else
- super.a(paramFloat1, paramFloat2, paramFloat3);
- }
- public final void superMoveFlying(float paramFloat1, float paramFloat2, float paramFloat3)
- {
- super.a(paramFloat1, paramFloat2, paramFloat3);
- }
- public final void localMoveFlying(float paramFloat1, float paramFloat2, float paramFloat3)
- {
- super.a(paramFloat1, paramFloat2, paramFloat3);
- }
- public void a(md parammd)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isOnDeathModded))
- PlayerAPI.onDeath(this, parammd);
- else
- super.a(parammd);
- }
- public final void superOnDeath(md parammd)
- {
- super.a(parammd);
- }
- public final void localOnDeath(md parammd)
- {
- super.a(parammd);
- }
- public void e()
- {
- if ((this.playerAPI != null) && (this.playerAPI.isOnLivingUpdateModded))
- PlayerAPI.onLivingUpdate(this);
- else
- localOnLivingUpdate();
- }
- public final void superOnLivingUpdate()
- {
- super.e();
- }
- public final void localOnLivingUpdate()
- {
- if (this.d > 0) {
- this.d -= 1;
- if (this.d == 0)
- d(false);
- }
- if (this.c > 0) this.c -= 1;
- if (this.b.c.e()) {
- this.o = (this.q = 0.5D);
- this.o = 0.0D;
- this.q = 0.0D;
- this.u = (this.V / 12.0F);
- this.v = 10.0F;
- this.p = 68.5D;
- return;
- }
- if (!(this.b.K.a(dp.f)))
- this.b.v.b(dp.f);
- this.aS = this.aR;
- if (this.aQ) {
- if ((!(this.k.F)) && (this.j != null))
- h(null);
- if (this.b.s != null) this.b.a((vp)null);
- if (this.aR == 0.0F)
- this.b.C.a("portal.trigger", 1.0F, this.U.nextFloat() * 0.4F + 0.8F);
- this.aR += 0.0125F;
- if (this.aR >= 1.0F) {
- this.aR = 1.0F;
- if (!(this.k.F)) {
- this.aP = 10;
- this.b.C.a("portal.travel", 1.0F, this.U.nextFloat() * 0.4F + 0.8F);
- int i = 0;
- if (this.aB == -1) i = 0;
- else i = -1;
- this.b.a(i);
- a(dp.x);
- }
- }
- this.aQ = false;
- } else if ((a(aad.k)) && (b(aad.k).b() > 60)) {
- this.aR += 0.006666667F;
- if (this.aR > 1.0F)
- this.aR = 1.0F;
- }
- else {
- if (this.aR > 0.0F) this.aR -= 0.05F;
- if (this.aR < 0.0F) this.aR = 0.0F;
- }
- if (this.aP > 0) this.aP -= 1;
- boolean bool = this.a.d;
- float f = 0.8F;
- int j = (this.a.b >= f) ? 1 : 0;
- this.a.a();
- if (aj()) {
- this.a.a *= 0.2F;
- this.a.b *= 0.2F;
- this.c = 0;
- }
- if ((this.a.e) && (this.Q < 0.2F))
- this.Q = 0.2F;
- h(this.o - (this.I * 0.35D), this.y.b + 0.5D, this.q + this.I * 0.35D);
- h(this.o - (this.I * 0.35D), this.y.b + 0.5D, this.q - (this.I * 0.35D));
- h(this.o + this.I * 0.35D, this.y.b + 0.5D, this.q - (this.I * 0.35D));
- h(this.o + this.I * 0.35D, this.y.b + 0.5D, this.q + this.I * 0.35D);
- int k = (aF().a() > 6.0F) ? 1 : 0;
- if ((this.z) && (j == 0) && (this.a.b >= f) && (!(W())) && (k != 0) && (!(aj())) && (!(a(aad.q))))
- if (this.c == 0) {
- this.c = 7;
- } else {
- d(true);
- this.c = 0;
- }
- if (V()) this.c = 0;
- if ((W()) && (((this.a.b < f) || (this.A) || (k == 0)))) {
- d(false);
- }
- if ((this.aT.c) && (!(bool)) && (this.a.d))
- {
- if (this.at == 0) { this.at = 7;
- } else {
- this.aT.b = (!(this.aT.b));
- aI();
- this.at = 0;
- }
- }
- if (this.aT.b)
- {
- if (this.a.e) this.s -= 0.15D;
- if (this.a.d) this.s += 0.15D;
- }
- super.e();
- if ((this.z) && (this.aT.b)) {
- this.aT.b = false;
- aI();
- }
- }
- public void b(acq paramacq)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isOnKillEntityModded))
- PlayerAPI.onKillEntity(this, paramacq);
- else
- super.b(paramacq);
- }
- public final void superOnKillEntity(acq paramacq)
- {
- super.b(paramacq);
- }
- public final void localOnKillEntity(acq paramacq)
- {
- super.b(paramacq);
- }
- public void J_()
- {
- if ((this.playerAPI != null) && (this.playerAPI.isOnUpdateModded))
- PlayerAPI.onUpdate(this);
- else
- super.J_();
- }
- public final void superOnUpdate()
- {
- super.J_();
- }
- public final void localOnUpdate()
- {
- super.J_();
- }
- protected boolean h(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- boolean bool;
- if ((this.playerAPI != null) && (this.playerAPI.isPushOutOfBlocksModded))
- bool = PlayerAPI.pushOutOfBlocks(this, paramDouble1, paramDouble2, paramDouble3);
- else
- bool = localPushOutOfBlocks(paramDouble1, paramDouble2, paramDouble3);
- return bool;
- }
- public final boolean realPushOutOfBlocks(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- return h(paramDouble1, paramDouble2, paramDouble3);
- }
- public final boolean superPushOutOfBlocks(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- return super.h(paramDouble1, paramDouble2, paramDouble3);
- }
- public final boolean localPushOutOfBlocks(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- int i = gk.c(paramDouble1);
- int j = gk.c(paramDouble2);
- int k = gk.c(paramDouble3);
- double d1 = paramDouble1 - i;
- double d2 = paramDouble3 - k;
- if ((g(i, j, k)) || (g(i, j + 1, k))) {
- int l = ((!(g(i - 1, j, k))) && (!(g(i - 1, j + 1, k)))) ? 1 : 0;
- int i1 = ((!(g(i + 1, j, k))) && (!(g(i + 1, j + 1, k)))) ? 1 : 0;
- int i2 = ((!(g(i, j, k - 1))) && (!(g(i, j + 1, k - 1)))) ? 1 : 0;
- int i3 = ((!(g(i, j, k + 1))) && (!(g(i, j + 1, k + 1)))) ? 1 : 0;
- int i4 = -1;
- double d3 = 9999.0D;
- if ((l != 0) && (d1 < d3)) {
- d3 = d1;
- i4 = 0;
- }
- if ((i1 != 0) && (1.0D - d1 < d3)) {
- d3 = 1.0D - d1;
- i4 = 1;
- }
- if ((i2 != 0) && (d2 < d3)) {
- d3 = d2;
- i4 = 4;
- }
- if ((i3 != 0) && (1.0D - d2 < d3)) {
- d3 = 1.0D - d2;
- i4 = 5;
- }
- float f = 0.1F;
- if (i4 == 0) this.r = (-f);
- if (i4 == 1) this.r = f;
- if (i4 == 4) this.t = (-f);
- if (i4 == 5) this.t = f;
- }
- return false;
- }
- public pl a(double paramDouble, float paramFloat)
- {
- pl localpl;
- if ((this.playerAPI != null) && (this.playerAPI.isRayTraceModded))
- localpl = PlayerAPI.rayTrace(this, paramDouble, paramFloat);
- else
- localpl = super.a(paramDouble, paramFloat);
- return localpl;
- }
- public final pl superRayTrace(double paramDouble, float paramFloat)
- {
- return super.a(paramDouble, paramFloat);
- }
- public final pl localRayTrace(double paramDouble, float paramFloat)
- {
- return super.a(paramDouble, paramFloat);
- }
- public void a(ady paramady)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isReadEntityFromNBTModded))
- PlayerAPI.readEntityFromNBT(this, paramady);
- else
- localReadEntityFromNBT(paramady);
- }
- public final void superReadEntityFromNBT(ady paramady)
- {
- super.a(paramady);
- }
- public final void localReadEntityFromNBT(ady paramady)
- {
- super.a(paramady);
- this.av = paramady.f("Score");
- }
- public void ag()
- {
- if ((this.playerAPI != null) && (this.playerAPI.isRespawnPlayerModded))
- PlayerAPI.respawnPlayer(this);
- else
- localRespawnPlayer();
- }
- public final void superRespawnPlayer()
- {
- super.ag();
- }
- public final void localRespawnPlayer()
- {
- this.b.a(false, 0, false);
- }
- public void a(String paramString)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isSendChatMessageModded))
- PlayerAPI.sendChatMessage(this, paramString);
- else
- localSendChatMessage(paramString);
- }
- public final void localSendChatMessage(String paramString)
- {
- }
- public void A()
- {
- if ((this.playerAPI != null) && (this.playerAPI.isSetDeadModded))
- PlayerAPI.setDead(this);
- else
- super.A();
- }
- public final void superSetDead()
- {
- super.A();
- }
- public final void localSetDead()
- {
- super.A();
- }
- public void b(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isSetPositionAndRotationModded))
- PlayerAPI.setPositionAndRotation(this, paramDouble1, paramDouble2, paramDouble3, paramFloat1, paramFloat2);
- else
- super.b(paramDouble1, paramDouble2, paramDouble3, paramFloat1, paramFloat2);
- }
- public final void superSetPositionAndRotation(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)
- {
- super.b(paramDouble1, paramDouble2, paramDouble3, paramFloat1, paramFloat2);
- }
- public final void localSetPositionAndRotation(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)
- {
- super.b(paramDouble1, paramDouble2, paramDouble3, paramFloat1, paramFloat2);
- }
- public ci d(int paramInt1, int paramInt2, int paramInt3)
- {
- ci localci;
- if ((this.playerAPI != null) && (this.playerAPI.isSleepInBedAtModded))
- localci = PlayerAPI.sleepInBedAt(this, paramInt1, paramInt2, paramInt3);
- else
- localci = super.d(paramInt1, paramInt2, paramInt3);
- return localci;
- }
- public final ci superSleepInBedAt(int paramInt1, int paramInt2, int paramInt3)
- {
- return super.d(paramInt1, paramInt2, paramInt3);
- }
- public final ci localSleepInBedAt(int paramInt1, int paramInt2, int paramInt3)
- {
- return super.d(paramInt1, paramInt2, paramInt3);
- }
- public void ax()
- {
- if ((this.playerAPI != null) && (this.playerAPI.isSwingItemModded))
- PlayerAPI.swingItem(this);
- else
- super.ax();
- }
- public final void superSwingItem()
- {
- super.ax();
- }
- public final void localSwingItem()
- {
- super.ax();
- }
- public void y_()
- {
- if ((this.playerAPI != null) && (this.playerAPI.isUpdateEntityActionStateModded))
- PlayerAPI.updateEntityActionState(this);
- else
- localUpdateEntityActionState();
- }
- public final void superUpdateEntityActionState()
- {
- super.y_();
- }
- public final void localUpdateEntityActionState()
- {
- super.y_();
- this.ce = this.a.a;
- this.cf = this.a.b;
- this.ch = this.a.d;
- this.an = this.e;
- this.ao = this.am;
- this.am = (float)(this.am + (this.v - this.am) * 0.5D);
- this.e = (float)(this.e + (this.u - this.e) * 0.5D);
- }
- public void b(ady paramady)
- {
- if ((this.playerAPI != null) && (this.playerAPI.isWriteEntityToNBTModded))
- PlayerAPI.writeEntityToNBT(this, paramady);
- else
- localWriteEntityToNBT(paramady);
- }
- public final void superWriteEntityToNBT(ady paramady)
- {
- super.b(paramady);
- }
- public final void localWriteEntityToNBT(ady paramady)
- {
- super.b(paramady);
- paramady.a("Score", this.av);
- }
- public void b(String paramString)
- {
- this.b.w.c(paramString);
- }
- public final void superAddChatMessage(String paramString)
- {
- super.b(paramString);
- }
- public final boolean superAddEntityID(ady paramady)
- {
- return super.c(paramady);
- }
- public final void superAddExperience(int paramInt)
- {
- super.i(paramInt);
- }
- public final void superAddMovementStat(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- super.i(paramDouble1, paramDouble2, paramDouble3);
- }
- public final void superAddPotionEffect(alg paramalg)
- {
- super.b(paramalg);
- }
- public void a(ajw paramajw, int paramInt)
- {
- if (paramajw == null)
- return;
- if (paramajw.e()) {
- aeb localaeb = (aeb)paramajw;
- if ((localaeb.c == null) || (this.b.K.a(localaeb.c))) {
- if (!(this.b.K.a(localaeb)))
- this.b.v.a(localaeb);
- this.b.K.a(paramajw, paramInt);
- }
- } else {
- this.b.K.a(paramajw, paramInt);
- }
- }
- public final void superAddStat(ajw paramajw, int paramInt)
- {
- super.a(paramajw, paramInt);
- }
- public final void superAddToPlayerScore(nn paramnn, int paramInt)
- {
- super.a(paramnn, paramInt);
- }
- public final void superAddVelocity(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- super.c(paramDouble1, paramDouble2, paramDouble3);
- }
- public final void realAlertWolves(acq paramacq, boolean paramBoolean)
- {
- a(paramacq, paramBoolean);
- }
- public final void superAlertWolves(acq paramacq, boolean paramBoolean)
- {
- super.a(paramacq, paramBoolean);
- }
- public final int realApplyArmorCalculations(md parammd, int paramInt)
- {
- return d(parammd, paramInt);
- }
- public final int superApplyArmorCalculations(md parammd, int paramInt)
- {
- return super.d(parammd, paramInt);
- }
- public final void superApplyEntityCollision(nn paramnn)
- {
- super.g(paramnn);
- }
- public final int realApplyPotionDamageCalculations(md parammd, int paramInt)
- {
- return b(parammd, paramInt);
- }
- public final int superApplyPotionDamageCalculations(md parammd, int paramInt)
- {
- return super.b(parammd, paramInt);
- }
- public final boolean superAttackEntityAsMob(nn paramnn)
- {
- return super.c(paramnn);
- }
- public final boolean superCanAttackWithItem()
- {
- return super.k_();
- }
- public final boolean superCanBeCollidedWith()
- {
- return super.l_();
- }
- public final boolean superCanBePushed()
- {
- return super.d_();
- }
- public final boolean realCanDespawn()
- {
- return c_();
- }
- public final boolean superCanDespawn()
- {
- return super.c_();
- }
- public final boolean superCanEat(boolean paramBoolean)
- {
- return super.a(paramBoolean);
- }
- public final boolean superCanEntityBeSeen(nn paramnn)
- {
- return super.m(paramnn);
- }
- public final void superClearActivePotions()
- {
- super.bf();
- }
- public final void superClearItemInUse()
- {
- super.an();
- }
- public final void superCopyPlayer(yw paramyw)
- {
- super.d(paramyw);
- }
- public final void realDamageArmor(int paramInt)
- {
- h(paramInt);
- }
- public final void superDamageArmor(int paramInt)
- {
- super.h(paramInt);
- }
- public final void realDealFireDamage(int paramInt)
- {
- a(paramInt);
- }
- public final void superDealFireDamage(int paramInt)
- {
- super.a(paramInt);
- }
- public final int realDecreaseAirSupply(int paramInt)
- {
- return b(paramInt);
- }
- public final int superDecreaseAirSupply(int paramInt)
- {
- return super.b(paramInt);
- }
- public final void realDespawnEntity()
- {
- w();
- }
- public final void superDespawnEntity()
- {
- super.w();
- }
- public final void superDestroyCurrentEquippedItem()
- {
- super.aw();
- }
- public final void superDetachHome()
- {
- super.aX();
- }
- public final void realDropFewItems(boolean paramBoolean, int paramInt)
- {
- a(paramBoolean, paramInt);
- }
- public final void superDropFewItems(boolean paramBoolean, int paramInt)
- {
- super.a(paramBoolean, paramInt);
- }
- public final fq superDropItem(int paramInt1, int paramInt2)
- {
- return super.b(paramInt1, paramInt2);
- }
- public final fq superDropItemWithOffset(int paramInt1, int paramInt2, float paramFloat)
- {
- return super.a(paramInt1, paramInt2, paramFloat);
- }
- public final void realDropRareDrop(int paramInt)
- {
- j_(paramInt);
- }
- public final void superDropRareDrop(int paramInt)
- {
- super.j_(paramInt);
- }
- public final void superEatGrassBonus()
- {
- super.v();
- }
- public final fq superEntityDropItem(aan paramaan, float paramFloat)
- {
- return super.a(paramaan, paramFloat);
- }
- public final void realEntityInit()
- {
- b();
- }
- public final void superEntityInit()
- {
- super.b();
- }
- public final boolean superEquals(Object paramObject)
- {
- return super.equals(paramObject);
- }
- public final void superExtinguish()
- {
- super.D();
- }
- public final void superFaceEntity(nn paramnn, float paramFloat1, float paramFloat2)
- {
- super.a(paramnn, paramFloat1, paramFloat2);
- }
- public final void superFunc_48079_f(float paramFloat)
- {
- super.f(paramFloat);
- }
- public final abk superFunc_48090_aM()
- {
- return super.aN();
- }
- public final void superFunc_48098_g(float paramFloat)
- {
- super.g(paramFloat);
- }
- public final boolean superFunc_48100_a(Class paramClass)
- {
- return super.a(paramClass);
- }
- public final float superFunc_48101_aR()
- {
- return super.aS();
- }
- public final void superFunc_50009_aI()
- {
- super.aI();
- }
- public void ab()
- {
- }
- public final acq superGetAITarget()
- {
- return super.aP();
- }
- public final alg superGetActivePotionEffect(aad paramaad)
- {
- return super.b(paramaad);
- }
- public final Collection superGetActivePotionEffects()
- {
- return super.bg();
- }
- public final int superGetAge()
- {
- return super.aR();
- }
- public final int superGetAir()
- {
- return super.Y();
- }
- public final acq superGetAttackTarget()
- {
- return super.aT();
- }
- public final float superGetBedOrientationInDegrees()
- {
- return super.ay();
- }
- public final wu superGetBoundingBox()
- {
- return super.f_();
- }
- public final boolean superGetCanSpawnHere()
- {
- return super.i();
- }
- public final float superGetCollisionBorderSize()
- {
- return super.j_();
- }
- public final wu superGetCollisionBox(nn paramnn)
- {
- return super.b(paramnn);
- }
- public final bk superGetCreatureAttribute()
- {
- return super.s();
- }
- public final aan superGetCurrentEquippedItem()
- {
- return super.av();
- }
- public final aim superGetDataWatcher()
- {
- return super.y();
- }
- public final String realGetDeathSound()
- {
- return o();
- }
- public final String superGetDeathSound()
- {
- return super.o();
- }
- public final double superGetDistance(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- return super.g(paramDouble1, paramDouble2, paramDouble3);
- }
- public final float superGetDistanceToEntity(nn paramnn)
- {
- return super.e(paramnn);
- }
- public final int realGetDropItemId()
- {
- return f();
- }
- public final int superGetDropItemId()
- {
- return super.f();
- }
- public final int realGetExperiencePoints(yw paramyw)
- {
- return b(paramyw);
- }
- public final int superGetExperiencePoints(yw paramyw)
- {
- return super.b(paramyw);
- }
- public final float superGetEyeHeight()
- {
- return super.I();
- }
- public final boolean realGetFlag(int paramInt)
- {
- return f(paramInt);
- }
- public final boolean superGetFlag(int paramInt)
- {
- return super.f(paramInt);
- }
- public final ne superGetFoodStats()
- {
- return super.aF();
- }
- public final int superGetHealth()
- {
- return super.bb();
- }
- public final aan superGetHeldItem()
- {
- return super.ae();
- }
- public final uh superGetHomePosition()
- {
- return super.aV();
- }
- public final aan superGetItemInUse()
- {
- return super.ah();
- }
- public final int superGetItemInUseCount()
- {
- return super.ai();
- }
- public final int superGetItemInUseDuration()
- {
- return super.al();
- }
- public final aej superGetJumpHelper()
- {
- return super.aL();
- }
- public final acq superGetLastAttackingEntity()
- {
- return super.aQ();
- }
- public final String realGetLivingSound()
- {
- return m();
- }
- public final String superGetLivingSound()
- {
- return super.m();
- }
- public final bo superGetLook(float paramFloat)
- {
- return super.k(paramFloat);
- }
- public final vz superGetLookHelper()
- {
- return super.aJ();
- }
- public final bo superGetLookVec()
- {
- return super.Q();
- }
- public final int superGetMaxHealth()
- {
- return super.d();
- }
- public final int superGetMaxSpawnedInChunk()
- {
- return super.ac();
- }
- public final float superGetMaximumHomeDistance()
- {
- return super.aW();
- }
- public final double superGetMountedYOffset()
- {
- return super.l();
- }
- public final j superGetMoveHelper()
- {
- return super.aK();
- }
- public final rh superGetNavigator()
- {
- return super.aM();
- }
- public final nn[] superGetParts()
- {
- return super.Z();
- }
- public final bo superGetPosition(float paramFloat)
- {
- return super.j(paramFloat);
- }
- public final Random superGetRNG()
- {
- return super.aO();
- }
- public final float superGetRenderSizeModifier()
- {
- return super.bd();
- }
- public final int superGetScore()
- {
- return super.ar();
- }
- public final float superGetShadowSize()
- {
- return super.h_();
- }
- public final float realGetSoundVolume()
- {
- return C_();
- }
- public final float superGetSoundVolume()
- {
- return super.C_();
- }
- public final uh superGetSpawnChunk()
- {
- return super.aC();
- }
- public final float realGetSpeedModifier()
- {
- return at();
- }
- public final float superGetSpeedModifier()
- {
- return super.at();
- }
- public final float superGetSwingProgress(float paramFloat)
- {
- return super.i(paramFloat);
- }
- public final int superGetTalkInterval()
- {
- return super.j();
- }
- public final String superGetTexture()
- {
- return super.v_();
- }
- public final int superGetTotalArmorValue()
- {
- return super.au();
- }
- public final int superGetVerticalFaceSpeed()
- {
- return super.ak();
- }
- public final double superGetYOffset()
- {
- return super.P();
- }
- public final void superHandleHealthUpdate(byte paramByte)
- {
- super.a(paramByte);
- }
- public final boolean superHasHome()
- {
- return super.aY();
- }
- public final int superHashCode()
- {
- return super.hashCode();
- }
- public final boolean superInteract(yw paramyw)
- {
- return super.c(paramyw);
- }
- public final boolean realIsAIEnabled()
- {
- return b_();
- }
- public final boolean superIsAIEnabled()
- {
- return super.b_();
- }
- private boolean g(int paramInt1, int paramInt2, int paramInt3)
- {
- return this.k.h(paramInt1, paramInt2, paramInt3);
- }
- public final boolean realIsBlockTranslucent(int paramInt1, int paramInt2, int paramInt3)
- {
- return g(paramInt1, paramInt2, paramInt3);
- }
- public final boolean superIsBlocking()
- {
- return super.ao();
- }
- public final boolean superIsBurning()
- {
- return super.T();
- }
- public final boolean superIsChild()
- {
- return super.bi();
- }
- protected boolean H_()
- {
- return true;
- }
- public final boolean realIsClientWorld()
- {
- return H_();
- }
- public final boolean superIsClientWorld()
- {
- return super.H_();
- }
- public final boolean superIsEating()
- {
- return super.X();
- }
- public final boolean superIsEntityAlive()
- {
- return super.M();
- }
- public final boolean superIsEntityEqual(nn paramnn)
- {
- return super.a(paramnn);
- }
- public final boolean superIsEntityUndead()
- {
- return super.bh();
- }
- public final boolean superIsInRangeToRenderDist(double paramDouble)
- {
- return super.a(paramDouble);
- }
- public final boolean superIsInRangeToRenderVec3D(bo parambo)
- {
- return super.a(parambo);
- }
- public final boolean realIsMovementBlocked()
- {
- return aq();
- }
- public final boolean superIsMovementBlocked()
- {
- return super.aq();
- }
- public final boolean superIsOffsetPositionInLiquid(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- return super.e(paramDouble1, paramDouble2, paramDouble3);
- }
- public final boolean realIsPVPEnabled()
- {
- return B_();
- }
- public final boolean superIsPVPEnabled()
- {
- return super.B_();
- }
- public final boolean realIsPlayer()
- {
- return aH();
- }
- public final boolean superIsPlayer()
- {
- return super.aH();
- }
- public final boolean superIsPlayerFullyAsleep()
- {
- return super.aA();
- }
- public final boolean superIsPlayerSleeping()
- {
- return super.az();
- }
- public final boolean superIsPotionActive(aad paramaad)
- {
- return super.a(paramaad);
- }
- public final boolean superIsPotionApplicable(alg paramalg)
- {
- return super.a(paramalg);
- }
- public final boolean superIsRiding()
- {
- return super.U();
- }
- public final boolean superIsUsingItem()
- {
- return super.aj();
- }
- public final boolean superIsWet()
- {
- return super.G();
- }
- public final boolean superIsWithinHomeDistance(int paramInt1, int paramInt2, int paramInt3)
- {
- return super.f(paramInt1, paramInt2, paramInt3);
- }
- public final boolean superIsWithinHomeDistanceCurrentPosition()
- {
- return super.aU();
- }
- public final void realJoinEntityItemWithWorld(fq paramfq)
- {
- a(paramfq);
- }
- public final void superJoinEntityItemWithWorld(fq paramfq)
- {
- super.a(paramfq);
- }
- public final void realKill()
- {
- E();
- }
- public final void superKill()
- {
- super.E();
- }
- public final void superKnockBack(nn paramnn, int paramInt, double paramDouble1, double paramDouble2)
- {
- super.a(paramnn, paramInt, paramDouble1, paramDouble2);
- }
- public final void superMountEntity(nn paramnn)
- {
- super.h(paramnn);
- }
- public final no realNewDoubleNBTList(double[] paramArrayOfDouble)
- {
- return a(paramArrayOfDouble);
- }
- public final no superNewDoubleNBTList(double[] paramArrayOfDouble)
- {
- return super.a(paramArrayOfDouble);
- }
- public final no realNewFloatNBTList(float[] paramArrayOfFloat)
- {
- return a(paramArrayOfFloat);
- }
- public final no superNewFloatNBTList(float[] paramArrayOfFloat)
- {
- return super.a(paramArrayOfFloat);
- }
- public final void realOnChangedPotionEffect(alg paramalg)
- {
- d(paramalg);
- }
- public final void superOnChangedPotionEffect(alg paramalg)
- {
- super.d(paramalg);
- }
- public final void superOnCollideWithPlayer(yw paramyw)
- {
- super.a(paramyw);
- }
- public void d(nn paramnn)
- {
- this.b.j.a(new fs(this.b.f, paramnn));
- }
- public final void superOnCriticalHit(nn paramnn)
- {
- super.d(paramnn);
- }
- public final void realOnDeathUpdate()
- {
- w_();
- }
- public final void superOnDeathUpdate()
- {
- super.w_();
- }
- public void i(nn paramnn)
- {
- fs localfs = new fs(this.b.f, paramnn, "magicCrit");
- this.b.j.a(localfs);
- }
- public final void superOnEnchantmentCritical(nn paramnn)
- {
- super.i(paramnn);
- }
- public final void superOnEntityDeath()
- {
- super.bc();
- }
- public final void superOnEntityUpdate()
- {
- super.B();
- }
- public final void realOnFinishedPotionEffect(alg paramalg)
- {
- e(paramalg);
- }
- public final void superOnFinishedPotionEffect(alg paramalg)
- {
- super.e(paramalg);
- }
- public void b(nn paramnn, int paramInt)
- {
- this.b.j.a(new ws(this.b.f, paramnn, this, -0.5F));
- }
- public final void superOnItemPickup(nn paramnn, int paramInt)
- {
- super.b(paramnn, paramInt);
- }
- public final void superOnItemStackChanged(aan paramaan)
- {
- super.b(paramaan);
- }
- public final void realOnItemUseFinish()
- {
- ap();
- }
- public final void superOnItemUseFinish()
- {
- super.ap();
- }
- public final void realOnNewPotionEffect(alg paramalg)
- {
- c(paramalg);
- }
- public final void superOnNewPotionEffect(alg paramalg)
- {
- super.c(paramalg);
- }
- public final void superOnStruckByLightning(d paramd)
- {
- super.a(paramd);
- }
- public final void superOutfitWithItem(int paramInt1, int paramInt2, int paramInt3)
- {
- super.b(paramInt1, paramInt2, paramInt3);
- }
- public final void superPerformHurtAnimation()
- {
- super.k();
- }
- public final void superPlayLivingSound()
- {
- super.aZ();
- }
- public final void realPlayStepSound(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
- {
- a(paramInt1, paramInt2, paramInt3, paramInt4);
- }
- public final void superPlayStepSound(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
- {
- super.a(paramInt1, paramInt2, paramInt3, paramInt4);
- }
- public final void superPreparePlayerToSpawn()
- {
- super.z();
- }
- public final void superReadFromNBT(ady paramady)
- {
- super.e(paramady);
- }
- public final void superRemoveExperience(int paramInt)
- {
- super.j(paramInt);
- }
- public final void superRemovePotionEffect(int paramInt)
- {
- super.m(paramInt);
- }
- public final void superRenderBrokenItemStack(aan paramaan)
- {
- super.c(paramaan);
- }
- public final void realResetHeight()
- {
- aa();
- }
- public final void superResetHeight()
- {
- super.aa();
- }
- public final void superSetAir(int paramInt)
- {
- super.g(paramInt);
- }
- public final void superSetAngles(float paramFloat1, float paramFloat2)
- {
- super.c(paramFloat1, paramFloat2);
- }
- public final void superSetAttackTarget(acq paramacq)
- {
- super.c(paramacq);
- }
- public final void realSetBeenAttacked()
- {
- K();
- }
- public final void superSetBeenAttacked()
- {
- super.K();
- }
- public final void superSetEating(boolean paramBoolean)
- {
- super.e(paramBoolean);
- }
- public final void superSetEntityHealth(int paramInt)
- {
- super.l(paramInt);
- }
- public final void superSetFire(int paramInt)
- {
- super.e(paramInt);
- }
- public final void realSetFlag(int paramInt, boolean paramBoolean)
- {
- a(paramInt, paramBoolean);
- }
- public final void superSetFlag(int paramInt, boolean paramBoolean)
- {
- super.a(paramInt, paramBoolean);
- }
- public void d(int paramInt)
- {
- int i = bb() - paramInt;
- if (i <= 0) {
- l(paramInt);
- if (i < 0)
- this.Y = (this.ba / 2);
- }
- else {
- this.cc = i;
- l(bb());
- this.Y = this.ba;
- c(md.k, i);
- this.bA = (this.bB = 10);
- }
- }
- public final void superSetHomeArea(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
- {
- super.b(paramInt1, paramInt2, paramInt3, paramInt4);
- }
- public final void superSetInPortal()
- {
- super.R();
- }
- public final void superSetInWeb()
- {
- super.q();
- }
- public final void superSetItemInUse(aan paramaan, int paramInt)
- {
- super.c(paramaan, paramInt);
- }
- public final void superSetJumping(boolean paramBoolean)
- {
- super.i(paramBoolean);
- }
- public final void superSetLastAttackingEntity(nn paramnn)
- {
- super.l(paramnn);
- }
- public final void superSetLocationAndAngles(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)
- {
- super.c(paramDouble1, paramDouble2, paramDouble3, paramFloat1, paramFloat2);
- }
- public final void superSetMoveForward(float paramFloat)
- {
- super.h(paramFloat);
- }
- public final void realSetOnFireFromLava()
- {
- C();
- }
- public final void superSetOnFireFromLava()
- {
- super.C();
- }
- public final void superSetPosition(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- super.d(paramDouble1, paramDouble2, paramDouble3);
- }
- public final void superSetPositionAndRotation2(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2, int paramInt)
- {
- super.a(paramDouble1, paramDouble2, paramDouble3, paramFloat1, paramFloat2, paramInt);
- }
- public final void superSetPositionAndUpdate(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- super.j(paramDouble1, paramDouble2, paramDouble3);
- }
- public final void superSetRevengeTarget(acq paramacq)
- {
- super.a(paramacq);
- }
- public final void realSetRotation(float paramFloat1, float paramFloat2)
- {
- b(paramFloat1, paramFloat2);
- }
- public final void superSetRotation(float paramFloat1, float paramFloat2)
- {
- super.b(paramFloat1, paramFloat2);
- }
- public final void realSetSize(float paramFloat1, float paramFloat2)
- {
- a(paramFloat1, paramFloat2);
- }
- public final void superSetSize(float paramFloat1, float paramFloat2)
- {
- super.a(paramFloat1, paramFloat2);
- }
- public final void superSetSneaking(boolean paramBoolean)
- {
- super.c(paramBoolean);
- }
- public final void superSetSpawnChunk(uh paramuh)
- {
- super.a(paramuh);
- }
- public void d(boolean paramBoolean)
- {
- super.d(paramBoolean);
- this.d = ((paramBoolean) ? 600 : 0);
- }
- public final void superSetSprinting(boolean paramBoolean)
- {
- super.d(paramBoolean);
- }
- public final void superSetVelocity(double paramDouble1, double paramDouble2, double paramDouble3)
- {
- super.a(paramDouble1, paramDouble2, paramDouble3);
- }
- public final void superSetWorld(xd paramxd)
- {
- super.a(paramxd);
- }
- public void a(float paramFloat, int paramInt1, int paramInt2)
- {
- this.aW = paramFloat;
- this.aV = paramInt1;
- this.aU = paramInt2;
- }
- public final boolean superShouldHeal()
- {
- return super.aG();
- }
- public final void superSpawnExplosionParticle()
- {
- super.ba();
- }
- public final void superStopUsingItem()
- {
- super.am();
- }
- public void c(int paramInt)
- {
- if (this.k.F) return;
- if ((this.aB == 1) && (paramInt == 1)) {
- a(dp.C);
- this.b.a(new c());
- } else {
- a(dp.B);
- this.b.C.a("portal.travel", 1.0F, this.U.nextFloat() * 0.4F + 0.8F);
- this.b.a(1);
- }
- }
- public final void superTravelToTheEnd(int paramInt)
- {
- super.c(paramInt);
- }
- public final void superTriggerAchievement(ajw paramajw)
- {
- super.a(paramajw);
- }
- public final void realUpdateAITasks()
- {
- s_();
- }
- public final void superUpdateAITasks()
- {
- super.s_();
- }
- public final void realUpdateAITick()
- {
- g();
- }
- public final void superUpdateAITick()
- {
- super.g();
- }
- public final void superUpdateCloak()
- {
- super.S();
- }
- public final void realUpdateFallState(double paramDouble, boolean paramBoolean)
- {
- a(paramDouble, paramBoolean);
- }
- public final void superUpdateFallState(double paramDouble, boolean paramBoolean)
- {
- super.a(paramDouble, paramBoolean);
- }
- public final void realUpdateItemUse(aan paramaan, int paramInt)
- {
- a(paramaan, paramInt);
- }
- public final void superUpdateItemUse(aan paramaan, int paramInt)
- {
- super.a(paramaan, paramInt);
- }
- public final void realUpdatePotionEffects()
- {
- be();
- }
- public final void superUpdatePotionEffects()
- {
- super.be();
- }
- public final void superUpdateRidden()
- {
- super.O();
- }
- public final void superUpdateRiderPosition()
- {
- super.i_();
- }
- public final void superUseCurrentItemOnEntity(nn paramnn)
- {
- super.j(paramnn);
- }
- public final void superWakeUpPlayer(boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3)
- {
- super.a(paramBoolean1, paramBoolean2, paramBoolean3);
- }
- public final void superWriteToNBT(ady paramady)
- {
- super.d(paramady);
- }
- public final int superXpBarCap()
- {
- return super.aE();
- }
- public final HashMap getActivePotionsMapField()
- {
- return this.bS;
- }
- public final void setActivePotionsMapField(HashMap paramHashMap)
- {
- this.bS = paramHashMap;
- }
- public final yw getAttackingPlayerField()
- {
- return this.bO;
- }
- public final void setAttackingPlayerField(yw paramyw)
- {
- this.bO = paramyw;
- }
- public final int getCarryoverDamageField()
- {
- return this.bz;
- }
- public final void setCarryoverDamageField(int paramInt)
- {
- this.bz = paramInt;
- }
- public final aim getDataWatcherField()
- {
- return this.ac;
- }
- public final void setDataWatcherField(aim paramaim)
- {
- this.ac = paramaim;
- }
- public final boolean getDeadField()
- {
- return this.bH;
- }
- public final void setDeadField(boolean paramBoolean)
- {
- this.bH = paramBoolean;
- }
- public final float getDefaultPitchField()
- {
- return this.ci;
- }
- public final void setDefaultPitchField(float paramFloat)
- {
- this.ci = paramFloat;
- }
- public final int getEntityAgeField()
- {
- return this.cd;
- }
- public final void setEntityAgeField(int paramInt)
- {
- this.cd = paramInt;
- }
- public final String getEntityTypeField()
- {
- return this.bp;
- }
- public final void setEntityTypeField(String paramString)
- {
- this.bp = paramString;
- }
- public final int getExperienceValueField()
- {
- return this.bI;
- }
- public final void setExperienceValueField(int paramInt)
- {
- this.bI = paramInt;
- }
- public final ch getField_21902_bLField()
- {
- return this.cn;
- }
- public final void setField_21902_bLField(ch paramch)
- {
- this.cn = paramch;
- }
- public final ch getField_21903_bJField()
- {
- return this.cl;
- }
- public final void setField_21903_bJField(ch paramch)
- {
- this.cl = paramch;
- }
- public final ch getField_21904_bKField()
- {
- return this.cm;
- }
- public final void setField_21904_bKField(ch paramch)
- {
- this.cm = paramch;
- }
- public final float getField_9345_FField()
- {
- return this.bs;
- }
- public final void setField_9345_FField(float paramFloat)
- {
- this.bs = paramFloat;
- }
- public final float getField_9348_aeField()
- {
- return this.cb;
- }
- public final void setField_9348_aeField(float paramFloat)
- {
- this.cb = paramFloat;
- }
- public final float getField_9349_DField()
- {
- return this.bq;
- }
- public final void setField_9349_DField(float paramFloat)
- {
- this.bq = paramFloat;
- }
- public final float getField_9353_BField()
- {
- return this.bo;
- }
- public final void setField_9353_BField(float paramFloat)
- {
- this.bo = paramFloat;
- }
- public final boolean getField_9355_AField()
- {
- return this.bn;
- }
- public final void setField_9355_AField(boolean paramBoolean)
- {
- this.bn = paramBoolean;
- }
- public final boolean getField_9358_yField()
- {
- return this.bl;
- }
- public final void setField_9358_yField(boolean paramBoolean)
- {
- this.bl = paramBoolean;
- }
- public final float getField_9359_xField()
- {
- return this.bk;
- }
- public final void setField_9359_xField(float paramFloat)
- {
- this.bk = paramFloat;
- }
- public final float getField_9360_wField()
- {
- return this.bj;
- }
- public final void setField_9360_wField(float paramFloat)
- {
- this.bj = paramFloat;
- }
- public final float getField_9361_vField()
- {
- return this.bi;
- }
- public final void setField_9361_vField(float paramFloat)
- {
- this.bi = paramFloat;
- }
- public final float getField_9362_uField()
- {
- return this.bh;
- }
- public final void setField_9362_uField(float paramFloat)
- {
- this.bh = paramFloat;
- }
- public final int getFlyToggleTimerField()
- {
- return this.at;
- }
- public final void setFlyToggleTimerField(int paramInt)
- {
- this.at = paramInt;
- }
- public final ne getFoodStatsField()
- {
- return this.as;
- }
- public final void setFoodStatsField(ne paramne)
- {
- this.as = paramne;
- }
- public final int getHealthField()
- {
- return this.bx;
- }
- public final void setHealthField(int paramInt)
- {
- this.bx = paramInt;
- }
- public final boolean getInPortalField()
- {
- return this.aQ;
- }
- public final void setInPortalField(boolean paramBoolean)
- {
- this.aQ = paramBoolean;
- }
- public final boolean getInWaterField()
- {
- return this.X;
- }
- public final void setInWaterField(boolean paramBoolean)
- {
- this.X = paramBoolean;
- }
- public final boolean getIsImmuneToFireField()
- {
- return this.ab;
- }
- public final void setIsImmuneToFireField(boolean paramBoolean)
- {
- this.ab = paramBoolean;
- }
- public final boolean getIsInWebField()
- {
- return this.E;
- }
- public final void setIsInWebField(boolean paramBoolean)
- {
- this.E = paramBoolean;
- }
- public final boolean getIsJumpingField()
- {
- return this.ch;
- }
- public final void setIsJumpingField(boolean paramBoolean)
- {
- this.ch = paramBoolean;
- }
- public final Minecraft getMcField()
- {
- return this.b;
- }
- public final void setMcField(Minecraft paramMinecraft)
- {
- this.b = paramMinecraft;
- }
- public final float getMoveForwardField()
- {
- return this.cf;
- }
- public final void setMoveForwardField(float paramFloat)
- {
- this.cf = paramFloat;
- }
- public final float getMoveSpeedField()
- {
- return this.cj;
- }
- public final void setMoveSpeedField(float paramFloat)
- {
- this.cj = paramFloat;
- }
- public final float getMoveStrafingField()
- {
- return this.ce;
- }
- public final void setMoveStrafingField(float paramFloat)
- {
- this.ce = paramFloat;
- }
- public final int getNaturalArmorRatingField()
- {
- return this.cc;
- }
- public final void setNaturalArmorRatingField(int paramInt)
- {
- this.cc = paramInt;
- }
- public final int getNewPosRotationIncrementsField()
- {
- return this.bV;
- }
- public final void setNewPosRotationIncrementsField(int paramInt)
- {
- this.bV = paramInt;
- }
- public final double getNewPosXField()
- {
- return this.bW;
- }
- public final void setNewPosXField(double paramDouble)
- {
- this.bW = paramDouble;
- }
- public final double getNewPosYField()
- {
- return this.bX;
- }
- public final void setNewPosYField(double paramDouble)
- {
- this.bX = paramDouble;
- }
- public final double getNewPosZField()
- {
- return this.bY;
- }
- public final void setNewPosZField(double paramDouble)
- {
- this.bY = paramDouble;
- }
- public final double getNewRotationPitchField()
- {
- return this.ca;
- }
- public final void setNewRotationPitchField(double paramDouble)
- {
- this.ca = paramDouble;
- }
- public final double getNewRotationYawField()
- {
- return this.bZ;
- }
- public final void setNewRotationYawField(double paramDouble)
- {
- this.bZ = paramDouble;
- }
- public final int getNumTicksToChaseTargetField()
- {
- return this.ck;
- }
- public final void setNumTicksToChaseTargetField(int paramInt)
- {
- this.ck = paramInt;
- }
- public final Random getRandField()
- {
- return this.U;
- }
- public final void setRandField(Random paramRandom)
- {
- this.U = paramRandom;
- }
- public final float getRandomYawVelocityField()
- {
- return this.cg;
- }
- public final void setRandomYawVelocityField(float paramFloat)
- {
- this.cg = paramFloat;
- }
- public final int getRecentlyHitField()
- {
- return this.bP;
- }
- public final void setRecentlyHitField(int paramInt)
- {
- this.bP = paramInt;
- }
- public final int getScoreValueField()
- {
- return this.br;
- }
- public final void setScoreValueField(int paramInt)
- {
- this.br = paramInt;
- }
- public final boolean getSleepingField()
- {
- return this.aK;
- }
- public final void setSleepingField(boolean paramBoolean)
- {
- this.aK = paramBoolean;
- }
- public final float getSpeedInAirField()
- {
- return this.aY;
- }
- public final void setSpeedInAirField(float paramFloat)
- {
- this.aY = paramFloat;
- }
- public final float getSpeedOnGroundField()
- {
- return this.aX;
- }
- public final void setSpeedOnGroundField(float paramFloat)
- {
- this.aX = paramFloat;
- }
- public final int getSprintToggleTimerField()
- {
- return this.c;
- }
- public final void setSprintToggleTimerField(int paramInt)
- {
- this.c = paramInt;
- }
- public final nb getTargetTasksField()
- {
- return this.bU;
- }
- public final void setTargetTasksField(nb paramnb)
- {
- this.bU = paramnb;
- }
- public final nb getTasksField()
- {
- return this.bT;
- }
- public final void setTasksField(nb paramnb)
- {
- this.bT = paramnb;
- }
- public final String getTextureField()
- {
- return this.bm;
- }
- public final void setTextureField(String paramString)
- {
- this.bm = paramString;
- }
- }
复制代码 代码1
‘‘──做游戏的新手于2012-7-6 21:47补充以下内容:- import java.util.Random;
- import net.minecraft.client.Minecraft;
- public class vq extends yw
- {
- public oy a;
- protected Minecraft b;
- protected int c;
- public int d;
- public float e;
- public float am;
- public float an;
- public float ao;
- private ch cl;
- private ch cm;
- private ch cn;
- public vq(Minecraft par1Minecraft, xd par2World, fc par3Session, int par4)
- {
- super(par2World);
- this.c = 0;
- this.d = 0;
- this.cl = new ch();
- this.cm = new ch();
- this.cn = new ch();
- this.b = par1Minecraft;
- this.aB = par4;
- if ((par3Session != null) && (par3Session.b != null) && (par3Session.b.length() > 0))
- {
- this.Z = "http://s3.amazonaws.com/MinecraftSkins/" + par3Session.b + ".png";
- }
- this.aA = par3Session.b;
- }
- public void b(double par1, double par3, double par5)
- {
- super.b(par1, par3, par5);
- }
- public void y_()
- {
- super.y_();
- this.ce = this.a.a;
- this.cf = this.a.b;
- this.ch = this.a.d;
- this.an = this.e;
- this.ao = this.am;
- vq tmp54_53 = this; tmp54_53.am = (float)(tmp54_53.am + (this.v - this.am) * 0.5D);
- vq tmp79_78 = this; tmp79_78.e = (float)(tmp79_78.e + (this.u - this.e) * 0.5D);
- }
- protected boolean H_()
- {
- return true;
- }
- public void e()
- {
- if (this.d > 0)
- {
- this.d -= 1;
- if (this.d == 0)
- {
- d(false);
- }
- }
- if (this.c > 0)
- {
- this.c -= 1;
- }
- if (this.b.c.e())
- {
- this.o = (this.q = 0.5D);
- this.o = 0.0D;
- this.q = 0.0D;
- this.u = (this.V / 12.0F);
- this.v = 10.0F;
- this.p = 68.5D;
- return;
- }
- if (!(this.b.K.a(dp.f)))
- {
- this.b.v.b(dp.f);
- }
- this.aS = this.aR;
- if (this.aQ)
- {
- if ((!(this.k.F)) && (this.j != null))
- {
- h(null);
- }
- if (this.b.s != null)
- {
- this.b.a(null);
- }
- if (this.aR == 0.0F)
- {
- this.b.C.a("portal.trigger", 1.0F, this.U.nextFloat() * 0.4F + 0.8F);
- }
- this.aR += 0.0125F;
- if (this.aR >= 1.0F)
- {
- this.aR = 1.0F;
- if (!(this.k.F))
- {
- this.aP = 10;
- this.b.C.a("portal.travel", 1.0F, this.U.nextFloat() * 0.4F + 0.8F);
- byte byte0 = 0;
- if (this.aB == -1)
- {
- byte0 = 0;
- }
- else
- {
- byte0 = -1;
- }
- this.b.a(byte0);
- a(dp.x);
- }
- }
- this.aQ = false;
- }
- else if ((a(aad.k)) && (b(aad.k).b() > 60))
- {
- this.aR += 0.006666667F;
- if (this.aR > 1.0F)
- {
- this.aR = 1.0F;
- }
- }
- else
- {
- if (this.aR > 0.0F)
- {
- this.aR -= 0.05F;
- }
- if (this.aR < 0.0F)
- {
- this.aR = 0.0F;
- }
- }
- if (this.aP > 0)
- {
- this.aP -= 1;
- }
- boolean flag = this.a.d;
- float f = 0.8F;
- boolean flag1 = this.a.b >= f;
- this.a.a();
- if (aj())
- {
- this.a.a *= 0.2F;
- this.a.b *= 0.2F;
- this.c = 0;
- }
- if ((this.a.e) && (this.Q < 0.2F))
- {
- this.Q = 0.2F;
- }
- h(this.o - (this.I * 0.35D), this.y.b + 0.5D, this.q + this.I * 0.35D);
- h(this.o - (this.I * 0.35D), this.y.b + 0.5D, this.q - (this.I * 0.35D));
- h(this.o + this.I * 0.35D, this.y.b + 0.5D, this.q - (this.I * 0.35D));
- h(this.o + this.I * 0.35D, this.y.b + 0.5D, this.q + this.I * 0.35D);
- boolean flag2 = aF().a() > 6.0F;
- if ((this.z) && (!(flag1)) && (this.a.b >= f) && (!(W())) && (flag2) && (!(aj())) && (!(a(aad.q))))
- {
- if (this.c == 0)
- {
- this.c = 7;
- }
- else
- {
- d(true);
- this.c = 0;
- }
- }
- if (V())
- {
- this.c = 0;
- }
- if ((W()) && (((this.a.b < f) || (this.A) || (!(flag2)))))
- {
- d(false);
- }
- if ((aiy.fly) && (!(flag)) && (this.a.d))
- {
- if (this.at == 0)
- {
- this.at = 7;
- }
- else
- {
- this.aT.b = (!(this.aT.b));
- this.aT.a = (!(this.aT.a));
- aI();
- this.at = 0;
- }
- }
- if (aiy.fly) {
- this.aT.a = (!(this.aT.a));
- }
- if (this.aT.b)
- {
- if (this.a.e)
- {
- this.s -= 0.15D;
- }
- if (this.a.d)
- {
- this.s += 0.15D;
- }
- }
- super.e();
- if ((this.z) && (this.aT.b))
- {
- this.aT.b = false;
- aI();
- }
- }
- public void c(int par1)
- {
- if (this.k.F)
- {
- return;
- }
- if ((this.aB == 1) && (par1 == 1))
- {
- a(dp.C);
- this.b.a(new c());
- }
- else
- {
- a(dp.B);
- this.b.C.a("portal.travel", 1.0F, this.U.nextFloat() * 0.4F + 0.8F);
- this.b.a(1);
- }
- }
- public float I_()
- {
- float f = 1.0F;
- if (this.aT.b)
- {
- f *= 1.1F;
- }
- f *= (this.bt * at() / this.aX + 1.0F) / 2.0F;
- if ((aj()) && (ah().c == yr.k.bQ))
- {
- int i = al();
- float f1 = i / 20.0F;
- if (f1 > 1.0F)
- {
- f1 = 1.0F;
- }
- else
- {
- f1 *= f1;
- }
- f *= (1.0F - (f1 * 0.15F));
- }
- return f;
- }
- public void b(ady par1NBTTagCompound)
- {
- super.b(par1NBTTagCompound);
- par1NBTTagCompound.a("Score", this.av);
- }
- public void a(ady par1NBTTagCompound)
- {
- super.a(par1NBTTagCompound);
- this.av = par1NBTTagCompound.f("Score");
- }
- public void af()
- {
- super.af();
- this.b.a(null);
- }
- public void a(sc par1TileEntitySign)
- {
- this.b.a(new alu(par1TileEntitySign));
- }
- public void a(io par1IInventory)
- {
- this.b.a(new zn(this.ap, par1IInventory));
- }
- public void a(int par1, int par2, int par3)
- {
- this.b.a(new aen(this.ap, this.k, par1, par2, par3));
- }
- public void c(int par1, int par2, int par3)
- {
- this.b.a(new sm(this.ap, this.k, par1, par2, par3));
- }
- public void a(ahg par1TileEntityFurnace)
- {
- this.b.a(new kv(this.ap, par1TileEntityFurnace));
- }
- public void a(amc par1TileEntityBrewingStand)
- {
- this.b.a(new hg(this.ap, par1TileEntityBrewingStand));
- }
- public void a(az par1TileEntityDispenser)
- {
- this.b.a(new fb(this.ap, par1TileEntityDispenser));
- }
- public void d(nn par1Entity)
- {
- this.b.j.a(new fs(this.b.f, par1Entity));
- }
- public void i(nn par1Entity)
- {
- fs entitycrit2fx = new fs(this.b.f, par1Entity, "magicCrit");
- this.b.j.a(entitycrit2fx);
- }
- public void b(nn par1Entity, int par2)
- {
- this.b.j.a(new ws(this.b.f, par1Entity, this, -0.5F));
- }
- public void a(String s)
- {
- }
- public boolean V()
- {
- return ((this.a.e) && (!(this.aK)));
- }
- public void d(int par1)
- {
- int i = bb() - par1;
- if (i <= 0)
- {
- l(par1);
- if (i < 0)
- {
- this.Y = (this.ba / 2);
- }
- }
- else
- {
- this.cc = i;
- l(bb());
- this.Y = this.ba;
- c(md.k, i);
- this.bA = (this.bB = 10);
- }
- }
- public void ag()
- {
- this.b.a(false, 0, false);
- }
- public void ab()
- {
- }
- public void b(String par1Str)
- {
- this.b.w.c(par1Str);
- }
- public void a(ajw par1StatBase, int par2)
- {
- if (par1StatBase == null)
- {
- return;
- }
- if (par1StatBase.e())
- {
- aeb achievement = (aeb)par1StatBase;
- if ((achievement.c == null) || (this.b.K.a(achievement.c)))
- {
- if (!(this.b.K.a(achievement)))
- {
- this.b.v.a(achievement);
- }
- this.b.K.a(par1StatBase, par2);
- }
- }
- else
- {
- this.b.K.a(par1StatBase, par2);
- }
- }
- private boolean g(int par1, int par2, int par3)
- {
- return this.k.h(par1, par2, par3);
- }
- protected boolean h(double par1, double par3, double par5)
- {
- int i = gk.c(par1);
- int j = gk.c(par3);
- int k = gk.c(par5);
- double d = par1 - i;
- double d1 = par5 - k;
- if ((g(i, j, k)) || (g(i, j + 1, k)))
- {
- boolean flag = (!(g(i - 1, j, k))) && (!(g(i - 1, j + 1, k)));
- boolean flag1 = (!(g(i + 1, j, k))) && (!(g(i + 1, j + 1, k)));
- boolean flag2 = (!(g(i, j, k - 1))) && (!(g(i, j + 1, k - 1)));
- boolean flag3 = (!(g(i, j, k + 1))) && (!(g(i, j + 1, k + 1)));
- byte byte0 = -1;
- double d2 = 9999.0D;
- if ((flag) && (d < d2))
- {
- d2 = d;
- byte0 = 0;
- }
- if ((flag1) && (1.0D - d < d2))
- {
- d2 = 1.0D - d;
- byte0 = 1;
- }
- if ((flag2) && (d1 < d2))
- {
- d2 = d1;
- byte0 = 4;
- }
- if ((flag3) && (1.0D - d1 < d2))
- {
- double d3 = 1.0D - d1;
- byte0 = 5;
- }
- float f = 0.1F;
- if (byte0 == 0)
- {
- this.r = (-f);
- }
- if (byte0 == 1)
- {
- this.r = f;
- }
- if (byte0 == 4)
- {
- this.t = (-f);
- }
- if (byte0 == 5)
- {
- this.t = f;
- }
- }
- return false;
- }
- public void d(boolean par1)
- {
- super.d(par1);
- this.d = ((par1) ? 600 : 0);
- }
- public void a(float par1, int par2, int par3)
- {
- this.aW = par1;
- this.aV = par2;
- this.aU = par3;
- }
- }
复制代码 代码2
’’ |
|