Applied-Energistics-2-tiler.../tile/crafting/TileCraftingStorageTile.java

32 lines
447 B
Java
Raw Normal View History

2014-05-18 05:19:23 +02:00
package appeng.tile.crafting;
public class TileCraftingStorageTile extends TileCraftingTile
{
public boolean isAccelerator()
{
return false;
}
public boolean isStorage()
{
return true;
}
public int getStorageBytes()
{
switch (worldObj.getBlockMetadata( xCoord, yCoord, zCoord ) & 3)
{
default:
case 0:
return 1 * 1024;
case 1:
return 4 * 1024;
case 2:
return 16 * 1024;
case 3:
return 64 * 1024;
}
}
}