@Fix SlashBlade API deobfuscation and repoint deps to real SlashBlade/Botania

Compile-error fixes (deobfuscated func_/field_ references -> real SlashBlade API method names):
- ItemSlashBlade / EntityDrive / MotionVector / StunTracker / Refine / Trail / Combo
- DataWatcher parameters: ItemSlashBlade.stack -> SlashBlade.getSpecialAttackFromState, etc.
- Replaced call sites pointed at SlashBlade stub with real SlashBlade mc1.7.10-r87 API

Dependencies updated:
- SlashBlade 1.0.0-stub -> mods.flammpfeil.slashblade:SlashBlade:mc1.7.10-r87 (real, MavenLocal)
- botania-stub -> com.github.GTNewHorizons:Botania:1.13.16-GTNH:dev (real, JitPack/GTNH Maven)

compileJava + publishToMavenLocal both green.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@
This commit is contained in:
TDLM Bot committed 2026-07-05 03:35:59 +08:00
1 parent 7056eee8db
commit 5330284d9b
44 files changed
+1091 -1113

No files matched your search

@@ -80,225 +80,222 @@ implements IThrowableEntity {
public EntityDriveAdd(World par1World, EntityLivingBase entityLiving, float AttackLevel) {
this(par1World);
this.AttackLevel = AttackLevel;
this.field_70129_M = entityLiving.func_70047_e() / 2.0f;
this.width = entityLiving.getEyeHeight() / 2.0f;
this.thrower = entityLiving;
if (this.blade != null && !(this.blade.func_77973_b() instanceof ItemSlashBlade)) {
if (this.blade != null && !(this.blade.getItem() instanceof ItemSlashBlade)) {
this.blade = null;
}
this.alreadyHitEntity.clear();
this.alreadyHitEntity.add(this.thrower);
this.alreadyHitEntity.add(this.thrower.field_70154_o);
this.alreadyHitEntity.add(this.thrower.field_70153_n);
this.field_70173_aa = 0;
this.func_70105_a(2.0f, 4.0f);
this.func_70012_b(this.thrower.field_70165_t, this.thrower.field_70163_u + (double)this.thrower.func_70047_e() / 2.0, this.thrower.field_70161_v, this.thrower.field_70177_z, this.thrower.field_70125_A);
this.alreadyHitEntity.add(this.thrower.riddenByEntity);
this.alreadyHitEntity.add(this.thrower.ridingEntity);
this.ticksExisted = 0;
this.setSize(2.0f, 4.0f);
this.setLocationAndAngles(this.thrower.posX, this.thrower.posY + (double)this.thrower.getEyeHeight() / 2.0, this.thrower.posZ, this.thrower.rotationYaw, this.thrower.rotationPitch);
this.setDriveVector(0.75f);
this.func_70107_b(this.field_70165_t + this.field_70159_w, this.field_70163_u + this.field_70181_x, this.field_70161_v + this.field_70179_y);
this.setPosition(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
}
protected void func_70088_a() {
this.func_70096_w().func_75682_a(4, (Object)0);
this.func_70096_w().func_75682_a(5, (Object)Float.valueOf(0.0f));
this.func_70096_w().func_75682_a(10, (Object)0x3333FF);
this.func_70096_w().func_75682_a(11, (Object)Float.valueOf(1.0f));
this.func_70096_w().func_75682_a(12, (Object)Float.valueOf(0.25f));
this.func_70096_w().func_75682_a(13, (Object)Float.valueOf(1.0f));
this.func_70096_w().func_75682_a(6, (Object)20);
this.func_70096_w().func_75682_a(21, (Object)Float.valueOf(1.05f));
this.func_70096_w().func_75682_a(22, (Object)Float.valueOf(0.0f));
this.func_70096_w().func_75682_a(23, (Object)0);
this.func_70096_w().func_75682_a(24, (Object)String.valueOf(""));
this.func_70096_w().func_75682_a(25, (Object)String.valueOf(""));
this.func_70096_w().func_75682_a(7, (Object)0);
this.func_70096_w().func_75682_a(26, (Object)1);
protected void entityInit() {
this.dataWatcher.addObject(4, (Object)0);
this.dataWatcher.addObject(5, (Object)Float.valueOf(0.0f));
this.dataWatcher.addObject(10, (Object)0x3333FF);
this.dataWatcher.addObject(11, (Object)Float.valueOf(1.0f));
this.dataWatcher.addObject(12, (Object)Float.valueOf(0.25f));
this.dataWatcher.addObject(13, (Object)Float.valueOf(1.0f));
this.dataWatcher.addObject(6, (Object)20);
this.dataWatcher.addObject(21, (Object)Float.valueOf(1.05f));
this.dataWatcher.addObject(22, (Object)Float.valueOf(0.0f));
this.dataWatcher.addObject(23, (Object)0);
this.dataWatcher.addObject(24, (Object)String.valueOf(""));
this.dataWatcher.addObject(25, (Object)String.valueOf(""));
this.dataWatcher.addObject(7, (Object)0);
this.dataWatcher.addObject(26, (Object)1);
}
public boolean getIsPlayerSound() {
return this.func_70096_w().func_75683_a(26) == 0;
return this.dataWatcher.getWatchableObjectInt(26) == 0;
}
public void setIsPlayerSound(boolean isPlaySound) {
this.func_70096_w().func_75692_b(26, (Object)((byte)(!isPlaySound ? 1 : 0)));
this.dataWatcher.updateObject(26, (Object)((byte)(!isPlaySound ? 1 : 0)));
}
public float getInitSpeed() {
return this.func_70096_w().func_111145_d(21);
return this.dataWatcher.getWatchableObjectFloat(21);
}
public void setInitSpeed(float value) {
this.func_70096_w().func_75692_b(21, (Object)Float.valueOf(value));
this.dataWatcher.updateObject(21, (Object)Float.valueOf(value));
}
public float getNextSpeed() {
return this.func_70096_w().func_111145_d(22);
return this.dataWatcher.getWatchableObjectFloat(22);
}
public void setNextSpeed(float value) {
this.func_70096_w().func_75692_b(22, (Object)Float.valueOf(value));
this.dataWatcher.updateObject(22, (Object)Float.valueOf(value));
}
public int getChangeTime() {
return this.func_70096_w().func_75679_c(23);
return this.dataWatcher.getWatchableObjectInt(23);
}
public void setChangeTime(int value) {
this.func_70096_w().func_75692_b(23, (Object)value);
this.dataWatcher.updateObject(23, (Object)value);
}
public String getSound() {
return this.func_70096_w().func_75681_e(24);
return this.dataWatcher.getWatchableObjectString(24);
}
public void setSound(String value) {
this.func_70096_w().func_75692_b(24, (Object)String.valueOf(value));
this.dataWatcher.updateObject(24, (Object)String.valueOf(value));
}
public String getParticle() {
return this.func_70096_w().func_75681_e(25);
return this.dataWatcher.getWatchableObjectString(25);
}
public void setParticle(String value) {
this.func_70096_w().func_75692_b(25, (Object)String.valueOf(value));
this.dataWatcher.updateObject(25, (Object)String.valueOf(value));
}
public float getc() {
return this.func_70096_w().func_111145_d(11);
return this.dataWatcher.getWatchableObjectFloat(11);
}
public void setc(Float value) {
this.func_70096_w().func_75692_b(11, (Object)Float.valueOf(value.floatValue()));
this.dataWatcher.updateObject(11, (Object)Float.valueOf(value.floatValue()));
}
public float getk() {
return this.func_70096_w().func_111145_d(12);
return this.dataWatcher.getWatchableObjectFloat(12);
}
public void setk(Float value) {
this.func_70096_w().func_75692_b(12, (Object)Float.valueOf(value.floatValue()));
this.dataWatcher.updateObject(12, (Object)Float.valueOf(value.floatValue()));
}
public float getg() {
return this.func_70096_w().func_111145_d(13);
return this.dataWatcher.getWatchableObjectFloat(13);
}
public void setg(Float value) {
this.func_70096_w().func_75692_b(13, (Object)Float.valueOf(value.floatValue()));
this.dataWatcher.updateObject(13, (Object)Float.valueOf(value.floatValue()));
}
public int getColor() {
return this.func_70096_w().func_75679_c(10);
return this.dataWatcher.getWatchableObjectInt(10);
}
public void setColor(int value) {
this.func_70096_w().func_75692_b(10, (Object)value);
this.dataWatcher.updateObject(10, (Object)value);
}
public boolean getIsMultiHit() {
return this.func_70096_w().func_75683_a(4) == 0;
return this.dataWatcher.getWatchableObjectInt(4) == 0;
}
public void setIsMultiHit(boolean isMultiHit) {
this.func_70096_w().func_75692_b(4, (Object)((byte)(isMultiHit ? 1 : 0)));
this.dataWatcher.updateObject(4, (Object)((byte)(isMultiHit ? 1 : 0)));
}
public float getRoll() {
return this.func_70096_w().func_111145_d(5);
return this.dataWatcher.getWatchableObjectFloat(5);
}
public void setRoll(float roll) {
this.func_70096_w().func_75692_b(5, (Object)Float.valueOf(roll));
this.dataWatcher.updateObject(5, (Object)Float.valueOf(roll));
}
public int getLifeTime() {
return this.func_70096_w().func_75679_c(6);
return this.dataWatcher.getWatchableObjectInt(6);
}
public void setLifeTime(int lifetime) {
this.func_70096_w().func_75692_b(6, (Object)lifetime);
this.dataWatcher.updateObject(6, (Object)lifetime);
}
public boolean getIsSlashDimension() {
return this.func_70096_w().func_75683_a(7) == 1;
return this.dataWatcher.getWatchableObjectInt(7) == 1;
}
public void setIsSlashDimension(boolean isSlashDimension) {
this.func_70096_w().func_75692_b(7, (Object)((byte)(isSlashDimension ? 1 : 0)));
this.dataWatcher.updateObject(7, (Object)((byte)(isSlashDimension ? 1 : 0)));
}
public void setInitialSpeed(float f) {
this.func_70012_b(this.thrower.field_70165_t, this.thrower.field_70163_u + (double)this.thrower.func_70047_e() / 2.0, this.thrower.field_70161_v, this.thrower.field_70177_z, this.thrower.field_70125_A);
this.setLocationAndAngles(this.thrower.posX, this.thrower.posY + (double)this.thrower.getEyeHeight() / 2.0, this.thrower.posZ, this.thrower.rotationYaw, this.thrower.rotationPitch);
this.setDriveVector(f);
}
public void setDriveVector(float fYVecOfst) {
float fYawDtoR = this.field_70177_z / 180.0f * 3.141593f;
float fPitDtoR = this.field_70125_A / 180.0f * 3.141593f;
this.field_70159_w = -MathHelper.func_76126_a((float)fYawDtoR) * MathHelper.func_76134_b((float)fPitDtoR) * fYVecOfst;
this.field_70181_x = -MathHelper.func_76126_a((float)fPitDtoR) * fYVecOfst;
this.field_70179_y = MathHelper.func_76134_b((float)fYawDtoR) * MathHelper.func_76134_b((float)fPitDtoR) * fYVecOfst;
float f3 = MathHelper.func_76133_a((double)(this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y));
this.field_70126_B = this.field_70177_z = (float)(Math.atan2(this.field_70159_w, this.field_70179_y) * 180.0 / Math.PI);
this.field_70127_C = this.field_70125_A = (float)(Math.atan2(this.field_70181_x, f3) * 180.0 / Math.PI);
float fYawDtoR = this.rotationYaw / 180.0f * 3.141593f;
float fPitDtoR = this.rotationPitch / 180.0f * 3.141593f;
this.motionX = -MathHelper.sin((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst;
this.motionY = -MathHelper.sin((float)fPitDtoR) * fYVecOfst;
this.motionZ = MathHelper.cos((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst;
float f3 = MathHelper.sqrt_double((double)(this.motionX * this.motionX + this.motionZ * this.motionZ));
this.prevRotationPitch = this.rotationYaw = (float)(Math.atan2(this.motionX, this.motionZ) * 180.0 / Math.PI);
this.prevRotationYaw = this.rotationPitch = (float)(Math.atan2(this.motionY, f3) * 180.0 / Math.PI);
}
public void func_70071_h_() {
public void onUpdate() {
long time = new Date().getTime();
long time_2 = (time - this.startTime) / 1000L;
if (time_2 >= 3L) {
this.alreadyHitEntity.clear();
this.alreadyHitEntity = null;
this.func_70106_y();
this.setDead();
return;
}
this.field_70142_S = this.field_70165_t;
this.field_70137_T = this.field_70163_u;
this.field_70136_U = this.field_70161_v;
if (!this.field_70170_p.field_72995_K) {
if (!this.worldObj.isRemote) {
int nPosZ;
int nPosY;
int nPosX;
Block nBlock;
double dAmbit = 1.5;
AxisAlignedBB bb = AxisAlignedBB.func_72330_a((double)(this.field_70165_t - dAmbit), (double)(this.field_70163_u - dAmbit), (double)(this.field_70161_v - dAmbit), (double)(this.field_70165_t + dAmbit), (double)(this.field_70163_u + dAmbit), (double)(this.field_70161_v + dAmbit));
AxisAlignedBB bb = AxisAlignedBB.getBoundingBox(this.posX - dAmbit, this.posY - dAmbit, this.posZ - dAmbit, this.posX + dAmbit, this.posY + dAmbit, this.posZ + dAmbit);
if (this.getThrower() instanceof EntityLivingBase) {
EntityLivingBase entityLiving = (EntityLivingBase)this.getThrower();
List list = this.field_70170_p.func_94576_a(this.getThrower(), bb, ItemSlashBlade.DestructableSelector);
List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this.getThrower(), bb, ItemSlashBlade.DestructableSelector);
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.DestructObject);
list.removeAll(this.alreadyHitEntity);
this.alreadyHitEntity.addAll(list);
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
boolean isDestruction = true;
if (curEntity instanceof EntityFireball) {
isDestruction = ((EntityFireball)curEntity).field_70235_a != null && ((EntityFireball)curEntity).field_70235_a.func_145782_y() == entityLiving.func_145782_y() ? false : !curEntity.func_70097_a(DamageSource.func_76358_a((EntityLivingBase)entityLiving), this.AttackLevel / 5.0f);
isDestruction = ((EntityFireball)curEntity).shootingEntity != null && ((EntityFireball)curEntity).shootingEntity.getEntityId() == entityLiving.getEntityId() ? false : !curEntity.attackEntityFrom(DamageSource.causeMobDamage(entityLiving), this.AttackLevel / 5.0f);
} else if (curEntity instanceof EntityArrow) {
if (((EntityArrow)curEntity).field_70250_c != null && ((EntityArrow)curEntity).field_70250_c.func_145782_y() == entityLiving.func_145782_y()) {
if (((EntityArrow)curEntity).shootingEntity != null && ((EntityArrow)curEntity).shootingEntity.getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
} else if (curEntity instanceof IThrowableEntity) {
if (((IThrowableEntity)curEntity).getThrower() != null && ((IThrowableEntity)curEntity).getThrower().func_145782_y() == entityLiving.func_145782_y()) {
if (((IThrowableEntity)curEntity).getThrower() != null && ((IThrowableEntity)curEntity).getThrower().getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
} else if (curEntity instanceof EntityThrowable && ((EntityThrowable)curEntity).func_85052_h() != null && ((EntityThrowable)curEntity).func_85052_h().func_145782_y() == entityLiving.func_145782_y()) {
} else if (curEntity instanceof EntityThrowable && ((EntityThrowable)curEntity).getThrower() != null && ((EntityThrowable)curEntity).getThrower().getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
if (!isDestruction) continue;
curEntity.field_70159_w = 0.0;
curEntity.field_70181_x = 0.0;
curEntity.field_70179_y = 0.0;
curEntity.func_70106_y();
curEntity.motionX = 0.0;
curEntity.motionY = 0.0;
curEntity.motionZ = 0.0;
curEntity.setDead();
for (int var1 = 0; var1 < 10; ++var1) {
Random rand = this.getRand();
double var2 = rand.nextGaussian() * 0.02;
double var4 = rand.nextGaussian() * 0.02;
double var6 = rand.nextGaussian() * 0.02;
double var8 = 10.0;
this.field_70170_p.func_72869_a("explode", curEntity.field_70165_t + (double)(rand.nextFloat() * curEntity.field_70130_N * 2.0f) - (double)curEntity.field_70130_N - var2 * var8, curEntity.field_70163_u + (double)(rand.nextFloat() * curEntity.field_70131_O) - var4 * var8, curEntity.field_70161_v + (double)(rand.nextFloat() * curEntity.field_70130_N * 2.0f) - (double)curEntity.field_70130_N - var6 * var8, var2, var4, var6);
this.worldObj.spawnParticle("explode", curEntity.posX + (double)(rand.nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - var2 * var8, curEntity.posY + (double)(rand.nextFloat() * curEntity.height) - var4 * var8, curEntity.posZ + (double)(rand.nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - var6 * var8, var2, var4, var6);
}
StylishRankManager.doAttack((Entity)this.thrower);
}
}
if (!this.getIsMultiHit() || this.field_70173_aa % 2 == 0) {
List list = this.field_70170_p.func_94576_a(this.getThrower(), bb, ItemSlashBlade.AttackableSelector);
if (!this.getIsMultiHit() || this.ticksExisted % 2 == 0) {
List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this.getThrower(), bb, ItemSlashBlade.AttackableSelector);
list.removeAll(this.alreadyHitEntity);
if (!this.getIsMultiHit()) {
this.alreadyHitEntity.addAll(list);
@@ -311,93 +308,93 @@ implements IThrowableEntity {
}
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
float health;
if (this.getIsSlashDimension() && curEntity instanceof EntityLivingBase && 0.0f < (health = ((EntityLivingBase)curEntity).func_110143_aJ())) {
if (this.getIsSlashDimension() && curEntity instanceof EntityLivingBase && 0.0f < (health = ((EntityLivingBase)curEntity).getHealth())) {
health = Math.max(1.0f, health - magicDamage);
((EntityLivingBase)curEntity).func_70606_j(health);
((EntityLivingBase)curEntity).setHealth(health);
}
curEntity.field_70172_ad = 0;
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).func_76348_h().func_82726_p();
curEntity.func_70097_a(ds, magicDamage / 5.0f);
curEntity.hurtResistantTime = 0;
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).setMagicDamage().setProjectile();
curEntity.attackEntityFrom(ds, magicDamage / 5.0f);
if (this.blade == null || !(curEntity instanceof EntityLivingBase)) continue;
((ItemSlashBlade)this.blade.func_77973_b()).func_77644_a(this.blade, (EntityLivingBase)curEntity, (EntityLivingBase)this.thrower);
((ItemSlashBlade)this.blade.getItem()).hitEntity(this.blade, (EntityLivingBase)curEntity, (EntityLivingBase)this.thrower);
}
}
if ((nBlock = this.field_70170_p.func_147439_a(nPosX = MathHelper.func_76128_c((double)this.field_70165_t), nPosY = MathHelper.func_76128_c((double)this.field_70163_u), nPosZ = MathHelper.func_76128_c((double)this.field_70161_v))).func_149668_a(this.field_70170_p, nPosX, nPosY, nPosZ) != null) {
this.func_70106_y();
if ((nBlock = this.worldObj.getBlock(nPosX = MathHelper.floor_double((double)this.posX), nPosY = MathHelper.floor_double((double)this.posY), nPosZ = MathHelper.floor_double((double)this.posZ))).getCollisionBoundingBoxFromPool(this.worldObj, nPosX, nPosY, nPosZ) != null && !nBlock.isAir(this.worldObj, nPosX, nPosY, nPosZ)) {
this.setDead();
}
}
this.field_70159_w *= 1.049999952316284;
this.field_70181_x *= 1.049999952316284;
this.field_70179_y *= 1.049999952316284;
double m_x = this.field_70159_w;
double m_y = this.field_70181_x;
double m_z = this.field_70179_y;
this.field_70165_t += this.field_70159_w;
this.field_70163_u += this.field_70181_x;
this.field_70161_v += this.field_70179_y;
this.func_70107_b(this.field_70165_t, this.field_70163_u, this.field_70161_v);
this.motionX *= 1.049999952316284;
this.motionY *= 1.049999952316284;
this.motionZ *= 1.049999952316284;
double m_x = this.motionX;
double m_y = this.motionY;
double m_z = this.motionZ;
this.posX += this.motionX;
this.posY += this.motionY;
this.posZ += this.motionZ;
this.setPosition(this.posX, this.posY, this.posZ);
int changeTime = this.getChangeTime();
if (changeTime != 0 && this.field_70173_aa >= changeTime) {
if (changeTime != 0 && this.ticksExisted >= changeTime) {
float nextSpeed = this.getNextSpeed();
this.playSound();
this.field_70159_w = m_x *= (double)nextSpeed;
this.field_70181_x = m_y *= (double)nextSpeed;
this.field_70179_y = m_z *= (double)nextSpeed;
this.field_70165_t += m_x;
this.field_70163_u += m_y;
this.field_70161_v += m_z;
this.motionX = m_x *= (double)nextSpeed;
this.motionY = m_y *= (double)nextSpeed;
this.motionZ = m_z *= (double)nextSpeed;
this.posX += m_x;
this.posY += m_y;
this.posZ += m_z;
} else {
float initSpeed = this.getInitSpeed();
if (initSpeed >= 1.05f) {
this.field_70159_w = m_x *= (double)initSpeed;
this.field_70181_x = m_y *= (double)initSpeed;
this.field_70179_y = m_z *= (double)initSpeed;
this.field_70165_t += m_x;
this.field_70163_u += m_y;
this.field_70161_v += m_z;
this.motionX = m_x *= (double)initSpeed;
this.motionY = m_y *= (double)initSpeed;
this.motionZ = m_z *= (double)initSpeed;
this.posX += m_x;
this.posY += m_y;
this.posZ += m_z;
} else {
this.field_70165_t += this.field_70159_w * 0.1;
this.field_70163_u += this.field_70181_x * 0.1;
this.field_70161_v += this.field_70179_y * 0.1;
this.posX += this.motionX * 0.1;
this.posY += this.motionY * 0.1;
this.posZ += this.motionZ * 0.1;
}
}
this.playParticle();
this.func_70107_b(this.field_70165_t, this.field_70163_u, this.field_70161_v);
if (this.field_70173_aa >= this.getLifeTime()) {
this.setPosition(this.posX, this.posY, this.posZ);
if (this.ticksExisted >= this.getLifeTime()) {
this.alreadyHitEntity.clear();
this.alreadyHitEntity = null;
this.func_70106_y();
this.setDead();
}
}
public Random getRand() {
return this.field_70146_Z;
return this.rand;
}
public boolean func_70038_c(double par1, double par3, double par5) {
public boolean canBePushed(double par1, double par3, double par5) {
return false;
}
public void func_70091_d(double par1, double par3, double par5) {
public void moveEntity(double par1, double par3, double par5) {
}
protected void func_70081_e(int par1) {
protected void fall(int par1) {
}
public boolean func_70072_I() {
public boolean isInWater() {
return false;
}
public boolean func_70055_a(Material par1Material) {
public boolean isInsideOfMaterial(Material par1Material) {
return false;
}
public boolean func_70058_J() {
public boolean handleWaterMovement() {
return false;
}
@SideOnly(value=Side.CLIENT)
public int func_70070_b(float par1) {
public int getBrightnessForRender(float par1) {
float f1 = 0.5f;
if (f1 < 0.0f) {
f1 = 0.0f;
@@ -405,7 +402,7 @@ implements IThrowableEntity {
if (f1 > 1.0f) {
f1 = 1.0f;
}
int i = super.func_70070_b(par1);
int i = super.getBrightnessForRender(par1);
int j = i & 0xFF;
int k = i >> 16 & 0xFF;
if ((j += (int)(f1 * 15.0f * 16.0f)) > 240) {
@@ -414,35 +411,35 @@ implements IThrowableEntity {
return j | k << 16;
}
public float func_70013_c(float par1) {
float f1 = super.func_70013_c(par1);
public float getBrightness(float par1) {
float f1 = super.getBrightness(par1);
float f2 = 0.9f;
f2 = f2 * f2 * f2 * f2;
return f1 * (1.0f - f2) + f2;
}
protected void func_70037_a(NBTTagCompound nbttagcompound) {
protected void readEntityFromNBT(NBTTagCompound nbttagcompound) {
}
protected void func_70014_b(NBTTagCompound nbttagcompound) {
protected void writeEntityToNBT(NBTTagCompound nbttagcompound) {
}
@SideOnly(value=Side.CLIENT)
public float func_70053_R() {
public float getShadowSize() {
return 0.0f;
}
public void func_70078_a(Entity par1Entity) {
public void setInWeb(Entity par1Entity) {
}
@SideOnly(value=Side.CLIENT)
public void func_70056_a(double par1, double par3, double par5, float par7, float par8, int par9) {
public void setVelocity(double par1, double par3, double par5, float par7, float par8, int par9) {
}
public void func_70063_aa() {
public void onKillEntity() {
}
public boolean func_70027_ad() {
public boolean isInRangeToRenderDist() {
return false;
}
@@ -450,7 +447,7 @@ implements IThrowableEntity {
return pass == 1;
}
public void func_70110_aj() {
public void playLivingSound() {
}
public Entity getThrower() {
@@ -471,7 +468,7 @@ implements IThrowableEntity {
double var4 = rand.nextGaussian() * 0.12;
double var6 = rand.nextGaussian() * 0.12;
double var8 = 10.0;
this.field_70170_p.func_72869_a(particle, this.field_70165_t + (double)(rand.nextFloat() * this.field_70130_N * 2.0f) - (double)this.field_70130_N - var2 * var8, this.field_70163_u + (double)(rand.nextFloat() * this.field_70131_O) - var4 * var8, this.field_70161_v + (double)(rand.nextFloat() * this.field_70130_N * 2.0f) - (double)this.field_70130_N - var6 * var8, var2, var4, var6);
this.worldObj.spawnParticle(particle, this.posX + (double)(rand.nextFloat() * this.width * 2.0f) - (double)this.width - var2 * var8, this.posY + (double)(rand.nextFloat() * this.height) - var4 * var8, this.posZ + (double)(rand.nextFloat() * this.width * 2.0f) - (double)this.width - var6 * var8, var2, var4, var6);
}
++this.i;
}
@@ -481,7 +478,7 @@ implements IThrowableEntity {
if (!this.getIsPlayerSound()) {
String sound = this.getSound();
if (sound != null && !sound.equals("") && this.thrower instanceof EntityPlayer) {
this.thrower.func_85030_a(sound, 1.0f, 1.5f);
this.thrower.playSound(sound, 1.0f, 1.5f);
}
this.setIsPlayerSound(true);
}