Second update pass (2/3) - 82 -> 0 errors

Second update pass which fixes all compile errors. Some parts may have
aftermath effect, hence why 3rd pass will check those maked with
"aftermath".
Errors: 82 -> 0. Mod can be launched.
This commit is contained in:
elix-x
2016-06-21 11:03:10 +02:00
parent 5498eb6d7c
commit 05aa6972c4
83 changed files with 564 additions and 405 deletions
@@ -28,11 +28,11 @@ import net.minecraft.world.World;
public final class EntityFloatingItem extends EntityItem
{
private final Entity parent;
private final ICanDie parent;
private int superDeath = 0;
private float progress = 0;
public EntityFloatingItem( final Entity parent, final World world, final double x, final double y, final double z, final ItemStack stack )
public EntityFloatingItem( final ICanDie parent, final World world, final double x, final double y, final double z, final ItemStack stack )
{
super( world, x, y, z, stack );
this.motionX = this.motionY = this.motionZ = 0.0d;
@@ -46,7 +46,7 @@ public final class EntityFloatingItem extends EntityItem
@Override
public void onUpdate()
{
if( !this.isDead && this.parent.isDead )
if( !this.isDead && this.parent.isDead() )
{
this.setDead();
}
+8
View File
@@ -0,0 +1,8 @@
package appeng.entity;
public interface ICanDie
{
public boolean isDead();
}