fix some function names
This commit is contained in:
parent
fe57a2909a
commit
3d1c68210c
21 changed files with 133 additions and 164 deletions
|
@ -237,14 +237,14 @@ public class EntitySquid extends EntityWaterMob
|
|||
}
|
||||
}
|
||||
|
||||
public void func_175568_b(float randomMotionVecXIn, float randomMotionVecYIn, float randomMotionVecZIn)
|
||||
public void setRandomMotion(float randomMotionVecXIn, float randomMotionVecYIn, float randomMotionVecZIn)
|
||||
{
|
||||
this.randomMotionVecX = randomMotionVecXIn;
|
||||
this.randomMotionVecY = randomMotionVecYIn;
|
||||
this.randomMotionVecZ = randomMotionVecZIn;
|
||||
}
|
||||
|
||||
public boolean func_175567_n()
|
||||
public boolean hasRandomMotion()
|
||||
{
|
||||
return this.randomMotionVecX != 0.0F || this.randomMotionVecY != 0.0F || this.randomMotionVecZ != 0.0F;
|
||||
}
|
||||
|
@ -280,13 +280,13 @@ public class EntitySquid extends EntityWaterMob
|
|||
// this.squid.func_175568_b(0.0F, 0.0F, 0.0F);
|
||||
// }
|
||||
// else
|
||||
if (this.squid.getRNG().chance(50) || !this.squid.inLiquid || !this.squid.func_175567_n())
|
||||
if (this.squid.getRNG().chance(50) || !this.squid.inLiquid || !this.squid.hasRandomMotion())
|
||||
{
|
||||
float f = this.squid.getRNG().floatv() * (float)Math.PI * 2.0F;
|
||||
float f1 = ExtMath.cos(f) * 0.2F;
|
||||
float f2 = -0.1F + this.squid.getRNG().floatv() * 0.2F;
|
||||
float f3 = ExtMath.sin(f) * 0.2F;
|
||||
this.squid.func_175568_b(f1, f2, f3);
|
||||
this.squid.setRandomMotion(f1, f2, f3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ public class AttributeInstance
|
|||
// return (Collection)this.mapByOperation.get(operation);
|
||||
// }
|
||||
|
||||
public Collection<AttributeModifier> func_111122_c()
|
||||
public Collection<AttributeModifier> getModifiers()
|
||||
{
|
||||
Set<AttributeModifier> set = Sets.<AttributeModifier>newHashSet();
|
||||
|
||||
|
@ -132,7 +132,7 @@ public class AttributeInstance
|
|||
|
||||
public void removeAllModifiers()
|
||||
{
|
||||
Collection<AttributeModifier> collection = this.func_111122_c();
|
||||
Collection<AttributeModifier> collection = this.getModifiers();
|
||||
|
||||
if (collection != null)
|
||||
{
|
||||
|
|
|
@ -61,7 +61,7 @@ public class Attributes
|
|||
Attribute iattribute = instance.getAttribute();
|
||||
nbttagcompound.setString("Name", iattribute.getUnlocalizedName());
|
||||
nbttagcompound.setDouble("Base", instance.getBaseValue());
|
||||
Collection<AttributeModifier> collection = instance.func_111122_c();
|
||||
Collection<AttributeModifier> collection = instance.getModifiers();
|
||||
|
||||
if (collection != null && !collection.isEmpty())
|
||||
{
|
||||
|
|
|
@ -157,7 +157,7 @@ public class EntityHopperCart extends EntityCartContainer implements IHopper
|
|||
{
|
||||
this.setTransferTicker(0);
|
||||
|
||||
if (this.func_96112_aD())
|
||||
if (this.collectItems())
|
||||
{
|
||||
this.setTransferTicker(Config.hopperCartDelay);
|
||||
this.markDirty();
|
||||
|
@ -166,7 +166,7 @@ public class EntityHopperCart extends EntityCartContainer implements IHopper
|
|||
}
|
||||
}
|
||||
|
||||
public boolean func_96112_aD()
|
||||
public boolean collectItems()
|
||||
{
|
||||
if (TileEntityHopper.captureDroppedItems(this))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue