Ported to 1.7

This commit is contained in:
AlgorithmX2
2014-02-08 19:34:52 -06:00
parent 30c1deb8cf
commit d50c7f6312
328 changed files with 2209 additions and 2311 deletions
+15 -15
View File
@@ -39,9 +39,9 @@ public abstract class AEBaseInvTile extends AEBaseTile implements ISidedInventor
ItemStack is = getStackInSlot( x );
if ( is != null )
is.writeToNBT( item );
opt.setCompoundTag( "item" + x, item );
opt.setTag( "item" + x, item );
}
data.setCompoundTag( "inv", opt );
data.setTag( "inv", opt );
}
} );
@@ -78,17 +78,27 @@ public abstract class AEBaseInvTile extends AEBaseTile implements ISidedInventor
}
@Override
public String getInvName()
public String getInventoryName()
{
return getClass().getSimpleName();
}
@Override
public boolean isInvNameLocalized()
public boolean hasCustomInventoryName()
{
return false;
}
@Override
public void openInventory()
{
}
@Override
public void closeInventory()
{
}
@Override
public int getInventoryStackLimit()
{
@@ -98,20 +108,10 @@ public abstract class AEBaseInvTile extends AEBaseTile implements ISidedInventor
@Override
public boolean isUseableByPlayer(EntityPlayer p)
{
return this.worldObj.getBlockTileEntity( this.xCoord, this.yCoord, this.zCoord ) != this ? false : p.getDistanceSq( (double) this.xCoord + 0.5D,
return this.worldObj.getTileEntity( this.xCoord, this.yCoord, this.zCoord ) != this ? false : p.getDistanceSq( (double) this.xCoord + 0.5D,
(double) this.yCoord + 0.5D, (double) this.zCoord + 0.5D ) <= 32.0D;
}
@Override
public void openChest()
{
}
@Override
public void closeChest()
{
}
@Override
public boolean isItemValidForSlot(int i, ItemStack itemstack)
{