package pneumaticCraft.common.thirdparty.ic2;
import ic2.api.energy.tile.IEnergyTile;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import pneumaticCraft.api.client.pneumaticHelmet.IBlockTrackEntry;
/**
* Created by Maarten on 25-Jul-14.
*/
public class BlockTrackEntryIC2 implements IBlockTrackEntry{
@Override
public boolean shouldTrackWithThisEntry(IBlockAccess world, int x, int y, int z, Block block, TileEntity te){
return te instanceof IEnergyTile;
}
@Override
public boolean shouldBeUpdatedFromServer(TileEntity te){
return false;
}
@Override
public int spamThreshold(){
return 8;
}
@Override
public void addInformation(World world, int x, int y, int z, TileEntity te, List<String> infoList){
infoList.add("blockTracker.info.ic2");
}
@Override
public String getEntryName(){
return "blockTracker.module.ic2";
}
}