Fix all errors.

This commit is contained in:
Alexander committed 2014-02-05 10:22:35 -05:00
1 parent ffaea7d4b7
commit a83e9a3b53
17 files changed
+91 -36

No files matched your search

@@ -220,7 +220,7 @@ public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
this.dataWatcher.updateObject(16, new Byte((byte) size));
this.setSize(0.6F * (float) size, 0.6F * (float) size);
this.setPosition(this.posX, this.posY, this.posZ);
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(this.getMaxHealth());
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(this.getMaxHealth());
this.setHealth(this.getMaxHealth());
this.experienceValue = size + 2 ^ (size);
@@ -928,7 +928,7 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
/**
* Called when an the contents of an Inventory change, usually
*/
public void onInventoryChanged ()
public void markDirty ()
{
}
@@ -1462,4 +1462,12 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
{
return false;
}
@Override
public void openInventory() {
}
@Override
public void closeInventory() {
}
}
@@ -476,7 +476,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
{
for (int i = 0; i < 5; ++i)
{
if (living.getCurrentItemOrArmor(i) == null)
if (living.getEquipmentInSlot(i) == null)
{
return i;
}
@@ -505,7 +505,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
{
this.mainInventory[k] = par1ItemStack;
}*/
if (living.getCurrentItemOrArmor(slotID) == null)
if (living.getEquipmentInSlot(slotID) == null)
{
living.setCurrentItemOrArmor(slotID, par1ItemStack);
if (living instanceof EntityLiving)
@@ -530,7 +530,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
}
else
{
ItemStack stack = living.getCurrentItemOrArmor(slotID);
ItemStack stack = living.getEquipmentInSlot(slotID);
if (stack == null)
{
living.setCurrentItemOrArmor(slotID, par1ItemStack);
@@ -575,7 +575,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
{
for (int slotID = 0; slotID < 5; ++slotID)
{
ItemStack stack = living.getCurrentItemOrArmor(slotID);
ItemStack stack = living.getEquipmentInSlot(slotID);
if (stack != null && stack == par1ItemStack && stack.isStackable() && stack.stackSize < stack.getMaxStackSize() && stack.stackSize < 64
&& (!stack.getHasSubtypes() || stack.getItemDamage() == par1ItemStack.getItemDamage()) && ItemStack.areItemStackTagsEqual(stack, par1ItemStack))
{
@@ -221,7 +221,7 @@ public class RotatingBase extends Entity implements IEntityAdditionalSpawnData
}
Vec3 vec3d = Vec3.createVectorHelper(posX, posY, posZ);
Vec3 vec3d1 = Vec3.createVectorHelper(posX + motionX, posY + motionY, posZ + motionZ);
MovingObjectPosition movingobjectposition = worldObj.clip(vec3d, vec3d1);
MovingObjectPosition movingobjectposition = worldObj.rayTraceBlocks(vec3d, vec3d1);
vec3d = Vec3.createVectorHelper(posX, posY, posZ);
vec3d1 = Vec3.createVectorHelper(posX + motionX, posY + motionY, posZ + motionZ);
if (movingobjectposition != null)